mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Better window size constants for netbook displays.
This commit is contained in:
parent
77ad3194a6
commit
5b045dc72c
1 changed files with 2 additions and 2 deletions
|
@ -41,10 +41,10 @@ CalamaresWindow::CalamaresWindow( QWidget* parent )
|
||||||
.arg( Calamares::Branding::instance()->
|
.arg( Calamares::Branding::instance()->
|
||||||
string( Calamares::Branding::ProductName ) ) );
|
string( Calamares::Branding::ProductName ) ) );
|
||||||
|
|
||||||
setMinimumSize( 1010, 560 );
|
setMinimumSize( 1010, 520 );
|
||||||
QSize availableSize = qApp->desktop()->screenGeometry( this ).size();
|
QSize availableSize = qApp->desktop()->screenGeometry( this ).size();
|
||||||
int w = qBound( 1010, CalamaresUtils::defaultFontHeight() * 60, availableSize.width() );
|
int w = qBound( 1010, CalamaresUtils::defaultFontHeight() * 60, availableSize.width() );
|
||||||
int h = qBound( 560, CalamaresUtils::defaultFontHeight() * 36, availableSize.height() );
|
int h = qBound( 520, CalamaresUtils::defaultFontHeight() * 36, availableSize.height() );
|
||||||
|
|
||||||
cDebug() << "Proposed window size:" << w << h;
|
cDebug() << "Proposed window size:" << w << h;
|
||||||
resize( w, h );
|
resize( w, h );
|
||||||
|
|
Loading…
Add table
Reference in a new issue