Ejemplo n.º 1
0
InstallDialog::InstallDialog(CIMClient *client, QWidget *parent) :
    QDialog(parent),
    m_client(client),
    m_ui(new Ui::InstallDialog)
{
    m_ui->setupUi(this);
    m_ui->progress_bar->hide();
    m_ui->progress_bar->setMaximum(0);
    setWindowFlags(Qt::Popup);
    m_ui->search_line->setFocus(Qt::PopupFocusReason);

    connect(
        m_ui->search_button,
        SIGNAL(clicked()),
        this,
        SLOT(onSearchButtonClicked()));
    connect(
        this,
        SIGNAL(haveData()),
        this,
        SLOT(displayData()));
}
Ejemplo n.º 2
0
void PhonebookForm::connectSignals() {
    QObject::connect(this->allPhonesButton, SIGNAL(clicked()), this, SLOT(onAllPhonesButtonClicked()));
    QObject::connect(this->searchButton, SIGNAL(clicked()), this, SLOT(onSearchButtonClicked()));
    QObject::connect(this->clearButton, SIGNAL(clicked()), this, SLOT(onClearButtonClicked()));
}