Source

Target

Commits (2)
Showing with 25 additions and 3 deletions
Qt 5.1 introduces many new features and improvements as well as bugfixes
over the 5.0.x series. For more details, refer to the online documentation
included in this distribution. The documentation is also available online:
http://qt-project.org/doc/qt-5.1
The Qt version 5.1 series is binary compatible with the 5.0.x series.
Applications compiled for 5.0 will continue to run with 5.1.
Some of the changes listed in this file include issue tracking numbers
corresponding to tasks in the Qt Bug Tracker:
http://bugreports.qt-project.org/
Each of these identifiers can be entered in the bug tracker to obtain more
information about a particular change.
****************************************************************************
* General *
****************************************************************************
- This release contains only minor code improvements.
......@@ -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()));
......
......@@ -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);
......