forked from qt-creator/qt-creator
Cpp{Editor,Tools}: Remove some Qt4-only code
Change-Id: I94ca7b239e974b6b400933466ee2ef5ae4def336 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -27,21 +27,13 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QStringList>
|
||||
#include <QTextDocument>
|
||||
#include <QTextCursor>
|
||||
#include <QTextBlock>
|
||||
#include <QDir>
|
||||
#include <QDebug>
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
// Qt5: QTextDocument needs access to Fonts via QGuiApplication.
|
||||
#include <QGuiApplication>
|
||||
typedef QGuiApplication MyQApplication;
|
||||
#else
|
||||
#include <QCoreApplication>
|
||||
typedef QCoreApplication MyQApplication;
|
||||
#endif
|
||||
#include <QDir>
|
||||
#include <QGuiApplication>
|
||||
#include <QStringList>
|
||||
#include <QTextBlock>
|
||||
#include <QTextCursor>
|
||||
#include <QTextDocument>
|
||||
|
||||
#include <cplusplus/Control.h>
|
||||
#include <cplusplus/Parser.h>
|
||||
@@ -1720,7 +1712,7 @@ void printUsage()
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
MyQApplication app(argc, argv);
|
||||
QGuiApplication app(argc, argv);
|
||||
QStringList args = app.arguments();
|
||||
args.removeFirst();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user