mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Utility function to set button width for QWizard
This commit is contained in:
committed by
Mat Sutcliffe
parent
0732c32922
commit
072bb34a32
@@ -9,6 +9,7 @@
|
||||
#include "configurationwizard.h"
|
||||
#include "ui_configurationwizard.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackgui/guiutility.h"
|
||||
#include "blackmisc/math/mathutils.h"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include <QPointer>
|
||||
@@ -25,7 +26,6 @@ namespace BlackGui
|
||||
ui(new Ui::CConfigurationWizard)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
this->setWindowFlags(windowFlags() | Qt::CustomizeWindowHint | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint);
|
||||
|
||||
ui->wp_CopyModels->setConfigComponent(ui->comp_CopyModels);
|
||||
@@ -64,6 +64,7 @@ namespace BlackGui
|
||||
});
|
||||
|
||||
this->setScreenGeometry();
|
||||
CGuiUtility::setWizardButtonWidths(this);
|
||||
}
|
||||
|
||||
CConfigurationWizard::~CConfigurationWizard()
|
||||
|
||||
@@ -61,11 +61,7 @@ namespace BlackGui
|
||||
connect(ui->selector_AirlineName, &CDbAirlineIcaoSelectorComponent::changedAirlineIcao, this, &CDbQuickMappingWizard::onAirlineSelected, Qt::QueuedConnection);
|
||||
|
||||
ui->comp_Log->showFilterDialog(); // filter for log normally not needed, so dialog (not bar)
|
||||
|
||||
if (this->button(BackButton)) { this->button(BackButton)->setMinimumWidth(75); }
|
||||
if (this->button(NextButton)) { this->button(NextButton)->setMinimumWidth(75); }
|
||||
if (this->button(CancelButton)) { this->button(CancelButton)->setMinimumWidth(75); }
|
||||
if (this->button(FinishButton)) { this->button(FinishButton)->setMinimumWidth(75); }
|
||||
CGuiUtility::setWizardButtonWidths(this);
|
||||
|
||||
// init if data already available
|
||||
this->onWebDataRead();
|
||||
|
||||
Reference in New Issue
Block a user