From 1841eb98b95096747bccf937e4c7d074c972bace Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 11 Nov 2014 17:07:48 -0200 Subject: Make the close button work clicking on the close button will close the widget. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/simplewidgets.cpp') diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 1a23c31ea..a46a22c97 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -568,6 +568,8 @@ MultiFilter::MultiFilter(QWidget *parent) : QScrollArea(parent) tb->addWidget(minimize); tb->addWidget(closeBtn); + connect(closeBtn, SIGNAL(clicked(bool)), this, SLOT(hide())); + l->addWidget(tb); l->addWidget(tagFilter); l->addWidget(new BuddyFilter()); -- cgit v1.2.3-70-g09d2