Ejemplo n.º 1
0
void BanPairDialog::addPair(){
    FreeChooseDialog *chooser = new FreeChooseDialog(this, true);
    connect(chooser, SIGNAL(pair_chosen(QString,QString)),
            this, SLOT(addPair(QString,QString)));

    chooser->exec();
}
Ejemplo n.º 2
0
void BanlistDialog::doAdd2ndButton() {
    FreeChooseDialog *chooser = new FreeChooseDialog(this, false);
    connect(chooser, SIGNAL(general_chosen(QString)), this, SLOT(add2ndGeneral(QString)));
    chooser->exec();
}
Ejemplo n.º 3
0
void BanlistDialog::doAddButton() {
    FreeChooseDialog *chooser = new FreeChooseDialog(this, (list->objectName() == "Pairs"));
    connect(chooser, SIGNAL(general_chosen(QString)), this, SLOT(addGeneral(QString)));
    connect(chooser, SIGNAL(pair_chosen(QString, QString)), this, SLOT(addPair(QString, QString)));
    chooser->exec();
}