-
Notifications
You must be signed in to change notification settings - Fork 4
/
qanimatedgridlayout.h
63 lines (47 loc) · 1.56 KB
/
qanimatedgridlayout.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef QANIMATEDGRIDLAYOUT_H
#define QANIMATEDGRIDLAYOUT_H
#include <QLayout>
class QAnimatedGridLayoutPrivate;
class QEasingCurve;
class QAnimatedGridLayout : public QLayout
{
Q_OBJECT
public:
explicit QAnimatedGridLayout(QWidget *parent = 0);
~QAnimatedGridLayout();
virtual void addItem(QLayoutItem *item);
virtual void setGeometry(const QRect &rect);
virtual QSize sizeHint() const;
virtual QLayoutItem *itemAt(int index) const;
virtual QLayoutItem *takeAt(int index);
virtual int count() const;
QSize minimumSize() const;
bool hasHeightForWidth();
bool isEmpty();
void invalidate();
void addWidget(QWidget *widget, int row, int column,
int rowSpan = 1, int colSpan = 1);
int rowCount();
int columnCount();
void setEasingCurve(const QEasingCurve &easing);
QEasingCurve easingCurve() const;
void setAnimationDuration(int duration);
int animationDuration();
bool isZoomed();
QWidget * zoomedWidget();
void setVisibleAreaWidget(QWidget * widget); // to move out of this
signals:
void animationFinished();
public slots:
void zoomTo(QWidget *widget);
void showAll();
private:
// Q_DISABLE_COPY
QAnimatedGridLayout(const QAnimatedGridLayout &);
QAnimatedGridLayout &operator=(const QAnimatedGridLayout &);
QAnimatedGridLayoutPrivate * m_private;
friend class QAnimatedGridLayoutPrivate;
private slots:
void animationFinishedSlot();
};
#endif // QANIMATEDGRIDLAYOUT_H