From dc932321943129297cd9b32184134b86fb72aa37 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 13 Aug 2016 19:39:27 +0400 Subject: show only critical messages, other messages are available on clicking "show notifications" button --- pica-client/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pica-client/mainwindow.cpp') diff --git a/pica-client/mainwindow.cpp b/pica-client/mainwindow.cpp index c440e20..2081dbc 100644 --- a/pica-client/mainwindow.cpp +++ b/pica-client/mainwindow.cpp @@ -138,11 +138,13 @@ void MainWindow::showhide_click() hide_notifications(); } -void MainWindow::AddNotification(QString &text) +void MainWindow::AddNotification(QString &text, bool is_critical) { notifications->addItem(text); notifications->item(notifications->count() -1) ->setForeground(QBrush(QColor(230, 10, 10, 196))); - show_notifications(); + + if (is_critical) + show_notifications(); } -- cgit v1.2.1 From 674385ad22cc49084721c6d18052e83e5ad63cc7 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 15 Sep 2016 20:01:58 +0400 Subject: calling settings dialog from the menu --- pica-client/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pica-client/mainwindow.cpp') diff --git a/pica-client/mainwindow.cpp b/pica-client/mainwindow.cpp index 2081dbc..8f4702f 100644 --- a/pica-client/mainwindow.cpp +++ b/pica-client/mainwindow.cpp @@ -111,6 +111,9 @@ void MainWindow::createMenus() nodesMenu=menuBar()->addMenu(tr("&Nodes")); + settingsMenu = menuBar()->addMenu(tr("&Settings")); + settingsMenu->addAction(action_center->SettingsAct()); + helpMenu=menuBar()->addMenu(tr("&Help")); helpMenu->addAction(action_center->AboutAct()); -- cgit v1.2.1