Beispiel #1
0
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)));
}
Beispiel #2
0
void WDWizardPage::showEvent(QShowEvent *event) {
    if (wizard()->currentPage() == this) {
        setupDialogSize();
    }
    QAbstractButton *runButton = getRunButton(wizard());
    if (NULL != runButton) {
        runButton->setVisible(isFinalPage());
    }
    QWizardPage::showEvent(event);
}