From b05c3ee28339f236821917b152ce997ea91d3d2f Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 13 Feb 2014 17:12:52 +0100 Subject: [PATCH] SideBar: add tooltips to buttons Closes #259. --- src/gui/widgets/SideBar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/widgets/SideBar.cpp b/src/gui/widgets/SideBar.cpp index e99e0ee08..ec0eccb55 100644 --- a/src/gui/widgets/SideBar.cpp +++ b/src/gui/widgets/SideBar.cpp @@ -1,7 +1,7 @@ /* * SideBar.cpp - side-bar in LMMS' MainWindow * - * Copyright (c) 2004-2009 Tobias Doerffel + * Copyright (c) 2004-2014 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -28,6 +28,7 @@ #include "SideBar.h" #include "SideBarWidget.h" +#include "tooltip.h" // internal helper class allowing to create QToolButtons with @@ -118,6 +119,8 @@ void SideBar::appendTab( SideBarWidget * _sbw ) _sbw->hide(); _sbw->setMinimumWidth( 200 ); + + toolTip::add( btn, _sbw->title() ); }