mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user