From a2adcb49e33928694c6b7c6b412895f8d45bbef9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Oct 2014 01:04:38 +0300 Subject: Add tooltips to labels in setup items. --- src/gui/widgets/setupitem.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-60-g2f50