summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns/filetree/mainwindow.cpp
diff options
context:
space:
mode:
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()));