Ensure tab index 0 is selected at startup

This commit is contained in:
Klaus Basan
2017-02-04 06:33:44 +01:00
committed by Mathew Sutcliffe
parent 909ea08853
commit 371ee82f1b
5 changed files with 5 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ namespace BlackGui
ui(new Ui::CAircraftComponent)
{
ui->setupUi(this);
this->setCurrentIndex(0);
this->tabBar()->setExpanding(false);
this->tabBar()->setUsesScrollButtons(true);
ui->tvp_AirportsInRange->setResizeMode(CAirportView::ResizingOnce);

View File

@@ -59,6 +59,7 @@ namespace BlackGui
ui(new Ui::CAtcStationComponent)
{
ui->setupUi(this);
this->setCurrentIndex(0);
this->tabBar()->setExpanding(false);
this->tabBar()->setUsesScrollButtons(true);
CUpperCaseValidator *ucv = new CUpperCaseValidator(ui->le_AtcStationsOnlineMetar);

View File

@@ -43,6 +43,7 @@ namespace BlackGui
ui(new Ui::CSimulatorComponent)
{
ui->setupUi(this);
this->setCurrentIndex(0);
ui->tvp_LiveData->setIconMode(true);
ui->tvp_LiveData->setAutoResizeFrequency(10); // only resize every n-th time
this->addOrUpdateLiveDataByName("info", "no data yet", CIcons::StandardIconWarning16);

View File

@@ -64,7 +64,7 @@ namespace BlackGui
ui(new Ui::CTextMessageComponent)
{
ui->setupUi(this);
ui->tw_TextMessages->setCurrentIndex(0);
ui->le_textMessages->setVisible(false);
ui->tvp_TextMessagesAll->setResizeMode(CTextMessageView::ResizingAuto);

View File

@@ -35,6 +35,7 @@ namespace BlackGui
ui(new Ui::CUserComponent)
{
ui->setupUi(this);
this->setCurrentIndex(0);
this->tabBar()->setExpanding(false);
this->tabBar()->setUsesScrollButtons(true);
connect(ui->tvp_AllUsers, &CUserView::modelDataChangedDigest, this, &CUserComponent::ps_onCountChanged);