]> git.sur5r.net Git - minitube/blobdiff - src/refinesearchwidget.h
New upstream version 3.1
[minitube] / src / refinesearchwidget.h
index 78c6e1e95bc284f30202304e678026f51b80c20c..7122e8ca5aabc8df9b55e6914dd20cd0a785866b 100644 (file)
@@ -1,7 +1,27 @@
+/* $BEGIN_LICENSE
+
+This file is part of Minitube.
+Copyright 2009, Flavio Tordini <flavio.tordini@gmail.com>
+
+Minitube is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+Minitube is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Minitube.  If not, see <http://www.gnu.org/licenses/>.
+
+$END_LICENSE */
+
 #ifndef REFINESEARCHWIDGET_H
 #define REFINESEARCHWIDGET_H
 
-#include <QtGui>
+#include <QtWidgets>
 
 class SearchParams;
 
@@ -20,9 +40,6 @@ signals:
     void paramChanged(QString name, QVariant value);
     void searchRefined();
     void done();
-    
-protected:
-    void paintEvent(QPaintEvent *);
 
 private slots:
     void actionTriggered(QAction* action);
@@ -30,11 +47,12 @@ private slots:
 
 private:
     void setup();
-    void setupLabel(QString text, QBoxLayout* layout, QString paramName);
-    QToolBar *setupBar(QString paramName);
+    void setupLabel(const QString &text, QBoxLayout* layout, const QString &paramName);
+    QToolBar *setupBar(const QString &paramName);
 
     QHash<QString, QToolBar*> bars;
     bool dirty;
+    QPushButton *doneButton;
 
 };