From cfc0b3c05551a5fb612258a3afe81fbcfca5c645 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Wed, 30 Jan 2019 19:31:25 -0600 Subject: Rename problems to notifications --- src/mainwindow.cpp | 18 +++++++++--------- src/mainwindow.h | 2 +- src/mainwindow.ui | 18 ++++++++++-------- src/problemsdialog.ui | 2 +- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c22bd485..7913391e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -658,9 +658,9 @@ void MainWindow::updateProblemsButton() { size_t numProblems = checkForProblems(); if (numProblems > 0) { - ui->actionProblems->setEnabled(true); - ui->actionProblems->setIconText(tr("Problems")); - ui->actionProblems->setToolTip(tr("There are potential problems with your setup")); + ui->actionNotifications->setEnabled(true); + ui->actionNotifications->setIconText(tr("Notifications")); + ui->actionNotifications->setToolTip(tr("There are notifications to read")); QPixmap mergedIcon = QPixmap(":/MO/gui/warning").scaled(64, 64); { @@ -668,12 +668,12 @@ void MainWindow::updateProblemsButton() std::string badgeName = std::string(":/MO/gui/badge_") + (numProblems < 10 ? std::to_string(static_cast(numProblems)) : "more"); painter.drawPixmap(32, 32, 32, 32, QPixmap(badgeName.c_str())); } - ui->actionProblems->setIcon(QIcon(mergedIcon)); + ui->actionNotifications->setIcon(QIcon(mergedIcon)); } else { - ui->actionProblems->setEnabled(false); - ui->actionProblems->setIconText(tr("No Problems")); - ui->actionProblems->setToolTip(tr("Everything seems to be in order")); - ui->actionProblems->setIcon(QIcon(":/MO/gui/warning")); + ui->actionNotifications->setEnabled(false); + ui->actionNotifications->setIconText(tr("No Notifications")); + ui->actionNotifications->setToolTip(tr("There are no notifications")); + ui->actionNotifications->setIcon(QIcon(":/MO/gui/warning")); } } @@ -5667,7 +5667,7 @@ void MainWindow::on_bsaList_itemChanged(QTreeWidgetItem*, int) m_CheckBSATimer.start(500); } -void MainWindow::on_actionProblems_triggered() +void MainWindow::on_actionNotifications_triggered() { ProblemsDialog problems(m_PluginContainer.plugins(), this); if (problems.hasProblems()) { diff --git a/src/mainwindow.h b/src/mainwindow.h index a8601bee..e919ed2c 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -611,7 +611,7 @@ private slots: // ui slots void on_actionInstallMod_triggered(); void on_actionModify_Executables_triggered(); void on_actionNexus_triggered(); - void on_actionProblems_triggered(); + void on_actionNotifications_triggered(); void on_actionSettings_triggered(); void on_actionUpdate_triggered(); void on_actionEndorseMO_triggered(); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index e30466ac..72cfa21b 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -1106,7 +1106,7 @@ p, li { white-space: pre-wrap; } - + Qt::CustomContextMenu @@ -1478,7 +1478,7 @@ p, li { white-space: pre-wrap; } - + @@ -1603,7 +1603,7 @@ p, li { white-space: pre-wrap; } Mod Organizer is up-to-date - + false @@ -1612,13 +1612,10 @@ p, li { white-space: pre-wrap; } :/MO/gui/warning:/MO/gui/warning - No Problems + No Notifications - This button will be highlighted if MO discovered potential problems in your setup and provide tips on how to fix them. - -!Work in progress! -Right now this has very limited functionality + This button will be highlighted if MO discovered potential problems in your setup and provide tips on how to fix them. @@ -1693,6 +1690,11 @@ Right now this has very limited functionality QTreeView
downloadlistwidget.h
+ + MOBase::SortableTreeWidget + QWidget +
sortabletreewidget.h
+
diff --git a/src/problemsdialog.ui b/src/problemsdialog.ui index 313a3c74..a1712d4a 100644 --- a/src/problemsdialog.ui +++ b/src/problemsdialog.ui @@ -11,7 +11,7 @@ - Problems + Notifications -- cgit v1.3.1