diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-05-13 12:25:09 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-13 21:41:46 +0200 |
commit | 65f32a22318cd60ecafbafd088dfd3e76713ef26 (patch) | |
tree | 76621db55612a5cd31304b60490d982a13e1940d | |
parent | 3ca482d01c07ee25213533b31a3ad626c224d95e (diff) | |
download | qtxmlpatterns-65f32a22318cd60ecafbafd088dfd3e76713ef26.tar.gz qtxmlpatterns-65f32a22318cd60ecafbafd088dfd3e76713ef26.tar.bz2 qtxmlpatterns-65f32a22318cd60ecafbafd088dfd3e76713ef26.zip |
Fix warnings about signal-slot connection in filetree example.
Task-number: QTBUG-31079
Change-Id: I2696834f70bd0db05c9d70759b81159fabe561fd
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
-rw-r--r-- | examples/xmlpatterns/filetree/mainwindow.cpp | 4 | ||||
-rw-r--r-- | examples/xmlpatterns/filetree/mainwindow.h | 2 |
2 files changed, 3 insertions, 3 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 ¤tText) { - QFile queryFile(":/queries/" + queryBox->currentText()); + QFile queryFile(":/queries/" + currentText); queryFile.open(QIODevice::ReadOnly); queryEdit->setPlainText(QString::fromLatin1(queryFile.readAll())); diff --git a/examples/xmlpatterns/filetree/mainwindow.h b/examples/xmlpatterns/filetree/mainwindow.h index 5b39be5..aaaec9a 100644 --- a/examples/xmlpatterns/filetree/mainwindow.h +++ b/examples/xmlpatterns/filetree/mainwindow.h @@ -58,7 +58,7 @@ public: private slots: void on_actionOpenDirectory_triggered(); void on_actionAbout_triggered(); - void on_queryBox_currentIndexChanged(); + void on_queryBox_currentIndexChanged(const QString &); private: void loadDirectory(const QString &directory); |