summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupbuttonitem.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/setupbuttonitem.cpp
parentcc1acaa0093c7498daf68956edfa4b7801eb9481 (diff)
downloadmv-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.gz
mv-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.bz2
mv-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.tar.xz
mv-f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e.zip
Add tooltips to horizontcontainer in setup items.
Diffstat (limited to 'src/gui/widgets/setupbuttonitem.cpp')
-rw-r--r--src/gui/widgets/setupbuttonitem.cpp4
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);