fortuneserver/fortuneclient: Fix layout for WinRT.
Use the new API QStyleHints::showIsMaximized(). Change-Id: I1342b3c29ef4ccfcf635a32d403f9aa7ce0cb4e4 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
This commit is contained in:
parent
893f2ade85
commit
fcedf8998e
@ -117,7 +117,7 @@ Client::Client(QWidget *parent)
|
||||
//! [4]
|
||||
|
||||
QGridLayout *mainLayout = Q_NULLPTR;
|
||||
if (QGuiApplication::styleHints()->showIsFullScreen()) {
|
||||
if (QGuiApplication::styleHints()->showIsFullScreen() || QGuiApplication::styleHints()->showIsMaximized()) {
|
||||
QVBoxLayout *outerVerticalLayout = new QVBoxLayout(this);
|
||||
outerVerticalLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding));
|
||||
QHBoxLayout *outerHorizontalLayout = new QHBoxLayout;
|
||||
|
@ -100,7 +100,7 @@ Server::Server(QWidget *parent)
|
||||
buttonLayout->addStretch(1);
|
||||
|
||||
QVBoxLayout *mainLayout = Q_NULLPTR;
|
||||
if (QGuiApplication::styleHints()->showIsFullScreen()) {
|
||||
if (QGuiApplication::styleHints()->showIsFullScreen() || QGuiApplication::styleHints()->showIsMaximized()) {
|
||||
QVBoxLayout *outerVerticalLayout = new QVBoxLayout(this);
|
||||
outerVerticalLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding));
|
||||
QHBoxLayout *outerHorizontalLayout = new QHBoxLayout;
|
||||
|
Loading…
x
Reference in New Issue
Block a user