////////////////////////////////////////////////////////////////////////////// // breezestackedwidgetdata.h // data container for QStackedWidget transition // ------------------- // // SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa // // SPDX-License-Identifier: MIT ////////////////////////////////////////////////////////////////////////////// #pragma once #include "breezetransitiondata.h" #include namespace Breeze { //* generic data class StackedWidgetData : public TransitionData { Q_OBJECT public: //* constructor StackedWidgetData(QObject *, QStackedWidget *, int); protected Q_SLOTS: //* initialize animation bool initializeAnimation() override; //* animate bool animate() override; //* finish animation void finishAnimation(); //* called when target is destroyed void targetDestroyed(); private: //* target WeakPointer _target; //* current index int _index; }; }