summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-02-19 17:02:54 +0100
committerKai Koehne <kai.koehne@digia.com>2013-02-21 12:35:59 +0100
commit9c2b1d2bc29740fa485b52cf21f8839788225ed0 (patch)
treee6270e5f9c6d22b3e8272873319ce7c2ce90003e
parent731b2dd006f5089f9bd22e90568a296984211bad (diff)
Mark <Pages> element as deprecated.
Change-Id: I4c3e4d3903d65d326dd35e16ccdee0c8d2dde31b Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
-rw-r--r--doc/installerfw.qdoc6
-rw-r--r--src/libs/installer/settings.cpp1
-rw-r--r--tests/auto/installer/settings/tst_settings.cpp1
3 files changed, 7 insertions, 1 deletions
diff --git a/doc/installerfw.qdoc b/doc/installerfw.qdoc
index ad139812e..1a7624080 100644
--- a/doc/installerfw.qdoc
+++ b/doc/installerfw.qdoc
@@ -251,7 +251,8 @@
\o Filename for the configuration file on the target. Default is components.xml.
\row
\o Pages
- \o List of pages.
+ \o Custom strings for labels in the installer pages. Deprecated,
+ see \l{Translating Pages} instead.
\endtable
*/
@@ -330,6 +331,9 @@
when using \a qsTr or the class name of the UI file when translating a user
interface.
+ \note The translation system can also be used to customize the UI. Use e.g.
+ an \c en_en.ts file to replace any text in the installer with a custom English
+ version.
*/
/*!
diff --git a/src/libs/installer/settings.cpp b/src/libs/installer/settings.cpp
index 7dcb57e68..a01836253 100644
--- a/src/libs/installer/settings.cpp
+++ b/src/libs/installer/settings.cpp
@@ -243,6 +243,7 @@ Settings Settings::fromFileAndPrefix(const QString &path, const QString &prefix)
s.addDefaultRepositories(readRepositories(reader, true));
if (name == scPages) {
+ qWarning() << "Deprecated element 'Pages'.";
QHash<QString, QVariantHash> pages = readPages(reader);
const QStringList &keys = pages.keys();
foreach (const QString &key, keys)
diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp
index 4029ace67..c1d607074 100644
--- a/tests/auto/installer/settings/tst_settings.cpp
+++ b/tests/auto/installer/settings/tst_settings.cpp
@@ -72,6 +72,7 @@ void tst_Settings::loadTutorialConfig()
void tst_Settings::loadFullConfig()
{
+ QTest::ignoreMessage(QtWarningMsg, "Deprecated element 'Pages'. ");
Settings settings =
Settings::fromFileAndPrefix(":///data/full_config.xml", ":///data");
}