Commit 0067cf82 authored by Luboš Luňák's avatar Luboš Luňák
Browse files

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
parent fb2aea29
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment