mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-16 12:48:42 -04:00
Handle disappearing displays correctly
Qt makes sure a widget's window is displayed on a display if the display configuration changes while it is running. If the display configuration changes while the application is not running then only QWidget::saveGeometry() and QWidget::restoreGeometry() will ensure that the widget's window is correctly displayed if the original display is no longer present. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6257 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
@@ -30,14 +30,14 @@ void MessageAveraging::closeEvent (QCloseEvent * e)
|
||||
void MessageAveraging::read_settings ()
|
||||
{
|
||||
settings_->beginGroup ("MessageAveraging");
|
||||
move (settings_->value ("window/pos", pos ()).toPoint ());
|
||||
restoreGeometry (settings_->value ("window/geometry").toByteArray ());
|
||||
settings_->endGroup ();
|
||||
}
|
||||
|
||||
void MessageAveraging::write_settings ()
|
||||
{
|
||||
settings_->beginGroup ("MessageAveraging");
|
||||
settings_->setValue ("window/pos", pos ());
|
||||
settings_->setValue ("window/geometry", saveGeometry ());
|
||||
settings_->endGroup ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user