Commit 91dbac0d authored by WINTZ Julien's avatar WINTZ Julien

Fixing alternate menu population.

parent daa47c3c
......@@ -62,15 +62,15 @@ dtkWidgetsMenuBar *dtkWidgetsMainWindow::menubar(void)
void dtkWidgetsMainWindow::populate(void)
{
Q_UNUSED(this->menubar());
//Q_UNUSED(this->populateFileMenu());
// Q_UNUSED(this->populateFileMenu());
Q_UNUSED(this->populateThemesMenu());
//Q_UNUSED(this->populateAboutMenu());
// Q_UNUSED(this->populateAboutMenu());
}
dtkWidgetsMenu *dtkWidgetsMainWindow::populateFileMenu(void)
{
Q_UNUSED(this->menubar());
if(!d->menu_files) {
d->menu_files = d->menubar->insertMenu(0, fa::file, "Files");
d->menu_files->addItem(0, "Open");
......@@ -84,6 +84,8 @@ dtkWidgetsMenu *dtkWidgetsMainWindow::populateFileMenu(void)
dtkWidgetsMenu *dtkWidgetsMainWindow::populateThemesMenu(void)
{
Q_UNUSED(this->menubar());
if(!d->menu_themes) {
d->menu_themes = d->menubar->addMenu(fa::paintbrush, "Themes");
......@@ -100,6 +102,8 @@ dtkWidgetsMenu *dtkWidgetsMainWindow::populateThemesMenu(void)
dtkWidgetsMenu *dtkWidgetsMainWindow::populateAboutMenu(void)
{
Q_UNUSED(this->menubar());
if(!d->menu_about) {
d->menu_about = d->menubar->addMenu(fa::question, "About");
d->menu_about->addMenu(fa::question, "dtk")->addItem(0, "prout");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment