mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Ref T195, launcher uses CDBusServerAddressSelector::editingFinished
This commit is contained in:
@@ -57,7 +57,13 @@ CSwiftLauncher::CSwiftLauncher(QWidget *parent) :
|
|||||||
connect(ui->tb_BackToMain, &QToolButton::pressed, this, &CSwiftLauncher::showMainPage);
|
connect(ui->tb_BackToMain, &QToolButton::pressed, this, &CSwiftLauncher::showMainPage);
|
||||||
connect(ui->tb_ConfigurationWizard, &QToolButton::pressed, this, &CSwiftLauncher::startWizard);
|
connect(ui->tb_ConfigurationWizard, &QToolButton::pressed, this, &CSwiftLauncher::startWizard);
|
||||||
connect(ui->tb_Launcher, &QToolBox::currentChanged, this, &CSwiftLauncher::tabChanged);
|
connect(ui->tb_Launcher, &QToolBox::currentChanged, this, &CSwiftLauncher::tabChanged);
|
||||||
|
|
||||||
|
connect(ui->rb_SwiftCoreAudioOnCore, &QRadioButton::released, this, &CSwiftLauncher::onCoreModeReleased);
|
||||||
|
connect(ui->rb_SwiftCoreAudioOnGui, &QRadioButton::released, this, &CSwiftLauncher::onCoreModeReleased);
|
||||||
|
connect(ui->rb_SwiftStandalone, &QRadioButton::released, this, &CSwiftLauncher::onCoreModeReleased);
|
||||||
|
|
||||||
connect(ui->comp_DistributionInfo, &CDistributionInfoComponent::distributionInfoAvailable, this, &CSwiftLauncher::distributionInfoAvailable);
|
connect(ui->comp_DistributionInfo, &CDistributionInfoComponent::distributionInfoAvailable, this, &CSwiftLauncher::distributionInfoAvailable);
|
||||||
|
connect(ui->comp_DBusSelector, &CDBusServerAddressSelector::editingFinished, this, &CSwiftLauncher::onDBusEditingFinished);
|
||||||
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CSwiftLauncher::onStyleSheetsChanged);
|
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &CSwiftLauncher::onStyleSheetsChanged);
|
||||||
|
|
||||||
new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_L), this, SLOT(showLogPage()));
|
new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_L), this, SLOT(showLogPage()));
|
||||||
@@ -461,3 +467,13 @@ void CSwiftLauncher::onStyleSheetsChanged()
|
|||||||
{
|
{
|
||||||
this->initStyleSheet();
|
this->initStyleSheet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSwiftLauncher::onDBusEditingFinished()
|
||||||
|
{
|
||||||
|
ui->rb_SwiftCoreAudioOnGui->setChecked(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CSwiftLauncher::onCoreModeReleased()
|
||||||
|
{
|
||||||
|
ui->comp_DBusSelector->setEnabled(!ui->rb_SwiftStandalone->isChecked());
|
||||||
|
}
|
||||||
|
|||||||
@@ -178,6 +178,12 @@ private:
|
|||||||
//! Style sheet has been changed
|
//! Style sheet has been changed
|
||||||
void onStyleSheetsChanged();
|
void onStyleSheetsChanged();
|
||||||
|
|
||||||
|
//! DBus editing completed
|
||||||
|
void onDBusEditingFinished();
|
||||||
|
|
||||||
|
//! Core mode has been changed
|
||||||
|
void onCoreModeReleased();
|
||||||
|
|
||||||
//! Command line
|
//! Command line
|
||||||
static QString toCmdLine(const QString &exe, const QStringList &exeArgs);
|
static QString toCmdLine(const QString &exe, const QStringList &exeArgs);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user