summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns/filetree/mainwindow.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-05-13 12:25:09 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-13 21:41:46 +0200
commit65f32a22318cd60ecafbafd088dfd3e76713ef26 (patch)
tree76621db55612a5cd31304b60490d982a13e1940d /examples/xmlpatterns/filetree/mainwindow.cpp
parent3ca482d01c07ee25213533b31a3ad626c224d95e (diff)
downloadqtxmlpatterns-65f32a22318cd60ecafbafd088dfd3e76713ef26.tar.gz
Fix warnings about signal-slot connection in filetree example.
Task-number: QTBUG-31079 Change-Id: I2696834f70bd0db05c9d70759b81159fabe561fd Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/xmlpatterns/filetree/mainwindow.cpp')
-rw-r--r--examples/xmlpatterns/filetree/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/xmlpatterns/filetree/mainwindow.cpp b/examples/xmlpatterns/filetree/mainwindow.cpp
index cec7006..9bf71cd 100644
--- a/examples/xmlpatterns/filetree/mainwindow.cpp
+++ b/examples/xmlpatterns/filetree/mainwindow.cpp
@@ -81,9 +81,9 @@ MainWindow::MainWindow() : m_fileTree(m_namePool)
//! [0]
//! [2]
-void MainWindow::on_queryBox_currentIndexChanged()
+void MainWindow::on_queryBox_currentIndexChanged(const QString &currentText)
{
- QFile queryFile(":/queries/" + queryBox->currentText());
+ QFile queryFile(":/queries/" + currentText);
queryFile.open(QIODevice::ReadOnly);
queryEdit->setPlainText(QString::fromLatin1(queryFile.readAll()));