mirror of
https://github.com/KDE/konsole.git
synced 2026-05-05 05:07:06 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user