Fullscreen fix.
This commit is contained in:
parent
359eaeb023
commit
a28a46b6d7
3 changed files with 26 additions and 6 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Fixed size of "normal" window display when fullscreen mode is active on application exit.</li>
|
||||||
<li>Partially fixed bug #33.</li>
|
<li>Partially fixed bug #33.</li>
|
||||||
<li>All datetimes fetched from feeds are now considered to be UTC.</li>
|
<li>All datetimes fetched from feeds are now considered to be UTC.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ void FormMain::prepareMenus() {
|
||||||
m_ui->m_actionCheckForUpdates->setToolTip(tr("Check if new update for the application is available for download."));
|
m_ui->m_actionCheckForUpdates->setToolTip(tr("Check if new update for the application is available for download."));
|
||||||
|
|
||||||
// Add needed items to the menu.
|
// Add needed items to the menu.
|
||||||
m_trayMenu->addAction(m_ui->m_actionSwitchMainWindow);
|
m_trayMenu->addAction(m_ui->m_actionSwitchMainWindowTray);
|
||||||
m_trayMenu->addSeparator();
|
m_trayMenu->addSeparator();
|
||||||
m_trayMenu->addAction(m_ui->m_actionUpdateAllFeeds);
|
m_trayMenu->addAction(m_ui->m_actionUpdateAllFeeds);
|
||||||
m_trayMenu->addAction(m_ui->m_actionMarkAllFeedsRead);
|
m_trayMenu->addAction(m_ui->m_actionMarkAllFeedsRead);
|
||||||
|
|
@ -329,7 +329,7 @@ void FormMain::loadSize() {
|
||||||
// If user exited the application while in fullsreen mode,
|
// If user exited the application while in fullsreen mode,
|
||||||
// then re-enable it now.
|
// then re-enable it now.
|
||||||
if (settings->value(APP_CFG_GUI, "start_in_fullscreen", false).toBool()) {
|
if (settings->value(APP_CFG_GUI, "start_in_fullscreen", false).toBool()) {
|
||||||
switchFullscreenMode();
|
m_ui->m_actionFullscreen->setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide the main menu if user wants it.
|
// Hide the main menu if user wants it.
|
||||||
|
|
@ -344,11 +344,16 @@ void FormMain::loadSize() {
|
||||||
|
|
||||||
void FormMain::saveSize() {
|
void FormMain::saveSize() {
|
||||||
Settings *settings = Settings::instance();
|
Settings *settings = Settings::instance();
|
||||||
|
bool is_fullscreen = isFullScreen();
|
||||||
|
|
||||||
|
if (is_fullscreen) {
|
||||||
|
m_ui->m_actionFullscreen->setChecked(false);
|
||||||
|
}
|
||||||
|
|
||||||
settings->setValue(APP_CFG_GUI, "main_menu_visible", m_mainMenuActivated);
|
settings->setValue(APP_CFG_GUI, "main_menu_visible", m_mainMenuActivated);
|
||||||
settings->setValue(APP_CFG_GUI, "window_position", pos());
|
settings->setValue(APP_CFG_GUI, "window_position", pos());
|
||||||
settings->setValue(APP_CFG_GUI, "window_size", size());
|
settings->setValue(APP_CFG_GUI, "window_size", size());
|
||||||
settings->setValue(APP_CFG_GUI, "start_in_fullscreen", isFullScreen());
|
settings->setValue(APP_CFG_GUI, "start_in_fullscreen", is_fullscreen);
|
||||||
|
|
||||||
m_ui->m_tabWidget->feedMessageViewer()->saveSize();
|
m_ui->m_tabWidget->feedMessageViewer()->saveSize();
|
||||||
}
|
}
|
||||||
|
|
@ -368,7 +373,7 @@ void FormMain::createConnections() {
|
||||||
connect(m_ui->m_actionQuit, SIGNAL(triggered()), this, SLOT(quit()));
|
connect(m_ui->m_actionQuit, SIGNAL(triggered()), this, SLOT(quit()));
|
||||||
|
|
||||||
// Menu "View" connections.
|
// Menu "View" connections.
|
||||||
connect(m_ui->m_actionFullscreen, SIGNAL(triggered()), this, SLOT(switchFullscreenMode()));
|
connect(m_ui->m_actionFullscreen, SIGNAL(toggled(bool)), this, SLOT(switchFullscreenMode()));
|
||||||
connect(m_ui->m_actionSwitchMainWindow, SIGNAL(triggered()), this, SLOT(switchVisibility()));
|
connect(m_ui->m_actionSwitchMainWindow, SIGNAL(triggered()), this, SLOT(switchVisibility()));
|
||||||
connect(m_ui->m_actionSwitchMainMenu, SIGNAL(toggled(bool)), this, SLOT(switchMainMenu()));
|
connect(m_ui->m_actionSwitchMainMenu, SIGNAL(toggled(bool)), this, SLOT(switchMainMenu()));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,9 +75,9 @@
|
||||||
<addaction name="m_actionFullscreen"/>
|
<addaction name="m_actionFullscreen"/>
|
||||||
<addaction name="m_actionSwitchFeedsList"/>
|
<addaction name="m_actionSwitchFeedsList"/>
|
||||||
<addaction name="m_actionSwitchMainMenu"/>
|
<addaction name="m_actionSwitchMainMenu"/>
|
||||||
|
<addaction name="m_actionSwitchMainWindow"/>
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="m_menuShowHide"/>
|
<addaction name="m_menuShowHide"/>
|
||||||
<addaction name="m_actionSwitchMainWindow"/>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="m_menuTools">
|
<widget class="QMenu" name="m_menuTools">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
|
@ -367,11 +367,14 @@
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="m_actionSwitchMainWindow">
|
<action name="m_actionSwitchMainWindow">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Switch main &window</string>
|
<string>Main &window</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Hides main window if it is visible and shows it if it is hidden.</string>
|
<string>Hides main window if it is visible and shows it if it is hidden.</string>
|
||||||
|
|
@ -491,6 +494,17 @@
|
||||||
<string>Auto-load &images</string>
|
<string>Auto-load &images</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="m_actionSwitchMainWindowTray">
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Switch visibility of main &window</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Hides main window if it is visible and shows it if it is hidden.</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue