summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/setupitem.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp
index 9ed8f8f08..03db57adf 100644
--- a/src/gui/widgets/setupitem.cpp
+++ b/src/gui/widgets/setupitem.cpp
@@ -361,6 +361,7 @@ void SetupItemTextField::createControls()
mHorizont = new HorizontContainer(this, 32, 2);
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,6 +494,7 @@ void SetupItemIntTextField::createControls()
mHorizont = new HorizontContainer(this, 32, 2);
mLabel = new Label(this, mText);
+ mLabel->setToolTip(mDescription);
mTextField = new IntTextField(this, atoi(mValue.c_str()),
mMin, mMax, true, 30);
mTextField->setActionEventId(mEventName);
@@ -596,6 +598,7 @@ void SetupItemLabel::createControls()
{
mLabel = new Label(this, mText);
}
+ mLabel->setToolTip(mDescription);
mWidget = mLabel;
mParent->getContainer()->add1(mWidget);
@@ -675,6 +678,7 @@ void SetupItemDropDown::createControls()
mHorizont = new HorizontContainer(this, 32, 2);
mLabel = new Label(this, mText);
+ mLabel->setToolTip(mDescription);
mDropDown = new DropDown(this, mModel);
mDropDown->setActionEventId(mEventName);
mDropDown->addActionListener(mParent);
@@ -774,6 +778,7 @@ void SetupItemSlider::createControls()
mHorizont = new HorizontContainer(this, 32, 2);
mLabel = new Label(this, mText);
+ mLabel->setToolTip(mDescription);
mSlider = new Slider(this, mMin, mMax, mStep);
mSlider->setActionEventId(mEventName);
mSlider->addActionListener(mParent);
@@ -903,6 +908,7 @@ void SetupItemSlider2::createControls()
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);
@@ -1069,6 +1075,7 @@ void SetupItemSliderList::createControls()
mHorizont = new HorizontContainer(this, 32, 2);
mLabel = new Label(this, mText);
+ mLabel->setToolTip(mDescription);
mSlider = new SliderList(this, mModel);
mSlider->postInit(mParent, mEventName);
mSlider->setSelectedString(mValue);