summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupbuttonitem.cpp
diff options
context:
space:
mode:
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);