ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
navbarheader.h
Go to the documentation of this file.
1 #ifndef NAVBARHEADER_H
2 #define NAVBARHEADER_H
3 
4 #include <QLabel>
5 #include <QToolButton>
6 #include <QPushButton>
7 #include <QResizeEvent>
8 #include <QPaintEvent>
9 
10 
11 class NavBarHeader: public QLabel
12 {
13  Q_OBJECT
14 
15 public:
16  explicit NavBarHeader(QWidget *parent = 0, Qt::WindowFlags f = 0);
17  explicit NavBarHeader(const QString & text, QWidget *parent = 0, Qt::WindowFlags f = 0);
18 
19  QToolButton *button;
20 
21 signals:
22  void buttonClicked(bool checked = false);
23 
24 protected:
25  void resizeEvent(QResizeEvent *e);
26 
27 private:
28  void createButton();
29 };
30 
31 class NavBarTitleButton: public QPushButton
32 {
33  Q_OBJECT
34 
35 public:
36  explicit NavBarTitleButton(QWidget *parent = 0);
37 
38  QSize sizeHint() const;
39  QSize minimumSizeHint() const;
40 
41 protected:
42  void paintEvent(QPaintEvent *e);
43 };
44 
45 #endif // NAVBARHEADER_H
NavBarTitleButton(QWidget *parent=0)
Definition: navbarheader.cpp:62
void buttonClicked(bool checked=false)
NavBarHeader(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: navbarheader.cpp:28
void resizeEvent(QResizeEvent *e)
Definition: navbarheader.cpp:46
QSize sizeHint() const
Definition: navbarheader.cpp:68
Definition: navbarheader.h:31
QToolButton * button
Definition: navbarheader.h:19
Navigation bar header.
Definition: navbarheader.h:11
QSize minimumSizeHint() const
Definition: navbarheader.cpp:73
void paintEvent(QPaintEvent *e)
Definition: navbarheader.cpp:78