Fix compilation.

This commit is contained in:
Martin Rotter 2014-03-15 07:15:41 +01:00
parent 90020f7655
commit 8eed51a9a8
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ void TabWidget::setupMainMenuButton() {
setCornerWidget(m_menuButton, Qt::TopLeftCorner); setCornerWidget(m_menuButton, Qt::TopLeftCorner);
} }
bool TabWidget::openMainMenu() { void TabWidget::openMainMenu() {
if (m_mainMenu == NULL) { if (m_mainMenu == NULL) {
m_mainMenu = new QMenu(tr("Main menu"), this); m_mainMenu = new QMenu(tr("Main menu"), this);
m_mainMenu->addMenu(FormMain::instance()->m_ui->m_menuFile); m_mainMenu->addMenu(FormMain::instance()->m_ui->m_menuFile);

View File

@ -102,7 +102,7 @@ class TabWidget : public QTabWidget {
bool closeTab(int index); bool closeTab(int index);
bool closeCurrentTab(); bool closeCurrentTab();
bool openMainMenu(); void openMainMenu();
// Closes all "closable" tabs except the active tab. // Closes all "closable" tabs except the active tab.
void closeAllTabsExceptCurrent(); void closeAllTabsExceptCurrent();