summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/utils.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-06-18 19:04:06 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-06-18 19:04:06 +0000
commit2c6895207d46f1005afb33668f277237ac5e1238 (patch)
treec4a82f6808550e9aa2990a5c411970bb0136b4a0 /rbutil/rbutilqt/base/utils.cpp
parentae64b59afad9e186340b4cfe27f8fa78157c80b1 (diff)
downloadrockbox-2c6895207d46f1005afb33668f277237ac5e1238.tar.gz
rockbox-2c6895207d46f1005afb33668f277237ac5e1238.tar.bz2
rockbox-2c6895207d46f1005afb33668f277237ac5e1238.zip
Make System and Utils class based on QObject.
Those classes use Qt objects anyway, and making them based on QObject moved the strings into the appropriate class when translating. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26931 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/utils.cpp')
-rw-r--r--rbutil/rbutilqt/base/utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/utils.cpp b/rbutil/rbutilqt/base/utils.cpp
index ce8cb1c5a9..f9efd955f0 100644
--- a/rbutil/rbutilqt/base/utils.cpp
+++ b/rbutil/rbutilqt/base/utils.cpp
@@ -180,7 +180,7 @@ QString Utils::checkEnvironment(bool permission)
#if defined(Q_OS_WIN32)
if(System::userPermissions() != System::ADMIN)
{
- text += QObject::tr("<li>Permissions insufficient for bootloader "
+ text += tr("<li>Permissions insufficient for bootloader "
"installation.\nAdministrator priviledges are necessary.</li>");
}
#endif
@@ -192,14 +192,14 @@ QString Utils::checkEnvironment(bool permission)
if(!installed.isEmpty() && installed !=
SystemInfo::value(SystemInfo::CurConfigureModel).toString())
{
- text += QObject::tr("<li>Target mismatch detected.\n"
+ text += tr("<li>Target mismatch detected.\n"
"Installed target: %1, selected target: %2.</li>")
.arg(installed, SystemInfo::value(SystemInfo::CurPlatformName).toString());
// FIXME: replace installed by human-friendly name
}
if(!text.isEmpty())
- return QObject::tr("Problem detected:") + "<ul>" + text + "</ul>";
+ return tr("Problem detected:") + "<ul>" + text + "</ul>";
else
return text;
}