Remove usage of QWidget::show[FullScreen|Maximized|Minimized|Normal](),

they do more then just change the state of the window and all these usage
cases were wrong (that is, all their usage).
For changing the state, use something like
window->setWindowState( window->windowState() | Qt::WindowFullScreen ); // set
window->setWindowState( window->windowState() & ~Qt::WindowFullScreen ); // reset
or simply use the new KToggleFullScreenAction::setFullScreen() helper.


svn path=/trunk/KDE/kdebase/apps/konsole/; revision=784333
This commit is contained in:
Luboš Luňák
2008-03-10 23:02:01 +00:00
parent fb2aea2983
commit 0067cf82ce

View File

@@ -254,10 +254,11 @@ void MainWindow::setupActions()
void MainWindow::viewFullScreen(bool fullScreen)
{
if ( fullScreen )
showFullScreen();
setWindowState( windowState() | Qt::WindowFullScreen );
else
showNormal();
setWindowState( windowState() & ~Qt::WindowFullScreen );
}
BookmarkHandler* MainWindow::bookmarkHandler() const
{
return _bookmarkHandler;