本文整理汇总了C++中SIGNAL::getPort方法的典型用法代码示例。如果您正苦于以下问题:C++ SIGNAL::getPort方法的具体用法?C++ SIGNAL::getPort怎么用?C++ SIGNAL::getPort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SIGNAL
的用法示例。
在下文中一共展示了SIGNAL::getPort方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createDialogContent
void RemoteControlDialog::createDialogContent()
{
rc = GETSTELMODULE(RemoteControl);
ui->setupUi(dialog);
// Kinetic scrolling
kineticScrollingList << ui->aboutTextBrowser;
StelGui* gui= dynamic_cast<StelGui*>(StelApp::getInstance().getGui());
if (gui)
{
enableKineticScrolling(gui->getFlagUseKineticScrolling());
connect(gui, SIGNAL(flagUseKineticScrollingChanged(bool)), this, SLOT(enableKineticScrolling(bool)));
}
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close()));
connect(ui->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMovedTo(QPoint)));
// TODO Fill other buttons
connectCheckBox(ui->enabledCheckbox,"actionShow_Remote_Control");
connect(ui->enabledCheckbox, SIGNAL(clicked(bool)), this, SLOT(updateIPlabel(bool)));
updateIPlabel(ui->enabledCheckbox->isChecked());
ui->activateOnStartCheckBox->setChecked(rc->getFlagAutoStart());
connect(ui->activateOnStartCheckBox, SIGNAL(toggled(bool)), rc, SLOT(setFlagAutoStart(bool)));
connect(rc, SIGNAL(flagAutoStartChanged(bool)), ui->activateOnStartCheckBox, SLOT(setChecked(bool)));
ui->passwordCheckBox->setChecked(rc->getFlagUsePassword());
connect(ui->passwordCheckBox, SIGNAL(toggled(bool)), rc, SLOT(setFlagUsePassword(bool)));
connect(rc, SIGNAL(flagUsePasswordChanged(bool)), ui->passwordCheckBox, SLOT(setChecked(bool)));
ui->passwordEdit->setEnabled(rc->getFlagUsePassword());
ui->passwordEdit->setText(rc->getPassword());
connect(rc,SIGNAL(flagUsePasswordChanged(bool)),ui->passwordEdit,SLOT(setEnabled(bool)));
connect(ui->passwordEdit, SIGNAL(textChanged(QString)), rc, SLOT(setPassword(QString)));
ui->portNumberSpinBox->setValue(rc->getPort());
connect(ui->portNumberSpinBox, SIGNAL(valueChanged(int)), rc, SLOT(setPort(int)));
ui->restartPanel->setVisible(false);
connect(rc, SIGNAL(flagUsePasswordChanged(bool)), this, SLOT(requiresRestart()));
connect(rc, SIGNAL(passwordChanged(QString)), this, SLOT(requiresRestart()));
connect(rc, SIGNAL(portChanged(int)), this, SLOT(requiresRestart()));
connect(ui->resetButton, SIGNAL(clicked(bool)),this,SLOT(restart()));
connect(ui->saveSettingsButton, SIGNAL(clicked()), rc, SLOT(saveSettings()));
connect(ui->restoreDefaultsButton, SIGNAL(clicked()), rc, SLOT(restoreDefaultSettings()));
setAboutHtml();
}