aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/notifier/NotifierMessage.h
diff options
context:
space:
mode:
authorGravatar IceN9ne2017-10-21 18:10:40 -0400
committerGravatar IceN9ne2017-10-21 18:10:40 -0400
commite9f3c2248ab67e1265667de5ddc6bc59ce235c98 (patch)
tree1f5d9b5954582e6c68f69ae0226e7b969c6549fa /src/modules/notifier/NotifierMessage.h
parentMake the issue/PR templates much simpler. (#2301) (diff)
downloadKVIrc-e9f3c2248ab67e1265667de5ddc6bc59ce235c98.tar.gz
KVIrc-e9f3c2248ab67e1265667de5ddc6bc59ce235c98.tar.bz2
KVIrc-e9f3c2248ab67e1265667de5ddc6bc59ce235c98.zip
notifier module: general code cleanup
Diffstat (limited to 'src/modules/notifier/NotifierMessage.h')
-rw-r--r--src/modules/notifier/NotifierMessage.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/modules/notifier/NotifierMessage.h b/src/modules/notifier/NotifierMessage.h
index c0179f0e1..bdc1e7fb9 100644
--- a/src/modules/notifier/NotifierMessage.h
+++ b/src/modules/notifier/NotifierMessage.h
@@ -44,6 +44,7 @@ class NotifierMessage : public QWidget
{
friend class NotifierWindow;
+ Q_OBJECT
public:
/**
* \brief Constructs the NotifierMessage object
@@ -61,25 +62,25 @@ private:
/// The message text
QString m_szText;
/// The message icon (can be null)
- QPixmap * m_pPixmap;
+ QPixmap * m_pPixmap = nullptr;
/// Layout for the labels
- QHBoxLayout * m_pHBox;
+ QHBoxLayout * m_pHBox = nullptr;
/// Label for the message icon
- QLabel * m_pLabel0;
+ QLabel * m_pLabel0 = nullptr;
/// Label for the message text
- QLabel * m_pLabel1;
+ QLabel * m_pLabel1 = nullptr;
public:
/**
* \brief Returns the original irc message
- * \return QString
+ * \return const QString &
*/
- inline QString text() const { return m_szText; };
+ inline const QString & text() const { return m_szText; }
/**
* \brief Returns the message icon
* \return QPixmap *
*/
- inline QPixmap * pixmap() const { return m_pPixmap; };
+ inline QPixmap * pixmap() const { return m_pPixmap; }
/**
* \brief Updates the aspect of this message
* \return void