diff options
Diffstat (limited to 'hyperui/pageview.h')
-rw-r--r-- | hyperui/pageview.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hyperui/pageview.h b/hyperui/pageview.h index 1a6b82e..130e9eb 100644 --- a/hyperui/pageview.h +++ b/hyperui/pageview.h @@ -49,7 +49,7 @@ class PageView : public QGraphicsWidget public: PageView(QGraphicsItem *parent = 0); - bool add(View *view); + bool add(View *view, bool keepAlive = false); bool back(); bool isAnimating() const; @@ -71,6 +71,7 @@ private: bool m_isAnimating; QStack<View *> m_views; + QHash<View *, bool> m_keepAlive; PageMenu *m_menu; Button *m_backButton; |