示例#1
0
Export_Dialog::Export_Dialog(QWidget *parent) :
    QDialog(parent), canvas ( 0 )
{
    setupUi(this);
    setWindowIcon(load::icon("document-export"));
    connect(&Translator::object,SIGNAL(language_changed()),SLOT(retranslate()));
}
示例#2
0
void Field::optionsDialog() {
    auto dialog = new OptionsDialog;
    connect(dialog, SIGNAL(settings_changed(int, int, int)), SLOT(changeSettings(int, int, int)));
    connect(dialog, SIGNAL(askMark_status_changed(bool)), SLOT(askMarkAllow(bool)));
    connect(dialog, SIGNAL(language_changed(QString)), SLOT(changeLanguage(QString)));
    dialog->show();
    dialog->setAttribute(Qt::WA_DeleteOnClose);
}