From 2adcd4f24eca2fa529c42fc1165319bcc4ea179e Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Thu, 12 Jul 2018 18:12:14 +1000 Subject: Initial commit --- installer/fadestackedwidget.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 installer/fadestackedwidget.h (limited to 'installer/fadestackedwidget.h') diff --git a/installer/fadestackedwidget.h b/installer/fadestackedwidget.h new file mode 100644 index 0000000..9f43ba2 --- /dev/null +++ b/installer/fadestackedwidget.h @@ -0,0 +1,29 @@ +#ifndef FADESTACKEDWIDGET_H +#define FADESTACKEDWIDGET_H + +#include +#include +#include +#include +#include + +class FadeStackedWidget : public QStackedWidget +{ + Q_OBJECT +public: + explicit FadeStackedWidget(QWidget *parent = nullptr); + +signals: + +public slots: + void setCurrentIndex(int index); + +private slots: + void doSetCurrentIndex(int index); + +private: + bool doingNewAnimation = false; + QVariantAnimation* anim; +}; + +#endif // FADESTACKEDWIDGET_H -- cgit v1.2.3