FactDev  0.1
searchdock.h
1 #ifndef SEARCHDOCK_H
2 #define SEARCHDOCK_H
3 
4 #include <QDockWidget>
5 
6 #include "models/search.h"
7 namespace Ui {
8 class SearchDock;
9 }
10 
11 namespace Gui {
12 namespace Docks {
16 class SearchDock : public QDockWidget
17 {
18  Q_OBJECT
19 
20 public:
26  explicit SearchDock(QWidget *parent=0, Qt::WindowFlags flags = 0);
27  ~SearchDock();
28 
33  QString getText() const;
34 
35 public slots:
41  void search(QString text);
42 
43 signals:
48  void textChanged(QString text);
49 
50 private:
51  Ui::SearchDock *ui;
52  QString _text;
53 
54 };
55 
56 }
57 }
58 #endif // SEARCHDOCK_H
QString getText() const
SearchDock::getText Get the current text searched.
Definition: searchdock.cpp:49
The SearchDock class Dock which contains search bar.
Definition: searchdock.h:16
void textChanged(QString text)
SearchDock::textChanged Current text changed by text
SearchDock(QWidget *parent=0, Qt::WindowFlags flags=0)
SearchDock::SearchDock Construct a SearchDock.
Definition: searchdock.cpp:6
void search(QString text)
SearchDock::search Search elements in database which correspond to the text
Definition: searchdock.cpp:19