aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/notifier/NotifierMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/notifier/NotifierMessage.cpp')
-rw-r--r--src/modules/notifier/NotifierMessage.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/modules/notifier/NotifierMessage.cpp b/src/modules/notifier/NotifierMessage.cpp
index b0a6e401b..83910e576 100644
--- a/src/modules/notifier/NotifierMessage.cpp
+++ b/src/modules/notifier/NotifierMessage.cpp
@@ -33,17 +33,8 @@
#include <QResizeEvent>
NotifierMessage::NotifierMessage(QPixmap * pPixmap, const QString & szText)
+ : m_szText{szText}, m_pPixmap{pPixmap}
{
- m_pLabel0 = nullptr;
- m_pLabel1 = nullptr;
-
- m_szText = szText;
- m_pPixmap = pPixmap;
-
- //QByteArray utf8 = szText.toUtf8();
- //if(utf8.data())
- // qDebug("NOTIFIER TEXT MESSAGE: \n%s\n",utf8.data());
-
m_pHBox = new QHBoxLayout(this);
m_pHBox->setSpacing(SPACING);
m_pHBox->setMargin(SPACING);
@@ -63,14 +54,14 @@ NotifierMessage::~NotifierMessage()
void NotifierMessage::updateGui()
{
- bool bShowImages = KVI_OPTION_BOOL(KviOption_boolIrcViewShowImages);
-
if(m_pLabel0)
delete m_pLabel0;
if(m_pLabel1)
delete m_pLabel1;
+ bool bShowImages = KVI_OPTION_BOOL(KviOption_boolIrcViewShowImages);
+
if(bShowImages)
{
m_pLabel0 = new QLabel(this);