void CmdBox::initSlotsAndSignals(){ QObject::connect(getCmdEdit(), SIGNAL(textChanged(QString)), this, SLOT(updateLastItem(QString))); QObject::connect(getRunButton(), SIGNAL(clicked()), this, SLOT(execCommand())); QObject::connect(getCmdEdit(), SIGNAL(textChanged(QString)), this, SLOT(updateList(QString))); }
void WDWizardPage::showEvent(QShowEvent *event) { if (wizard()->currentPage() == this) { setupDialogSize(); } QAbstractButton *runButton = getRunButton(wizard()); if (NULL != runButton) { runButton->setVisible(isFinalPage()); } QWizardPage::showEvent(event); }