Пример #1
0
void QX::BuildMenu()
{
    menu = QSoftMenuBar::menuFor(this);
    menu->addAction(tr("Launch"),this,SLOT(launch_clicked()));
    menu->addAction(tr("Settings"),this,SLOT(settings_clicked()));
    menu->addAction(tr("Info"),this,SLOT(info_clicked()));
    menu->addSeparator();
    favouritesAction = menu->addAction(tr("Favourites"),this,SLOT(favourites_clicked()));
    favouritesAction->setCheckable(true);
    menu->addSeparator();
    menu->addAction(tr("Quit"),this,SLOT(quitClicked()));
}
Пример #2
0
void QX::BuildMenu()
{
#ifdef QTOPIA
    menu = QSoftMenuBar::menuFor(this);
#else
    menu = mainWin->menuBar()->addMenu("&File");
#endif
    menu->addAction(tr("Launch"),this,SLOT(launch_clicked()));
    menu->addAction(tr("Settings"),this,SLOT(settings_clicked()));
    menu->addAction(tr("Info"),this,SLOT(info_clicked()));
    menu->addSeparator();
    favouritesAction = menu->addAction(tr("Favourites"),this,SLOT(favourites_clicked()));
    favouritesAction->setCheckable(true);
    menu->addSeparator();
    menu->addAction(tr("Quit"),this,SLOT(quitClicked()));
}