diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-18 01:04:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-18 01:04:38 +0300 |
commit | a2adcb49e33928694c6b7c6b412895f8d45bbef9 (patch) | |
tree | 30d1ddcbc01f7f2ec646557245b43fa10d3806a7 /src | |
parent | e2210e88b0cf4620b820aea083c231be3eadb80a (diff) | |
download | plus-a2adcb49e33928694c6b7c6b412895f8d45bbef9.tar.gz plus-a2adcb49e33928694c6b7c6b412895f8d45bbef9.tar.bz2 plus-a2adcb49e33928694c6b7c6b412895f8d45bbef9.tar.xz plus-a2adcb49e33928694c6b7c6b412895f8d45bbef9.zip |
Add tooltips to labels in setup items.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 7 |
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); |