diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-18 11:39:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-18 11:39:14 +0300 |
commit | f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e (patch) | |
tree | c8c14c90b0b3ce956349393b4e6adefa2d91f525 /src/gui/widgets/setupbuttonitem.cpp | |
parent | cc1acaa0093c7498daf68956edfa4b7801eb9481 (diff) | |
download | plus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.gz plus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.bz2 plus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.xz plus-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.zip |
Add tooltips to horizontcontainer in setup items.
Diffstat (limited to 'src/gui/widgets/setupbuttonitem.cpp')
-rw-r--r-- | src/gui/widgets/setupbuttonitem.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/setupbuttonitem.cpp b/src/gui/widgets/setupbuttonitem.cpp index 7551adaf6..4875355ff 100644 --- a/src/gui/widgets/setupbuttonitem.cpp +++ b/src/gui/widgets/setupbuttonitem.cpp @@ -29,11 +29,12 @@ #include "debug.h" SetupButtonItem::SetupButtonItem(const std::string &restrict text, + const std::string &restrict description, const std::string &restrict actionEventId, SetupTabScroll *restrict const parent, const std::string &restrict eventName, ActionListener *const listener) : - SetupItem(text, "", "", parent, eventName, false), + SetupItem(text, description, "", parent, eventName, false), mHorizont(nullptr), mButton(nullptr) { @@ -68,6 +69,7 @@ void SetupButtonItem::rereadValue() void SetupButtonItem::createControls() { mHorizont = new HorizontContainer(this, 32, 2); + mHorizont->setToolTip(mDescription); // TRANSLATORS: setup item button mHorizont->add(mWidget); |