diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-10-05 23:29:41 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-01-14 18:18:19 +0000 |
commit | 6292ecdf6da6c13942dd3f39c9cd164c29c7ab37 (patch) | |
tree | db6618e99a6fb99f42ce0711d4bc2a453c90d94c /src/widgets/util | |
parent | 7d898ae38e42f44dabcc972ad81cb7f05ecd8ad3 (diff) |
QSystemTrayIcon: initialize all members
The 'showArrow' member was not init'ed.
Initialize it to true, which is the default value of the
QBalloonTip::showBalloon() function's argument of the same
purpose.
Reported as new by Coverity, but dating back all the way to
cc3875c2e463be5cf126a18637295a0c56358eda, so affects all
current branches.
Coverity-Id: 171482
Change-Id: Ica519ecda3a4ae413f606faab8c22f7072f412a8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/widgets/util')
-rw-r--r-- | src/widgets/util/qsystemtrayicon.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/util/qsystemtrayicon.cpp b/src/widgets/util/qsystemtrayicon.cpp index 224ffeb6e2..630524aadb 100644 --- a/src/widgets/util/qsystemtrayicon.cpp +++ b/src/widgets/util/qsystemtrayicon.cpp @@ -436,7 +436,10 @@ bool QBalloonTip::isBalloonVisible() QBalloonTip::QBalloonTip(QSystemTrayIcon::MessageIcon icon, const QString& title, const QString& message, QSystemTrayIcon *ti) - : QWidget(0, Qt::ToolTip), trayIcon(ti), timerId(-1) + : QWidget(0, Qt::ToolTip), + trayIcon(ti), + timerId(-1), + showArrow(true) { setAttribute(Qt::WA_DeleteOnClose); QObject::connect(ti, SIGNAL(destroyed()), this, SLOT(close())); |