예제 #1
0
void MainForm::connectObjects() {
	// Ereignishandler fuer Widget registrieren
	connect(ButtonEnde, SIGNAL(clicked()), this, SLOT(close()));
	connect(ButtonStart, SIGNAL(clicked()), this, SLOT(btnStartClicked()));
	connect(ButtonAdd, SIGNAL(clicked()), this, SLOT(btnAddClicked()));
	connect(ButtonDel, SIGNAL(clicked()), this, SLOT(btnDelClicked()));
	connect(Gnuboy, SIGNAL(stateChanged(QProcess::ProcessState)), this, SLOT(gameStatusChanged(QProcess::ProcessState)));
	connect(ListViewSpiele->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), this, SLOT(selectedGameChanged(const QItemSelection&, const QItemSelection&)));
	connect(ComboEmulator, SIGNAL(currentIndexChanged(int)), this, SLOT(emulatorChanged(int)));
}
예제 #2
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: horizontalSliderValueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: btnAddClicked(); break;
        case 2: btnRemoveClicked(); break;
        case 3: btnResizeClicked(); break;
        case 4: btnSelectOutDirClicked(); break;
        case 5: on_actionHelp_triggered(); break;
        case 6: on_actionAbout_triggered(); break;
        case 7: on_actionQuit_triggered(); break;
        default: ;
        }
        _id -= 8;
    }
    return _id;
}