diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-13 10:48:14 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-09-13 10:48:14 +0200 |
| commit | e63fabec07872984dec1ed8f2e9661447b686768 (patch) | |
| tree | 2becad06f745a1f704f9606f2399cb500c638c32 /examples/GuiClient/statusTextWidget.cpp | |
| parent | a7337a5f8b5ccad1dd526fbb69b6564087f7bd7f (diff) | |
| download | qxmpp-e63fabec07872984dec1ed8f2e9661447b686768.tar.gz | |
fix compiler warnings
Diffstat (limited to 'examples/GuiClient/statusTextWidget.cpp')
| -rw-r--r-- | examples/GuiClient/statusTextWidget.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/examples/GuiClient/statusTextWidget.cpp b/examples/GuiClient/statusTextWidget.cpp index 783763e9..a0cc7f8a 100644 --- a/examples/GuiClient/statusTextWidget.cpp +++ b/examples/GuiClient/statusTextWidget.cpp @@ -67,9 +67,15 @@ void statusLineEdit::mousePressEvent(QMouseEvent* event) QLineEdit::selectAll(); } -statusTextWidget::statusTextWidget(QWidget* parent) : QWidget(parent), - m_statusLineEdit(0), m_statusButton(0), m_clearStatusTextHistory("Clear Status Message", this) +statusTextWidget::statusTextWidget(QWidget* parent) + : QWidget(parent) + , m_statusLineEdit(0) + , m_statusButton(0) + , m_clearStatusTextHistory("Clear Status Message", this) { + bool check; + Q_UNUSED(check); + m_statusLineEdit = new statusLineEdit(this); QHBoxLayout* layout = new QHBoxLayout; layout->addWidget(m_statusLineEdit); @@ -79,12 +85,15 @@ statusTextWidget::statusTextWidget(QWidget* parent) : QWidget(parent), layout->addWidget(m_statusButton); setLayout(layout); - bool check = connect(m_statusButton, SIGNAL(clicked(bool)), SLOT(showMenu())); + check = connect(m_statusButton, SIGNAL(clicked(bool)), SLOT(showMenu())); Q_ASSERT(check); + check = connect(m_statusLineEdit, SIGNAL(textChanged(QString)), SLOT(textChanged())); Q_ASSERT(check); + check = connect(m_statusLineEdit, SIGNAL(editingFinished()), SLOT(statusTextChanged_helper())); Q_ASSERT(check); + check = connect(&m_clearStatusTextHistory, SIGNAL(triggered()), SLOT(clearStatusTextHistory())); Q_ASSERT(check); } |
