Properly scale Start button size in pagenetgame just like in pagemultiplayer
authorWuzzy <Wuzzy2@mail.ru>
Sat, 25 Aug 2018 21:00:26 +0200
changeset 13698 9b73f079e811
parent 13697 7f174e7285e5
child 13699 e6523fe53d11
Properly scale Start button size in pagenetgame just like in pagemultiplayer
QTfrontend/ui/page/pagenetgame.cpp
--- a/QTfrontend/ui/page/pagenetgame.cpp	Sat Aug 25 20:52:33 2018 +0200
+++ b/QTfrontend/ui/page/pagenetgame.cpp	Sat Aug 25 21:00:26 2018 +0200
@@ -143,13 +143,13 @@
     QSize sz = lp.actualSize(QSize(65535, 65535));
     BtnStart = new QPushButton();
     BtnStart->setText(tr("Start"));
+    BtnStart->setStyleSheet("padding: 5px 10px");
     BtnStart->setWhatsThis(tr("Start fighting (requires at least 2 teams)"));
-    BtnStart->setMinimumWidth(sz.width() + 60);
     BtnStart->setIcon(lp);
     BtnStart->setFixedHeight(50);
     BtnStart->setIconSize(sz);
     BtnStart->setFlat(true);
-    BtnStart->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+    BtnStart->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
     bottomLayout->addWidget(BtnStart, 0, Qt::AlignBottom);
 
     return bottomLayout;