Ejemplo n.º 1
0
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: on_actionNew_triggered(); break;
        case 1: on_actionSaveAS_triggered(); break;
        case 2: on_actionSafe_triggered(); break;
        case 3: on_actionOpen_triggered(); break;
        case 4: on_actionExit_triggered(); break;
        case 5: on_actionUndo_triggered(); break;
        case 6: on_actionCopy_triggered(); break;
        case 7: on_actionPaste_triggered(); break;
        case 8: on_actionCut_triggered(); break;
        case 9: on_actionRedo_triggered(); break;
        case 10: on_actionFind_triggered(); break;
        case 11: findString(); break;
        default: ;
        }
        _id -= 12;
    }
    return _id;
}
Ejemplo n.º 2
0
int TvrUiWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: on_actionVolume_triggered(); break;
        case 1: on_actionNew_triggered(); break;
        case 2: on_actionSave_triggered(); break;
        case 3: on_actionSaveAs_triggered(); break;
        case 4: on_actionAbout_triggered(); break;
        case 5: on_actionOpen_triggered(); break;
        case 6: on_actionExit_triggered(); break;
        case 7: on_actionRecord_triggered(); break;
        case 8: on_actionStop_triggered(); break;
        case 9: on_actionPlay_triggered(); break;
        case 10: on_actionPaused_triggered(); break;
        case 11: updateProgressBar(); break;
        default: ;
        }
        _id -= 12;
    }
    return _id;
}
int C_pro::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: on_removed_table_cellClicked((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: on_pushButton_6_clicked(); break;
        case 2: on_pushButton_5_clicked(); break;
        case 3: on_pushButton_4_clicked(); break;
        case 4: on_actionChange_Database_triggered(); break;
        case 5: on_old_id_textChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 6: on_actionExit_triggered(); break;
        case 7: on_actionShow_Database_triggered(); break;
        case 8: on_pushButton_3_clicked(); break;
        case 9: on_id_delete_textChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 10: on_pushButton_2_clicked(); break;
        case 11: on_pushButton_clicked(); break;
        case 12: on_lineEdit_textChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 13;
    }
    return _id;
}
Ejemplo n.º 4
0
void MainWindow::createActions()
{
    minimizeAction = new QAction(tr("Mi&nimize"), this);
    connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide()));

    maximizeAction = new QAction(tr("Ma&ximize"), this);
    connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized()));

    restoreAction = new QAction(tr("&Restore"), this);
    connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal()));

    quitAction = new QAction(tr("E&xit"), this);
    connect(quitAction, SIGNAL(triggered()), this, SLOT(on_actionExit_triggered()));
}
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: on_actionAbout_triggered(); break;
        case 1: on_actionTool_Bar_triggered((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 2: on_actionStatus_bar_triggered((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 3: on_actionExit_triggered(); break;
        default: ;
        }
        _id -= 4;
    }
    return _id;
}
Ejemplo n.º 6
0
void MainWindow::on_exitButton_clicked() {
    on_actionExit_triggered();
}
Ejemplo n.º 7
0
void
DrishtiImport::closeEvent(QCloseEvent *)
{
  on_actionExit_triggered();
}
Ejemplo n.º 8
0
void MainWindow::closeEvent(QCloseEvent * em)
{
    on_actionExit_triggered();
    em->ignore();
}