equal
deleted
inserted
replaced
111 } |
111 } |
112 |
112 |
113 QLayout * PageNetGame::footerLayoutLeftDefinition() |
113 QLayout * PageNetGame::footerLayoutLeftDefinition() |
114 { |
114 { |
115 QHBoxLayout * bottomLeftLayout = new QHBoxLayout(); |
115 QHBoxLayout * bottomLeftLayout = new QHBoxLayout(); |
|
116 bottomLeftLayout->setContentsMargins(0,0,0,0); |
116 |
117 |
117 btnSetup = addButton(":/res/Settings.png", bottomLeftLayout, 0, true, Qt::AlignBottom); |
118 btnSetup = addButton(":/res/Settings.png", bottomLeftLayout, 0, true, Qt::AlignBottom); |
118 btnSetup->setWhatsThis(tr("Edit game preferences")); |
119 btnSetup->setWhatsThis(tr("Edit game preferences")); |
119 |
120 |
120 return bottomLeftLayout; |
121 return bottomLeftLayout; |
132 setReadyStatus(false); |
133 setReadyStatus(false); |
133 BtnGo->setMinimumWidth(50); |
134 BtnGo->setMinimumWidth(50); |
134 BtnGo->setMinimumHeight(50); |
135 BtnGo->setMinimumHeight(50); |
135 |
136 |
136 bottomLayout->addStretch(); |
137 bottomLayout->addStretch(); |
137 bottomLayout->addWidget(BtnGo); |
138 bottomLayout->addWidget(BtnGo, 0, Qt::AlignBottom); |
138 |
139 |
139 // Start button |
140 // Start button |
140 |
141 |
141 const QIcon& lp = QIcon(":/res/Start.png"); |
142 const QIcon& lp = QIcon(":/res/Start.png"); |
142 QSize sz = lp.actualSize(QSize(65535, 65535)); |
143 QSize sz = lp.actualSize(QSize(65535, 65535)); |
147 BtnStart->setIcon(lp); |
148 BtnStart->setIcon(lp); |
148 BtnStart->setFixedHeight(50); |
149 BtnStart->setFixedHeight(50); |
149 BtnStart->setIconSize(sz); |
150 BtnStart->setIconSize(sz); |
150 BtnStart->setFlat(true); |
151 BtnStart->setFlat(true); |
151 BtnStart->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
152 BtnStart->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
152 bottomLayout->addWidget(BtnStart); |
153 bottomLayout->addWidget(BtnStart, 0, Qt::AlignBottom); |
153 |
154 |
154 return bottomLayout; |
155 return bottomLayout; |
155 } |
156 } |
156 |
157 |
157 void PageNetGame::connectSignals() |
158 void PageNetGame::connectSignals() |