mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 21:45:34 +08:00
Ensure tab index 0 is selected at startup
This commit is contained in:
committed by
Mathew Sutcliffe
parent
909ea08853
commit
371ee82f1b
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user