File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,8 @@ void GameSettingsWidget::showTimeControlDialog()
463463 if (m_splitTimeControls)
464464 {
465465 PairTimeControlDialog dlg (m_timeControl[Chess::Side::White],
466- m_splitTimeControls ? m_timeControl[Chess::Side::Black] : TimeControl ());
466+ m_splitTimeControls ? m_timeControl[Chess::Side::Black] : TimeControl (),
467+ this ->parentWidget ());
467468 if (dlg.exec () == QDialog::Accepted)
468469 {
469470 for (int i = 0 ; i < 2 ; i++)
@@ -474,7 +475,8 @@ void GameSettingsWidget::showTimeControlDialog()
474475 accepted = true ;
475476 }
476477 } else {
477- TimeControlDialog dlg (m_timeControl[Chess::Side::White]);
478+ TimeControlDialog dlg (m_timeControl[Chess::Side::White],
479+ this ->parentWidget ());
478480 if (dlg.exec () == QDialog::Accepted)
479481 {
480482 for (int i = 0 ; i < 2 ; i++)
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ void NewTournamentDialog::onContextMenuRequest()
309309 if (!tc.isValid ())
310310 tc = ui->m_gameSettings ->timeControl ();
311311
312- auto dlg = new TimeControlDialog (tc);
312+ auto dlg = new TimeControlDialog (tc, this );
313313 QString name {m_addedEnginesManager->engines ().at (i).name ()};
314314 if (selected.count () > 1 )
315315 name.append (tr (" - %0 engines" ).arg (selected.count ()));
Original file line number Diff line number Diff line change 1111 </rect >
1212 </property >
1313 <property name =" windowTitle" >
14- <string >Time Control </string >
14+ <string >Time Controls </string >
1515 </property >
1616 <layout class =" QVBoxLayout" name =" verticalLayout" >
17+ <property name =" sizeConstraint" >
18+ <enum >QLayout::SetFixedSize</enum >
19+ </property >
1720 <item >
1821 <layout class =" QGridLayout" name =" gridLayout" >
1922 <property name =" sizeConstraint" >
Original file line number Diff line number Diff line change 1414 <string >Time Control</string >
1515 </property >
1616 <layout class =" QVBoxLayout" name =" verticalLayout" >
17+ <property name =" sizeConstraint" >
18+ <enum >QLayout::SetFixedSize</enum >
19+ </property >
1720 <item >
1821 <widget class =" TimeControlWidget" name =" m_timeControlWidget" native =" true" />
1922 </item >
You can’t perform that action at this time.
0 commit comments