mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 14:46:33 +02:00
Set a default size of 80% of the available current screen space.
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
|
#include <QDesktopWidget>
|
||||||
#include <QShowEvent>
|
#include <QShowEvent>
|
||||||
#include <QHideEvent>
|
#include <QHideEvent>
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
@@ -198,6 +199,12 @@ TomahawkWindow::loadSettings()
|
|||||||
|
|
||||||
if ( !s->mainWindowGeometry().isEmpty() )
|
if ( !s->mainWindowGeometry().isEmpty() )
|
||||||
restoreGeometry( s->mainWindowGeometry() );
|
restoreGeometry( s->mainWindowGeometry() );
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Set default window geometry
|
||||||
|
resize( QDesktopWidget().availableGeometry( this ).size() * 0.8 );
|
||||||
|
}
|
||||||
|
|
||||||
if ( !s->mainWindowState().isEmpty() )
|
if ( !s->mainWindowState().isEmpty() )
|
||||||
restoreState( s->mainWindowState() );
|
restoreState( s->mainWindowState() );
|
||||||
if ( !s->mainWindowSplitterState().isEmpty() )
|
if ( !s->mainWindowSplitterState().isEmpty() )
|
||||||
|
Reference in New Issue
Block a user