# HG changeset patch # User Raimund Renkert # Date 1395907644 -3600 # Node ID f7176140d20d7195993cd7d7a404af7125c9df55 # Parent be628d261617589b6ff8569e33f26a535ae898d4 Added menu entry to show the status dialog. diff -r be628d261617 -r f7176140d20d ui/mainwindow.cpp --- a/ui/mainwindow.cpp Thu Mar 27 09:06:35 2014 +0100 +++ b/ui/mainwindow.cpp Thu Mar 27 09:07:24 2014 +0100 @@ -30,6 +30,7 @@ #include "listupdatedialog.h" #include "helpdialog.h" #include "aboutdialog.h" +#include "statusdialog.h" MainWindow::MainWindow() { createActions(); @@ -211,6 +212,7 @@ mMenuBar->addMenu(mMenu); QAction *update = mMenu->addAction(tr("Force Update")); QAction *settings = mMenu->addAction(tr("Settings")); + QAction *status = mMenu->addAction(tr("Statusdialog")); mMenu->addSeparator(); QAction *help = mMenu->addAction(tr("Help")); QAction *about = mMenu->addAction(tr("About")); @@ -218,6 +220,7 @@ QAction *quit = mMenu->addAction(tr("Quit")); connect(update, SIGNAL(triggered()), this, SLOT(checkUpdates())); connect(settings, SIGNAL(triggered()), this, SLOT(showSettings())); + connect(status, SIGNAL(triggered()), this, SLOT(showStatus())); connect(help, SIGNAL(triggered()), this, SLOT(showHelp())); connect(about, SIGNAL(triggered()), this, SLOT(showAbout())); connect(quit, SIGNAL(triggered()), qApp, SLOT(quit())); @@ -309,6 +312,13 @@ qDebug() << "show settingsdialog"; } +void MainWindow::showStatus() +{ + qDebug() << "show settingsdialog"; + StatusDialog *status = new StatusDialog(this); + status->show(); +} + void MainWindow::showHelp() { qDebug() << "show helpdialog"; diff -r be628d261617 -r f7176140d20d ui/mainwindow.h --- a/ui/mainwindow.h Thu Mar 27 09:06:35 2014 +0100 +++ b/ui/mainwindow.h Thu Mar 27 09:07:24 2014 +0100 @@ -49,6 +49,7 @@ /** @brief Trigger the appropiate action depending on the state */ void messageClicked(); void showSettings(); + void showStatus(); void showHelp(); void showAbout(); void showDetails(QListWidgetItem*);