void StartupFirstPage::initializePage () { connect (wizard (), SIGNAL (accepted ()), this, SLOT (handleAccepted ())); }
// ---------------------------------------------------------------------------- // SifUiDialogSelectLanguage::SifUiDialogSelectLanguage() // ---------------------------------------------------------------------------- // SifUiDialogSelectLanguage::SifUiDialogSelectLanguage(const QVariant &languages, QGraphicsItem *parent) : HbDialog(parent), mRadioButtonList(0), mOkAction(0) { setTimeout(HbPopup::NoTimeout); setDismissPolicy(HbPopup::NoDismiss); setModal(true); HbLabel *title = new HbLabel(hbTrId("txt_installer_title_select_language")); setHeadingWidget(title); Q_ASSERT( mRadioButtonList == 0 ); mRadioButtonList = new HbRadioButtonList(this); mRadioButtonList->setItems(languageNames(languages)); setContentWidget(mRadioButtonList); HbAction *okAction = new HbAction(QString(hbTrId("txt_common_button_ok")), this); disconnect(okAction, SIGNAL(triggered()), this, SLOT(close())); connect(okAction, SIGNAL(triggered()), this, SLOT(handleAccepted())); addAction(okAction); HbAction *cancelAction = new HbAction(QString(hbTrId("txt_common_button_cancel")), this); disconnect(cancelAction, SIGNAL(triggered()), this, SLOT(close())); connect(cancelAction, SIGNAL(triggered()), this, SLOT(handleRejected())); addAction(cancelAction); }
void StartupFirstPage::initializePage () { connect (wizard (), SIGNAL (accepted ()), this, SLOT (handleAccepted ())); XmlSettingsManager::Instance ()-> setProperty ("StartupVersion", 1); }
void KTorrentImportPage::initializePage () { connect (wizard (), SIGNAL (accepted ()), this, SLOT (handleAccepted ())); QString defaultFile = QDir::homePath () + "/.kde/share/config/ktorrentrc"; if (CheckValidity (defaultFile)) Ui_.FileLocation_->setText (defaultFile); }
PasswordInputWindow::PasswordInputWindow(QWidget *parent) : QDialog(parent), ui(new Ui::PasswordInputWindow) { ui->setupUi(this); bool success; success = connect(this, SIGNAL(accepted()), this, SLOT(handleAccepted())); Q_ASSERT(success); success = connect(this, SIGNAL(rejected()), this, SLOT(handleRejected())); Q_ASSERT(success); }
AdminWindow::AdminWindow(QWidget *parent) : QDialog(parent), ui(new Ui::AdminWindow), m_got_users(false) { ui->setupUi(this); bool success; success = connect(this, SIGNAL(accepted()), this, SLOT(handleAccepted())); Q_ASSERT(success); success = connect(this, SIGNAL(rejected()), this, SLOT(handleRejected())); Q_ASSERT(success); enableCorrectControls(); }
void StartupSecondPage::initializePage () { connect (wizard (), SIGNAL (accepted ()), this, SLOT (handleAccepted ()), Qt::UniqueConnection); connect (wizard (), SIGNAL (accepted ()), Selector_, SLOT (accept ()), Qt::UniqueConnection); XmlSettingsManager::Instance ()-> setProperty ("StartupVersion", 2); wizard ()->setField ("Aggregator/StorageDirty", true); }
void IMImportPage::initializePage () { connect (wizard (), SIGNAL (accepted ()), this, SLOT (handleAccepted ()), Qt::UniqueConnection); connect (this, SIGNAL (gotEntity (LeechCraft::Entity)), wizard (), SIGNAL (gotEntity (LeechCraft::Entity))); AccountsModel_->clear (); QStringList labels; labels << tr ("Account name") << tr ("JID") << tr ("Import account settings") << tr ("Import history"); AccountsModel_->setHorizontalHeaderLabels (labels); FindAccounts (); }
ImportWizard::ImportWizard (QWidget *parent) : QWizard (parent) { Ui_.setupUi (this); Importers_ << new AkregatorImporter (this); Importers_ << new LifereaImporter (this); Importers_ << new KTorrentImporter (this); Importers_ << new FirefoxImporter (this); connect (this, SIGNAL (accepted ()), this, SLOT (handleAccepted ()), Qt::QueuedConnection); connect (this, SIGNAL (accepted ()), this, SLOT (handleRejected ()), Qt::QueuedConnection); SetupImporters (); }