myMode = winState;
- vis ? show() : hide();
+ vis ? showWithMode() : hide();
}
-void QtxMainWindow::show()
+void QtxMainWindow::showWithMode()
{
int mode = myMode;
myMode = -1;
-
switch ( mode )
{
case WS_Normal:
showMaximized();
break;
}
-
- QMainWindow::show();
}
int QtxMainWindow::relativeCoordinate( const int type, const int WH, const int wh ) const
virtual bool eventFilter( QObject*, QEvent* );
public slots:
- virtual void show();
virtual void setAppropriate( QDockWindow*, bool );
protected:
int windowState( const QString& ) const;
int windowPosition( const QString& ) const;
int relativeCoordinate( const int, const int, const int ) const;
+ void showWithMode();
private:
int myMode;