summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rwxr-xr-xsrc/main.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 77e3444..5a1204d 100755
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -28,8 +28,8 @@
#include "IndentHandler.h"
#include "SettingsPaths.h"
-#include <tqapplication.h>
-#include <tqtextcodec.h>
+#include <tntqapplication.h>
+#include <tntqtextcodec.h>
#include <tqdebug.h>
#include <string>
@@ -129,7 +129,7 @@ using namespace tschweitzer::debugging;
-v --verbose needs a following parameter defining the verbose level as a number from 0 to 3.
*/
int main(int argc, char *argv[]) {
- QString file2OpenOnStart = "";
+ TQString file2OpenOnStart = "";
int verboseLevel = 1;
bool startAsPlugin = false;
bool startAsServer = false;
@@ -143,7 +143,7 @@ int main(int argc, char *argv[]) {
// Filter out -psn_0_118813 and similar parameters.
std::vector<char*> argList;
for ( int i = 0; i < argc; i++ ) {
- QString argString(argv[i]);
+ TQString argString(argv[i]);
if ( argString.startsWith("-psn_") == false ) {
argList.push_back(argv[i]);
@@ -219,15 +219,15 @@ int main(int argc, char *argv[]) {
return returnValue;
}
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
UiGuiIndentServer server;
MainWindow *mainWindow = NULL;
IndentHandler *indentHandler = NULL;
// Init and install the logger function.
- // Setting UTF-8 as default 8-Bit encoding to ensure that qDebug does no false string conversion.
- QTextCodec::setCodecForCStrings( QTextCodec::codecForName("UTF-8") );
- QTextCodec::setCodecForLocale( QTextCodec::codecForName("UTF-8") );
+ // Setting UTF-8 as default 8-Bit encoding to ensure that tqDebug does no false string conversion.
+ TQTextCodec::setCodecForCStrings( TQTextCodec::codecForName("UTF-8") );
+ TQTextCodec::setCodecForLocale( TQTextCodec::codecForName("UTF-8") );
// Force creation of an TSLogger instance here, to avoid recursion with SettingsPaths init function.
#ifdef _DEBUG
TSLogger::getInstance(0);
@@ -235,13 +235,13 @@ int main(int argc, char *argv[]) {
TSLogger::getInstance(verboseLevel);
#endif
qInstallMsgHandler( TSLogger::messageHandler );
- TSLogger::messageHandler( TSLoggerInfoMsg, QString("Starting UiGUI Version %1 %2").arg(PROGRAM_VERSION_STRING).arg(PROGRAM_REVISION).toAscii() );
- TSLogger::messageHandler( TSLoggerInfoMsg, QString("Running on %1").arg(UiGuiSystemInfo::getOperatingSystem()).toAscii() );
+ TSLogger::messageHandler( TSLoggerInfoMsg, TQString("Starting UiGUI Version %1 %2").arg(PROGRAM_VERSION_STRING).arg(PROGRAM_REVISION).toAscii() );
+ TSLogger::messageHandler( TSLoggerInfoMsg, TQString("Running on %1").arg(UiGuiSystemInfo::getOperatingSystem()).toAscii() );
// Set default values for all by UniversalIndentGUI used settings objects.
- QCoreApplication::setOrganizationName("UniversalIndentGUI");
- QCoreApplication::setOrganizationDomain("universalindent.sf.net");
- QCoreApplication::setApplicationName("UniversalIndentGUI");
+ TQCoreApplication::setOrganizationName("UniversalIndentGUI");
+ TQCoreApplication::setOrganizationDomain("universalindent.sf.net");
+ TQCoreApplication::setApplicationName("UniversalIndentGUI");
// Start normal with full gui and without server.
if ( !startAsPlugin && !startAsServer ) {