diff --git a/DesParser/DesParser.pro b/DesParser/DesParser.pro index 51c3d2e..b76140b 100644 --- a/DesParser/DesParser.pro +++ b/DesParser/DesParser.pro @@ -3,6 +3,12 @@ QT -= gui CONFIG += c++11 console CONFIG -= app_bundle +CONFIG += exceptions + +msvc{ + QMAKE_CXXFLAGS += /utf-8 + QMAKE_CFLAGS += /utf-8 +} # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 diff --git a/QtNovelDesc.pro.user b/QtNovelDesc.pro.user index 8e6e0f4..dac8779 100644 --- a/QtNovelDesc.pro.user +++ b/QtNovelDesc.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -96,7 +96,7 @@ qt.qt5.51211.win64_msvc2017_64_kit 0 0 - 0 + 2 0 D:\Projects\Cpp\build-QtNovelDesc-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug @@ -294,14 +294,162 @@ 2 - ProjectExplorer.CustomExecutableRunConfiguration - + Qt4ProjectManager.Qt4RunConfiguration:D:/Projects/Cpp/QtNovelDesc/DesParser/DesParser.pro + D:/Projects/Cpp/QtNovelDesc/DesParser/DesParser.pro false true + true false true + D:/Projects/Cpp/build-QtNovelDesc-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug/DesParser - 1 + + dwarf + + cpu-cycles + + + 250 + + -e + cpu-cycles + --call-graph + dwarf,4096 + -F + 250 + + -F + true + 4096 + false + false + 1000 + + true + + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + + 25 + + 1 + true + false + true + + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + Qt4ProjectManager.Qt4RunConfiguration:D:/Projects/Cpp/QtNovelDesc/Testpad/Testpad.pro + D:/Projects/Cpp/QtNovelDesc/Testpad/Testpad.pro + false + true + true + false + true + D:/Projects/Cpp/build-QtNovelDesc-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug/Testpad + + + dwarf + + cpu-cycles + + + 250 + + -e + cpu-cycles + --call-graph + dwarf,4096 + -F + 250 + + -F + true + 4096 + false + false + 1000 + + true + + + false + false + false + false + true + 0.01 + 10 + true + kcachegrind + 1 + + 25 + + 1 + true + false + true + + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + 2 + + Qt4ProjectManager.Qt4RunConfiguration:D:/Projects/Cpp/QtNovelDesc/WordsIDE/WordsIDE.pro + D:/Projects/Cpp/QtNovelDesc/WordsIDE/WordsIDE.pro + false + true + true + false + true + D:/Projects/Cpp/build-QtNovelDesc-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug/WordsIDE + + 3 diff --git a/Testpad/Testpad.pro b/Testpad/Testpad.pro index baf96e3..7b89e3c 100644 --- a/Testpad/Testpad.pro +++ b/Testpad/Testpad.pro @@ -3,11 +3,16 @@ QT += xml CONFIG += c++11 console CONFIG -= app_bundle +CONFIG += exceptions # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 +msvc { + QMAKE_CFLAGS += /utf-8 + QMAKE_CXXFLAGS += /utf-8 +} SOURCES += \ main.cpp \ opstream.cpp diff --git a/Testpad/main.cpp b/Testpad/main.cpp index 9df7911..7f846f8 100644 --- a/Testpad/main.cpp +++ b/Testpad/main.cpp @@ -10,15 +10,11 @@ int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); - - QList list; - list << "a" << "b" << "c" << "d"; - - - qDebug() << Operate::OpStream(list) - .filter([](const QString &it){ return it > QString("b"); }) - .select([](const QString n)->QString{ return n + "xx"; }).toList(); - + try { + throw new std::exception(); + } catch (std::exception *) { + qDebug() << "catched"; + } return a.exec(); } diff --git a/WordsIDE/WordsIDE.pro b/WordsIDE/WordsIDE.pro index d8d4994..b8e12dc 100644 --- a/WordsIDE/WordsIDE.pro +++ b/WordsIDE/WordsIDE.pro @@ -4,11 +4,18 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 TARGET = WordsIDE +CONFIG += exceptions # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 + +msvc { + QMAKE_CFLAGS += /utf-8 + QMAKE_CXXFLAGS += /utf-8 +} + SOURCES += \ ContentPresent.cpp \ DocsManager.cpp \ diff --git a/libParse/libParse.pro b/libParse/libParse.pro index 74d54b3..b606b8a 100644 --- a/libParse/libParse.pro +++ b/libParse/libParse.pro @@ -4,11 +4,17 @@ TEMPLATE = lib DEFINES += LIBPARSE_LIBRARY CONFIG += c++11 +CONFIG += exceptions # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 +msvc{ + QMAKE_CXXFLAGS += /utf-8 + QMAKE_CFLAGS += /utf-8 +} + SOURCES += \ LexFoundation.cpp \ ParseFrame.cpp \