示例#1
0
APP_NAMESPACE_START

MenuBar::MenuBar(QWidget *p)
    : QMenuBar(p)
{
    addFileMenu();
    addEditMenu();
    addProjectMenu();
    addHelpMenu();
}
示例#2
0
AS_NAMESPACE_START

MenuBar::MenuBar(QWidget *p)
    : QMenuBar(p)
{
    addFileMenu();
    addEditMenu();
    addProjectMenu();
    addHelpMenu();
    _connections << connect(this, SIGNAL(projectOpen(QString)), p, SLOT(onMenuBarProjectOpen(QString)));
}