summaryrefslogtreecommitdiffstats
path: root/src/trayicon.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2018-10-12 16:03:22 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2018-10-12 16:03:22 +0200
commit69512ff6f286371d2846b84a809bbfbc9a7e7289 (patch)
tree91f6c2db783c1731ba8232eeb3a27c3a7f885d3a /src/trayicon.cpp
parent6315d1e9371864f0ed6b3854a4b50561b062befe (diff)
Some cleanup with help of Clang-Tidy and Clazy (part 2 of x)
Diffstat (limited to 'src/trayicon.cpp')
-rw-r--r--src/trayicon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trayicon.cpp b/src/trayicon.cpp
index a9fe5784..99f80def 100644
--- a/src/trayicon.cpp
+++ b/src/trayicon.cpp
@@ -19,7 +19,7 @@ TrayIcon::TrayIcon(QMainWindow *parent)
sysTrayIcon(nullptr), trayIconMenu(nullptr), isAllocated(false) {
parentwin = parent;
- if (QSystemTrayIcon::isSystemTrayAvailable() == true) {
+ if (QSystemTrayIcon::isSystemTrayAvailable()) {
createActions();
createTrayIcon();
@@ -45,7 +45,7 @@ TrayIcon::TrayIcon(QMainWindow *parent)
* @param visible
*/
void TrayIcon::setVisible(bool visible) {
- if (visible == true)
+ if (visible)
parentwin->show();
else
parentwin->hide();
@@ -99,7 +99,7 @@ void TrayIcon::createTrayIcon() {
* @brief TrayIcon::showHideParent toggle app visibility.
*/
void TrayIcon::showHideParent() {
- if (parentwin->isVisible() == true)
+ if (parentwin->isVisible())
parentwin->hide();
else
parentwin->show();