From a1a7298dd94aed7f7ca460f343e293b74a98b103 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 22 Jan 2016 18:34:34 +0200 Subject: [PATCH] various cleanups Signed-off-by: Ivailo Monev --- src/core/kernel/qcoreapplication.cpp | 21 +----- src/core/kernel/qcoreapplication_p.h | 2 - src/declarative/qml/parser/qdeclarativejs.g | 4 +- .../qml/parser/qdeclarativejsparser.cpp | 2 +- .../qml/parser/qdeclarativejsparser_p.h | 2 +- src/gui/kernel/qapplication.cpp | 3 - src/phonon/Mainpage.dox | 75 ---------------------- 7 files changed, 6 insertions(+), 103 deletions(-) delete mode 100644 src/phonon/Mainpage.dox diff --git a/src/core/kernel/qcoreapplication.cpp b/src/core/kernel/qcoreapplication.cpp index 418954d8e..4054fb846 100644 --- a/src/core/kernel/qcoreapplication.cpp +++ b/src/core/kernel/qcoreapplication.cpp @@ -163,8 +163,6 @@ bool QCoreApplicationPrivate::checkInstance(const char *function) return b; } -Q_GLOBAL_STATIC(QString, qmljs_debug_arguments); - void QCoreApplicationPrivate::processCommandLineArguments() { int j = argc ? 1 : 0; @@ -173,15 +171,7 @@ void QCoreApplicationPrivate::processCommandLineArguments() argv[j++] = argv[i]; continue; } - QByteArray arg = argv[i]; - if (arg.startsWith("-qmljsdebugger=")) { - *qmljs_debug_arguments() = QString::fromLocal8Bit(arg.right(arg.length() - 15)); - } else if (arg == "-qmljsdebugger" && i < argc - 1) { - ++i; - *qmljs_debug_arguments() = QString::fromLocal8Bit(argv[i]); - } else { - argv[j++] = argv[i]; - } + argv[j++] = argv[i]; } if (j < argc) { @@ -462,11 +452,6 @@ void QCoreApplicationPrivate::appendApplicationPathToLibraryPaths() #endif } -QString QCoreApplicationPrivate::qmljsDebugArguments() -{ - return *qmljs_debug_arguments(); -} - QString qAppName() { if (!QCoreApplicationPrivate::checkInstance("qAppName")) @@ -2025,11 +2010,9 @@ QStringList QCoreApplication::arguments() l1arg == "-stylesheet" || l1arg == "-widgetcount") ; - else if (l1arg.startsWith("-style=") || - l1arg.startsWith("-qmljsdebugger=")) + else if (l1arg.startsWith("-style=")) ; else if (l1arg == "-style" || - l1arg == "-qmljsdebugger" || l1arg == "-session" || l1arg == "-graphicssystem" || l1arg == "-testability") diff --git a/src/core/kernel/qcoreapplication_p.h b/src/core/kernel/qcoreapplication_p.h index 99a9b59b2..7b7d7a582 100644 --- a/src/core/kernel/qcoreapplication_p.h +++ b/src/core/kernel/qcoreapplication_p.h @@ -103,8 +103,6 @@ public: void appendApplicationPathToLibraryPaths(void); void processCommandLineArguments(); - static QString qmljsDebugArguments(); // access arguments from other libraries - #ifndef QT_NO_TRANSLATION QTranslatorList translators; #endif diff --git a/src/declarative/qml/parser/qdeclarativejs.g b/src/declarative/qml/parser/qdeclarativejs.g index 57388a095..23242b6fb 100644 --- a/src/declarative/qml/parser/qdeclarativejs.g +++ b/src/declarative/qml/parser/qdeclarativejs.g @@ -188,7 +188,7 @@ // // -// This file is automatically generated from qmljs.g. +// This file is automatically generated from qdeclarativejs.g. // Changes will be lost. // @@ -378,7 +378,7 @@ protected: #include // -// This file is automatically generated from qmljs.g. +// This file is automatically generated from qdeclarativejs.g. // Changes will be lost. // diff --git a/src/declarative/qml/parser/qdeclarativejsparser.cpp b/src/declarative/qml/parser/qdeclarativejsparser.cpp index d52eac1b7..cb63120d5 100644 --- a/src/declarative/qml/parser/qdeclarativejsparser.cpp +++ b/src/declarative/qml/parser/qdeclarativejsparser.cpp @@ -55,7 +55,7 @@ #include // -// This file is automatically generated from qmljs.g. +// This file is automatically generated from qdeclarativejs.g. // Changes will be lost. // diff --git a/src/declarative/qml/parser/qdeclarativejsparser_p.h b/src/declarative/qml/parser/qdeclarativejsparser_p.h index 1ac60bb0b..955d605ce 100644 --- a/src/declarative/qml/parser/qdeclarativejsparser_p.h +++ b/src/declarative/qml/parser/qdeclarativejsparser_p.h @@ -52,7 +52,7 @@ // // -// This file is automatically generated from qmljs.g. +// This file is automatically generated from qdeclarativejs.g. // Changes will be lost. // diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 2345ad553..945512106 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -660,9 +660,6 @@ void QApplicationPrivate::process_cmdline() Qt::RightToLeft \o -graphicssystem, sets the backend to be used for on-screen widgets and QPixmaps. Available options are \c{raster} and \c{opengl}. - \o -qmljsdebugger=, activates the QML/JS debugger with a specified port. - The value must be of format port:1234[,block], where block is optional - and will make the application wait until a debugger connects to it. \endlist The X11 version of Qt supports some traditional X11 command line options: diff --git a/src/phonon/Mainpage.dox b/src/phonon/Mainpage.dox deleted file mode 100644 index a5df2f52f..000000000 --- a/src/phonon/Mainpage.dox +++ /dev/null @@ -1,75 +0,0 @@ -/** @mainpage The Phonon Library API Reference - -

-Overview | -@ref development -

- -Phonon provides a Qt-style interface for audio -and video. It is aimed at the average desktop application, whether that is a game -that needs sound effects or a full-blown multimedia playback application like -Amarok or -Bangarang. - -If you writing a Qt program and want audio or video playback, then Phonon is -almost certainly the right choice for you. It provides an API that any Qt -developer will be comfortable with, and uses the native multimedia frameworks -on Windows and MacOS. On UNIX systems, where there is no one standard -multimedia system, it offers GStreamer -and VLC backends. - -However, Phonon is not aimed at professional audio applications (in the style of -Audacity, say). For these applications, -you will probably want more control over the audio layer than Phonon will give you, -and you should probably be using something like JACK. - -@authors -Matthias Kretz \
-Ricardo Villalba \
-Ian Monroe \
-Colin Guthrie \
-Martin Sandsmark \
-Harald Sitter \
-Nokia Corporation and/or its subsidiary(-ies) - -@maintainers -Harald Sitter \ - -@licenses -Libraries: @lgpl
-Examples: @mit
-Backends: @lgpl or @gpl - -*/ - -/** @page development Development - -

-@ref index "Overview" | -Development -

- -If you want to get involved with Phonon backend development please subscribe to -phonon-backends@kde.org. - -If you want to contribute, make comments or useful suggestions you can also -write to the -KDE Multimedia mailinglist. -You can join the mailinglist using the -webinterface -or take a look at the -archives - -If you want more immediate help, try the \#phonon IRC channel on Freenode. - -*/ - -// DOXYGEN_VERSION=4.7.0 -// DOXYGEN_NAME=Phonon -// DOXYGEN_ENABLE=YES -// DOXYGEN_SET_INPUT = @topdir@/phonon/ -// DOXYGEN_SET_EXCLUDE = @topdir@/phonon/backend/ @topdir@/phonon/experimental/ -// DOXYGEN_SET_FILE_PATTERNS = *.h *.dox -// DOXYGEN_SET_EXCLUDE_PATTERNS = *interface.h *_p.h - -// vim:ts=4:sw=4:expandtab:filetype=doxygen -- 2.11.0