UI: StatsPage: Fix group boxes.

This commit is contained in:
Nodir Temirkhodjaev 2019-12-30 16:51:34 +05:00
parent 18d3f449ef
commit e1485f77b2

View File

@ -116,14 +116,14 @@ void OptionsPage::setupUi()
setIniEdited(true); setIniEdited(true);
}); });
m_gbStartup = new QGroupBox(); m_gbStartup = new QGroupBox(this);
auto startupLayout = new QVBoxLayout(); auto startupLayout = new QVBoxLayout();
startupLayout->addWidget(m_cbStart); startupLayout->addWidget(m_cbStart);
startupLayout->addWidget(m_cbProvBoot); startupLayout->addWidget(m_cbProvBoot);
m_gbStartup->setLayout(startupLayout); m_gbStartup->setLayout(startupLayout);
colLayout1->addWidget(m_gbStartup); colLayout1->addWidget(m_gbStartup);
m_gbTraffic = new QGroupBox(); m_gbTraffic = new QGroupBox(this);
auto trafficLayout = new QVBoxLayout(); auto trafficLayout = new QVBoxLayout();
trafficLayout->addWidget(m_cbFilterEnabled); trafficLayout->addWidget(m_cbFilterEnabled);
trafficLayout->addWidget(m_cbFilterLocals); trafficLayout->addWidget(m_cbFilterLocals);
@ -162,7 +162,7 @@ void OptionsPage::setupUi()
langLayout->addWidget(m_labelLanguage); langLayout->addWidget(m_labelLanguage);
langLayout->addWidget(m_comboLanguage); langLayout->addWidget(m_comboLanguage);
m_gbGlobal = new QGroupBox(); m_gbGlobal = new QGroupBox(this);
auto globalLayout = new QVBoxLayout(); auto globalLayout = new QVBoxLayout();
globalLayout->addWidget(m_cbHotKeys); globalLayout->addWidget(m_cbHotKeys);
globalLayout->addLayout(passwordLayout); globalLayout->addLayout(passwordLayout);
@ -241,7 +241,7 @@ void OptionsPage::setupComboLanguage()
void OptionsPage::setupDriverBox() void OptionsPage::setupDriverBox()
{ {
m_gbDriver = new QGroupBox(); m_gbDriver = new QGroupBox(this);
auto colLayout = new QVBoxLayout(); auto colLayout = new QVBoxLayout();
colLayout->setSpacing(10); colLayout->setSpacing(10);
@ -318,7 +318,7 @@ void OptionsPage::retranslateDriverMessage()
void OptionsPage::setupNewVersionBox() void OptionsPage::setupNewVersionBox()
{ {
m_gbNewVersion = new QGroupBox(); m_gbNewVersion = new QGroupBox(this);
auto colLayout = new QVBoxLayout(); auto colLayout = new QVBoxLayout();
colLayout->setSpacing(10); colLayout->setSpacing(10);