diff options
author | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-04-12 11:06:17 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-04-12 15:07:34 +0000 |
commit | 75d4660d89b11a31350eddaa21f1889bd576036c (patch) | |
tree | 7df816c59f3c49aa789b4d4484872c7ecac33af7 /tools/qscxmlc/qscxmlc.cpp | |
parent | bf3b9da0270b696617b463ed8bb802d78f748b11 (diff) |
Don't include source file in tests/auto/qscxmlc
Change-Id: I920128e27605487e68c72e2f59e1e53144621816
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Diffstat (limited to 'tools/qscxmlc/qscxmlc.cpp')
-rw-r--r-- | tools/qscxmlc/qscxmlc.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/qscxmlc/qscxmlc.cpp b/tools/qscxmlc/qscxmlc.cpp index fe8e40e..c92db22 100644 --- a/tools/qscxmlc/qscxmlc.cpp +++ b/tools/qscxmlc/qscxmlc.cpp @@ -29,6 +29,7 @@ #include <QtScxml/private/qscxmlparser_p.h> #include <QtScxml/qscxmltabledata.h> #include "scxmlcppdumper.h" +#include "qscxmlc.h" #include <QCoreApplication> #include <QCommandLineParser> @@ -36,6 +37,8 @@ #include <QFileInfo> #include <QTextCodec> +QT_BEGIN_NAMESPACE + enum { NoError = 0, CommandLineArgumentsError = -1, @@ -242,11 +245,4 @@ int run(const QStringList &arguments) return write(&tu); } -int main(int argc, char *argv[]) -{ - QCoreApplication a(argc, argv); - a.setApplicationVersion(QString::fromLatin1("%1 (Qt %2)").arg( - QString::number(Q_QSCXMLC_OUTPUT_REVISION), - QString::fromLatin1(QT_VERSION_STR))); - return run(QCoreApplication::arguments()); -} +QT_END_NAMESPACE |