diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-01-30 19:31:25 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-01-30 19:34:36 -0600 |
| commit | cfc0b3c05551a5fb612258a3afe81fbcfca5c645 (patch) | |
| tree | 662477cf8a48ffc3d82b0c333af9f74fa32705c7 /src | |
| parent | d3f1006a51f0eb1e5ded5b96d2877f00b1736bd6 (diff) | |
Rename problems to notifications
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 18 | ||||
| -rw-r--r-- | src/mainwindow.h | 2 | ||||
| -rw-r--r-- | src/mainwindow.ui | 18 | ||||
| -rw-r--r-- | 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<long long>(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<IPluginDiagnose>(), 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; } </layout>
</item>
<item>
- <widget class="MOBase::SortableTreeWidget" name="bsaList">
+ <widget class="MOBase::SortableTreeWidget" name="bsaList" native="true">
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
@@ -1478,7 +1478,7 @@ p, li { white-space: pre-wrap; } <addaction name="actionSettings"/>
<addaction name="separator"/>
<addaction name="actionEndorseMO"/>
- <addaction name="actionProblems"/>
+ <addaction name="actionNotifications"/>
<addaction name="actionUpdate"/>
<addaction name="actionHelp"/>
</widget>
@@ -1603,7 +1603,7 @@ p, li { white-space: pre-wrap; } <string>Mod Organizer is up-to-date</string>
</property>
</action>
- <action name="actionProblems">
+ <action name="actionNotifications">
<property name="enabled">
<bool>false</bool>
</property>
@@ -1612,13 +1612,10 @@ p, li { white-space: pre-wrap; } <normaloff>:/MO/gui/warning</normaloff>:/MO/gui/warning</iconset>
</property>
<property name="text">
- <string>No Problems</string>
+ <string>No Notifications</string>
</property>
<property name="whatsThis">
- <string>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</string>
+ <string>This button will be highlighted if MO discovered potential problems in your setup and provide tips on how to fix them.</string>
</property>
</action>
<action name="actionHelp">
@@ -1693,6 +1690,11 @@ Right now this has very limited functionality</string> <extends>QTreeView</extends>
<header>downloadlistwidget.h</header>
</customwidget>
+ <customwidget>
+ <class>MOBase::SortableTreeWidget</class>
+ <extends>QWidget</extends>
+ <header>sortabletreewidget.h</header>
+ </customwidget>
</customwidgets>
<resources>
<include location="resources.qrc"/>
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 @@ </rect>
</property>
<property name="windowTitle">
- <string>Problems</string>
+ <string>Notifications</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0">
<item>
|
