summaryrefslogtreecommitdiffstats
path: root/kdat/ErrorHandler.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kdat/ErrorHandler.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdat/ErrorHandler.cpp')
-rw-r--r--kdat/ErrorHandler.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kdat/ErrorHandler.cpp b/kdat/ErrorHandler.cpp
index 7a60295..aee1c58 100644
--- a/kdat/ErrorHandler.cpp
+++ b/kdat/ErrorHandler.cpp
@@ -19,7 +19,7 @@
#include <signal.h>
#include <stdlib.h>
#include <kglobal.h>
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include <klocale.h>
//#include <kstandarddirs.h>
//#include <kapplication.h>
@@ -45,7 +45,7 @@ void error_handler(int err_sig);
void error_handler(int err_sig)
{
- QString base1a, base1b, base2a, base2b, msg1, msg2, msg3;
+ TQString base1a, base1b, base2a, base2b, msg1, msg2, msg3;
int i;
base1a = i18n( " caught.\nExit the program from File->Quit or do "
@@ -64,44 +64,44 @@ void error_handler(int err_sig)
switch (err_sig) {
case SIGHUP:
fprintf(stderr, "kdat: SIGHUP signal (\"Hangup (POSIX)\") caught\n");
- i = QMessageBox::critical( (QWidget *)NULL,
+ i = TQMessageBox::critical( (TQWidget *)NULL,
msg3,
i18n( "SIGHUP signal (\"Hangup (POSIX)\")" ).append( msg1 ),
- QMessageBox::Ignore, QMessageBox::Abort, QMessageBox::NoButton);
- if( i == QMessageBox::Abort ){ abort(); }
+ TQMessageBox::Ignore, TQMessageBox::Abort, TQMessageBox::NoButton);
+ if( i == TQMessageBox::Abort ){ abort(); }
break;
case SIGINT:
fprintf(stderr, "kdat: SIGINT signal (\"Interrupt (ANSI)\") caught\n");
- i = QMessageBox::critical( (QWidget *)NULL,
+ i = TQMessageBox::critical( (TQWidget *)NULL,
msg3,
i18n( "SIGINT signal (\"Interrupt (ANSI)\")" ).append( msg1 ),
- QMessageBox::Ignore, QMessageBox::Abort, QMessageBox::NoButton);
- if( i == QMessageBox::Abort ){ abort(); }
+ TQMessageBox::Ignore, TQMessageBox::Abort, TQMessageBox::NoButton);
+ if( i == TQMessageBox::Abort ){ abort(); }
break;
case SIGFPE:
fprintf(stderr, "kdat: SIGFPE signal (\"Floating-point exception (ANSI)\") caught\n");
- i = QMessageBox::critical( (QWidget *)NULL,
+ i = TQMessageBox::critical( (TQWidget *)NULL,
msg3,
i18n("SIGFPE signal (\"Floating-point exception (ANSI)\")").append (msg2),
- QMessageBox::Ignore, QMessageBox::Abort, QMessageBox::NoButton);
- if( i == QMessageBox::Abort ){ abort(); }
+ TQMessageBox::Ignore, TQMessageBox::Abort, TQMessageBox::NoButton);
+ if( i == TQMessageBox::Abort ){ abort(); }
break;
case SIGSEGV:
fprintf(stderr, "kdat: SIGSEGV signal (\"Segmentation violation (ANSI)\") caught\n");
- i = QMessageBox::critical( (QWidget *)NULL,
+ i = TQMessageBox::critical( (TQWidget *)NULL,
msg3,
i18n( "SIGSEGV signal (\"Segmentation violation (ANSI)\")").append(msg2),
/* button1, button2 */
- QMessageBox::Ignore, QMessageBox::Abort, QMessageBox::NoButton);
- if( i == QMessageBox::Abort ){ abort(); }
+ TQMessageBox::Ignore, TQMessageBox::Abort, TQMessageBox::NoButton);
+ if( i == TQMessageBox::Abort ){ abort(); }
break;
case SIGTERM:
fprintf(stderr, "kdat: SIGTERM signal (\"Termination (ANSI)\") caught\n");
- i = QMessageBox::critical( (QWidget *)NULL,
+ i = TQMessageBox::critical( (TQWidget *)NULL,
msg3,
i18n( "SIGTERM signal (\"Termination (ANSI)\")").append(msg1),
- QMessageBox::Ignore, QMessageBox::Abort, QMessageBox::NoButton);
- if( i == QMessageBox::Abort ){ abort(); }
+ TQMessageBox::Ignore, TQMessageBox::Abort, TQMessageBox::NoButton);
+ if( i == TQMessageBox::Abort ){ abort(); }
break;
}