diff --git a/dist/changes-5.1.0 b/dist/changes-5.1.0
new file mode 100644
index 0000000000000000000000000000000000000000..505b0cc5836b57c8ad6c4ba019187cd8eac58bd4
--- /dev/null
+++ b/dist/changes-5.1.0
@@ -0,0 +1,22 @@
+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.
diff --git a/examples/xmlpatterns/filetree/mainwindow.cpp b/examples/xmlpatterns/filetree/mainwindow.cpp
index cec700674966de6f9c970d88b85121947d807c54..9bf71cd609b14878555b4c911e45e9b68dce4675 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()));
diff --git a/examples/xmlpatterns/filetree/mainwindow.h b/examples/xmlpatterns/filetree/mainwindow.h
index 5b39be5c3f76122841acd2b89d1914cb936fb386..aaaec9a8114cef2f8058be0b9f212f3fff8c478a 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);
diff --git a/src/xmlpatterns/doc/src/qtxmlpatterns-module.qdoc b/src/xmlpatterns/doc/src/qtxmlpatterns-module.qdoc
index db8071029665aacea36a40ec561e77bf35eeea9f..6d9fb187440e3998dba4373b132d35c498ad13ee 100644
--- a/src/xmlpatterns/doc/src/qtxmlpatterns-module.qdoc
+++ b/src/xmlpatterns/doc/src/qtxmlpatterns-module.qdoc
@@ -31,7 +31,6 @@
     XQuery, XSLT and XML Schema validation.
 
     \ingroup modules
-    \ingroup technology-apis
 
 The \l{Qt XML Patterns} module provides support for XPath,
     XQuery, XSLT and XML Schema validation.
diff --git a/sync.profile b/sync.profile
index 068db2bde3ae95bcacabb3d99dcd790f88bb33e7..675c687318185022440e4668d9fcf933bf11c9a9 100644
--- a/sync.profile
+++ b/sync.profile
@@ -8,7 +8,8 @@
 # Each of the module version specifiers can take one of the following values:
 #   - A specific Git revision.
 #   - any git symbolic ref resolvable from the module's repository (e.g. "refs/heads/master" to track master branch)
+#   - an empty string to use the same branch under test (dependencies will become "refs/heads/master" if we are in the master branch)
 #
 %dependencies = (
-    "qtbase" => "refs/heads/dev",
+    "qtbase" => "",
 );