diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-04-23 08:06:08 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-04-26 13:29:18 (GMT) |
commit | f54179bd263133858289c1a4ff272df0cfb59407 (patch) | |
tree | 19ec8a0656056ee48927beda602d7151334c437a /tools | |
parent | c3be50311d8d343609aa4f108e4e713d367e2907 (diff) | |
download | Qt-f54179bd263133858289c1a4ff272df0cfb59407.zip Qt-f54179bd263133858289c1a4ff272df0cfb59407.tar.gz Qt-f54179bd263133858289c1a4ff272df0cfb59407.tar.bz2 |
Unify naming of settings / UI to be "Qt Qml Runtime"
Reviewed-by: Henrik Hartz
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qml/loggerwidget.cpp | 2 | ||||
-rw-r--r-- | tools/qml/main.cpp | 4 | ||||
-rw-r--r-- | tools/qml/qmlruntime.cpp | 7 |
3 files changed, 7 insertions, 6 deletions
diff --git a/tools/qml/loggerwidget.cpp b/tools/qml/loggerwidget.cpp index 015d1b0..9eca4a6 100644 --- a/tools/qml/loggerwidget.cpp +++ b/tools/qml/loggerwidget.cpp @@ -50,7 +50,7 @@ LoggerWidget::LoggerWidget(QWidget *parent) : m_keepClosed(false) { setAttribute(Qt::WA_QuitOnClose, false); - setWindowTitle(tr("Qt Declarative UI Viewer - Logger")); + setWindowTitle(tr("Logger")); } void LoggerWidget::append(const QString &msg) diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index e484f77..9ccc3d2 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -198,7 +198,7 @@ int main(int argc, char ** argv) #endif QApplication app(argc, argv); - app.setApplicationName("viewer"); + app.setApplicationName("QtQmlRuntime"); app.setOrganizationName("Nokia"); app.setOrganizationDomain("nokia.com"); @@ -281,7 +281,7 @@ int main(int argc, char ** argv) if (lastArg) usage(); app.setStartDragDistance(QString(argv[++i]).toInt()); } else if (arg == QLatin1String("-v") || arg == QLatin1String("-version")) { - qWarning("Qt Declarative UI Viewer version %s", QT_VERSION_STR); + qWarning("Qt Qml Runtime version %s", QT_VERSION_STR); exit(0); } else if (arg == "-translation") { if (lastArg) usage(); diff --git a/tools/qml/qmlruntime.cpp b/tools/qml/qmlruntime.cpp index a715de9..9b9e4fe 100644 --- a/tools/qml/qmlruntime.cpp +++ b/tools/qml/qmlruntime.cpp @@ -341,14 +341,14 @@ private: data.append("\n"); } } - QSettings settings("Nokia", "QtQmlViewer"); + QSettings settings; settings.setValue("Cookies",data); } void load() { QMutexLocker lock(&mutex); - QSettings settings("Nokia", "QtQmlViewer"); + QSettings settings; QByteArray data = settings.value("Cookies").toByteArray(); setAllCookies(QNetworkCookie::parseCookies(data)); } @@ -466,6 +466,7 @@ QDeclarativeViewer::QDeclarativeViewer(QWidget *parent, Qt::WindowFlags flags) , m_scriptOptions(0), tester(0), useQmlFileBrowser(true) { QDeclarativeViewer::registerTypes(); + setWindowTitle(tr("Qt Qml Runtime")); devicemode = false; skin = 0; @@ -946,7 +947,7 @@ bool QDeclarativeViewer::open(const QString& file_or_url) url = QUrl::fromLocalFile(fi.absoluteFilePath()); else url = QUrl(file_or_url); - setWindowTitle(tr("%1 - Qt Declarative UI Viewer").arg(file_or_url)); + setWindowTitle(tr("%1 - Qt Qml Runtime").arg(file_or_url)); if (!m_script.isEmpty()) tester = new QDeclarativeTester(m_script, m_scriptOptions, canvas); |