From f1a2bb26ee73327d0e29f5cd83861ce5e5cfc97e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Oct 2014 11:39:14 +0300 Subject: Add tooltips to horizontcontainer in setup items. --- src/gui/widgets/setupbuttonitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/setupbuttonitem.cpp') 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); -- cgit v1.2.3-70-g09d2