コード例 #1
0
ファイル: helpviewlet.cpp プロジェクト: Omega9/synthclone
HelpViewlet::HelpViewlet(QMainWindow *mainWindow, QObject *parent):
    QObject(parent)
{
    QAction *aboutAction =
        synthclone::getChild<QAction>(mainWindow, "aboutHelpAction");
    connect(aboutAction, SIGNAL(triggered()), SIGNAL(aboutRequest()));

    QMenu *helpMenu = synthclone::getChild<QMenu>(mainWindow, "helpMenu");
    menuViewlet = new MenuViewlet(helpMenu);
}
コード例 #2
0
ファイル: mainscreen.cpp プロジェクト: Cata107/blowthemall
void MainScreen::on_aboutButton_clicked()
{
    emit aboutRequest();
}