X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugins%2FSdiWindow%2Fsdiwindow.h;h=4c46eea83617e083813905eae322f5e80cbcbe63;hb=0c61450fcffcb36a6e23ca5b083c26543d956084;hp=757ed28cfeaa51f452954cc7ee0c62992aa3a71d;hpb=5dd5f367dfcecab75077c3cb4ca1f01113fc1561;p=evaf
diff --git a/src/plugins/SdiWindow/sdiwindow.h b/src/plugins/SdiWindow/sdiwindow.h
index 757ed28..4c46eea 100644
--- a/src/plugins/SdiWindow/sdiwindow.h
+++ b/src/plugins/SdiWindow/sdiwindow.h
@@ -31,7 +31,6 @@
#include
#include
#include
-#include
class QVBoxLayout;
@@ -72,9 +71,6 @@ public:
protected: // Methods
- /// Garbage collector timer
- virtual void timerEvent(QTimerEvent * e);
-
private: // Methods
@@ -97,19 +93,16 @@ private: // Members
QString mMainPanelName;
/// List of GUI::Panel objects added to the manager
- QList > mPanels;
+ QList mPanels;
/// List of minimized GUI::Panel objects
- QVector > mMinimizedPanels;
+ QVector mMinimizedPanels;
/// Hash with panel names
- QHash > mPanelNames;
+ QHash mPanelNames;
/// Current main panel added to this window
- QWeakPointer mMainPanel;
-
- /// Garbage collector timer ID
- int mTimerId;
+ Gui::Panel * mMainPanel;
private: // Methods
@@ -117,6 +110,13 @@ private: // Methods
/// Gets the main panel name from module attributes
QString getMainPanelName(QString const & args) const;
+
+private slots:
+
+ /// Panel destroyed signal. We need to remove the panel from all the
+ /// lists.
+ void panelDestroyed(QObject * obj = 0);
+
};
/**