mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Merge branch 'Falkon/3.0'
This commit is contained in:
commit
a5223ddb0c
@ -610,15 +610,17 @@ void BrowserWindow::loadSettings()
|
||||
}
|
||||
settings.endGroup();
|
||||
|
||||
m_statusBarVisible = showStatusBar;
|
||||
statusBar()->setVisible(!isFullScreen() && showStatusBar);
|
||||
m_bookmarksToolbar->setVisible(showBookmarksToolbar);
|
||||
m_navigationToolbar->setVisible(showNavigationToolbar);
|
||||
|
||||
#ifndef Q_OS_MACOS
|
||||
m_menuBarVisible = showMenuBar;
|
||||
menuBar()->setVisible(!isFullScreen() && showMenuBar);
|
||||
#endif
|
||||
|
||||
m_navigationToolbar->setSuperMenuVisible(!showMenuBar);
|
||||
m_navigationToolbar->setSuperMenuVisible(isFullScreen() || !showMenuBar);
|
||||
}
|
||||
|
||||
void BrowserWindow::goForward()
|
||||
@ -1226,6 +1228,9 @@ bool BrowserWindow::event(QEvent *event)
|
||||
|
||||
m_navigationContainer->hide();
|
||||
m_navigationToolbar->enterFullScreen();
|
||||
|
||||
// Show main menu button since menubar is hidden
|
||||
m_navigationToolbar->setSuperMenuVisible(true);
|
||||
}
|
||||
else if (e->oldState() & Qt::WindowFullScreen && !(windowState() & Qt::WindowFullScreen)) {
|
||||
// Leave fullscreen
|
||||
|
@ -123,7 +123,6 @@ MainApplication::MainApplication(int &argc, char** argv)
|
||||
|
||||
// Set fallback icon theme (eg. on Windows/Mac)
|
||||
if (QIcon::fromTheme(QSL("view-refresh")).isNull()) {
|
||||
QIcon::setThemeSearchPaths(QStringList() << QL1S(":/breeze-fallback"));
|
||||
QIcon::setThemeName(QSL("breeze-fallback"));
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/breeze-fallback">
|
||||
<qresource prefix="/icons">
|
||||
<file>breeze-fallback/index.theme</file>
|
||||
<file>breeze-fallback/16x16/bookmark-new.svg</file>
|
||||
<file>breeze-fallback/16x16/bookmarks-organize.svg</file>
|
||||
|
Loading…
Reference in New Issue
Block a user