Implemented QETMainWindow::firstActivation, used it to fit view when editing an element.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1573 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-03-16 18:01:32 +00:00
parent a92bfa5e29
commit 87d3021bd3
6 changed files with 29 additions and 12 deletions

View File

@@ -39,7 +39,8 @@ class QETMainWindow : public QMainWindow {
QAction *actionForMenu(QMenu *);
protected:
bool event(QEvent *);
virtual bool event(QEvent *);
virtual void firstActivation(QEvent *);
// slots
public slots:
@@ -57,5 +58,6 @@ class QETMainWindow : public QMainWindow {
QMenu *help_menu_; ///< Help menu
QMenu *display_toolbars_; ///< Show/hide toolbars/docks
QHash<QMenu *, QAction *> menu_actions_; ///< Store actions retrieved when inserting menus
bool first_activation_; ///< Used to detect whether the window is activated for the first time
};
#endif