|
|
|
@ -87,7 +87,6 @@ void Shell::init() |
|
|
|
createGUI(m_part); |
|
|
|
createGUI(m_part); |
|
|
|
m_showToolBarAction = static_cast<KToggleAction*>(toolBarMenuAction()); |
|
|
|
m_showToolBarAction = static_cast<KToggleAction*>(toolBarMenuAction()); |
|
|
|
m_doc = qobject_cast<KDocumentViewer*>(m_part); |
|
|
|
m_doc = qobject_cast<KDocumentViewer*>(m_part); |
|
|
|
m_showMenuBarAction->setChecked( menuBar()->isVisible() ); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
connect( this, SIGNAL( restoreDocument(const KConfigGroup&) ),m_part, SLOT( restoreDocument(const KConfigGroup&))); |
|
|
|
connect( this, SIGNAL( restoreDocument(const KConfigGroup&) ),m_part, SLOT( restoreDocument(const KConfigGroup&))); |
|
|
|
@ -271,6 +270,13 @@ void Shell::setFullScreen( bool useFullScreen ) |
|
|
|
setWindowState( windowState() & ~Qt::WindowFullScreen ); // reset
|
|
|
|
setWindowState( windowState() & ~Qt::WindowFullScreen ); // reset
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Shell::showEvent(QShowEvent *e) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
m_showMenuBarAction->setChecked( menuBar()->isVisible() ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KParts::MainWindow::showEvent(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Shell::slotUpdateFullScreen() |
|
|
|
void Shell::slotUpdateFullScreen() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(m_fullScreenAction->isChecked()) |
|
|
|
if(m_fullScreenAction->isChecked()) |
|
|
|
|