mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 22:55:41 +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(new Ui::CAircraftComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
this->setCurrentIndex(0);
|
||||||
this->tabBar()->setExpanding(false);
|
this->tabBar()->setExpanding(false);
|
||||||
this->tabBar()->setUsesScrollButtons(true);
|
this->tabBar()->setUsesScrollButtons(true);
|
||||||
ui->tvp_AirportsInRange->setResizeMode(CAirportView::ResizingOnce);
|
ui->tvp_AirportsInRange->setResizeMode(CAirportView::ResizingOnce);
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ namespace BlackGui
|
|||||||
ui(new Ui::CAtcStationComponent)
|
ui(new Ui::CAtcStationComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
this->setCurrentIndex(0);
|
||||||
this->tabBar()->setExpanding(false);
|
this->tabBar()->setExpanding(false);
|
||||||
this->tabBar()->setUsesScrollButtons(true);
|
this->tabBar()->setUsesScrollButtons(true);
|
||||||
CUpperCaseValidator *ucv = new CUpperCaseValidator(ui->le_AtcStationsOnlineMetar);
|
CUpperCaseValidator *ucv = new CUpperCaseValidator(ui->le_AtcStationsOnlineMetar);
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ namespace BlackGui
|
|||||||
ui(new Ui::CSimulatorComponent)
|
ui(new Ui::CSimulatorComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
this->setCurrentIndex(0);
|
||||||
ui->tvp_LiveData->setIconMode(true);
|
ui->tvp_LiveData->setIconMode(true);
|
||||||
ui->tvp_LiveData->setAutoResizeFrequency(10); // only resize every n-th time
|
ui->tvp_LiveData->setAutoResizeFrequency(10); // only resize every n-th time
|
||||||
this->addOrUpdateLiveDataByName("info", "no data yet", CIcons::StandardIconWarning16);
|
this->addOrUpdateLiveDataByName("info", "no data yet", CIcons::StandardIconWarning16);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ namespace BlackGui
|
|||||||
ui(new Ui::CTextMessageComponent)
|
ui(new Ui::CTextMessageComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->tw_TextMessages->setCurrentIndex(0);
|
||||||
ui->le_textMessages->setVisible(false);
|
ui->le_textMessages->setVisible(false);
|
||||||
ui->tvp_TextMessagesAll->setResizeMode(CTextMessageView::ResizingAuto);
|
ui->tvp_TextMessagesAll->setResizeMode(CTextMessageView::ResizingAuto);
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ namespace BlackGui
|
|||||||
ui(new Ui::CUserComponent)
|
ui(new Ui::CUserComponent)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
this->setCurrentIndex(0);
|
||||||
this->tabBar()->setExpanding(false);
|
this->tabBar()->setExpanding(false);
|
||||||
this->tabBar()->setUsesScrollButtons(true);
|
this->tabBar()->setUsesScrollButtons(true);
|
||||||
connect(ui->tvp_AllUsers, &CUserView::modelDataChangedDigest, this, &CUserComponent::ps_onCountChanged);
|
connect(ui->tvp_AllUsers, &CUserView::modelDataChangedDigest, this, &CUserComponent::ps_onCountChanged);
|
||||||
|
|||||||
Reference in New Issue
Block a user