-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStackLayout.h
36 lines (28 loc) · 864 Bytes
/
StackLayout.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef STACKLAYOUT_H
#define STACKLAYOUT_H
#include <QLayout>
#include <QRect>
#include <QSize>
#include <QSizePolicy>
#include <QStackedLayout>
#include <QWidget>
class StackLayout : public QStackedLayout {
Q_OBJECT
public:
StackLayout ();
StackLayout ( QWidget *parent );
StackLayout ( QLayout *parentLayout );
~StackLayout ();
QSize clipMinMax ( QSize size, QSize minSize, QSize maxSize ) const;
QSize fixSizePolicy ( QSize size, QSize hint, QSizePolicy policy );
QRect geometry () const Q_DECL_OVERRIDE;
QSize maximumSize () const Q_DECL_OVERRIDE;
QSize minimumSize () const Q_DECL_OVERRIDE;
void setGeometry ( const QRect &rect ) Q_DECL_OVERRIDE;
QSize sizeHint () const Q_DECL_OVERRIDE;
public slots:
void onCurrentChanged ( int index );
private:
QRect *rect;
};
#endif // STACKLAYOUT_H