summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupitem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-18 11:39:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-18 11:39:14 +0300
commitf1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e (patch)
treec8c14c90b0b3ce956349393b4e6adefa2d91f525 /src/gui/widgets/setupitem.cpp
parentcc1acaa0093c7498daf68956edfa4b7801eb9481 (diff)
downloadmanaplus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.gz
manaplus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.bz2
manaplus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.xz
manaplus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.zip
Add tooltips to horizontcontainer in setup items.
Diffstat (limited to 'src/gui/widgets/setupitem.cpp')
-rw-r--r--src/gui/widgets/setupitem.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp
index 04f818451..a8bded351 100644
--- a/src/gui/widgets/setupitem.cpp
+++ b/src/gui/widgets/setupitem.cpp
@@ -360,9 +360,9 @@ void SetupItemTextField::createControls()
if (mUseBase64)
mValue = decodeBase64String(mValue);
mHorizont = new HorizontContainer(this, 32, 2);
+ mHorizont->setToolTip(mDescription);
mLabel = new Label(this, mText);
- mLabel->setToolTip(mDescription);
mTextField = new TextField(this, mValue, true, mParent, mEventName);
// TRANSLATORS: setup item button
mButton = new Button(this, _("Edit"), mEventName + "_EDIT", mParent);
@@ -493,9 +493,9 @@ void SetupItemIntTextField::createControls()
{
load();
mHorizont = new HorizontContainer(this, 32, 2);
+ mHorizont->setToolTip(mDescription);
mLabel = new Label(this, mText);
- mLabel->setToolTip(mDescription);
mTextField = new IntTextField(this, atoi(mValue.c_str()),
mMin, mMax, true, 30);
mTextField->setActionEventId(mEventName);
@@ -677,9 +677,9 @@ void SetupItemDropDown::createControls()
{
load();
mHorizont = new HorizontContainer(this, 32, 2);
+ mHorizont->setToolTip(mDescription);
mLabel = new Label(this, mText);
- mLabel->setToolTip(mDescription);
mDropDown = new DropDown(this, mModel);
mDropDown->setActionEventId(mEventName);
mDropDown->addActionListener(mParent);
@@ -777,9 +777,9 @@ void SetupItemSlider::createControls()
{
load();
mHorizont = new HorizontContainer(this, 32, 2);
+ mHorizont->setToolTip(mDescription);
mLabel = new Label(this, mText);
- mLabel->setToolTip(mDescription);
mSlider = new Slider(this, mMin, mMax, mStep);
mSlider->setActionEventId(mEventName);
mSlider->addActionListener(mParent);
@@ -905,11 +905,11 @@ void SetupItemSlider2::createControls()
{
load();
mHorizont = new HorizontContainer(this, 32, 2);
+ mHorizont->setToolTip(mDescription);
const int width = getMaxWidth();
mLabel = new Label(this, mText);
- mLabel->setToolTip(mDescription);
mLabel2 = new Label(this, "");
mLabel2->setWidth(width);
mSlider = new Slider(this, mMin, mMax, mStep);
@@ -1074,9 +1074,9 @@ void SetupItemSliderList::createControls()
{
load();
mHorizont = new HorizontContainer(this, 32, 2);
+ mHorizont->setToolTip(mDescription);
mLabel = new Label(this, mText);
- mLabel->setToolTip(mDescription);
mSlider = new SliderList(this, mModel);
mSlider->postInit(mParent, mEventName);
mSlider->setSelectedString(mValue);