summaryrefslogtreecommitdiffstats
path: root/amarok/src/amarokcore/crashhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'amarok/src/amarokcore/crashhandler.cpp')
-rw-r--r--amarok/src/amarokcore/crashhandler.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/amarok/src/amarokcore/crashhandler.cpp b/amarok/src/amarokcore/crashhandler.cpp
index 5d5b655e..79dbf00e 100644
--- a/amarok/src/amarokcore/crashhandler.cpp
+++ b/amarok/src/amarokcore/crashhandler.cpp
@@ -20,7 +20,7 @@
#include <tqfile.h>
#include <tqregexp.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqglobal.h> //qVersion()
#include <cstdio> //popen, fread
@@ -120,12 +120,12 @@ namespace Amarok
#endif
- body = body.arg( AmarokConfig::soundSystem() )
- .arg( qVersion() )
- .arg( TAGLIB_MAJOR_VERSION )
- .arg( TAGLIB_MINOR_VERSION )
- .arg( TAGLIB_PATCH_VERSION )
- .arg( cpucount );
+ body = body.tqarg( AmarokConfig::soundSystem() )
+ .tqarg( qVersion() )
+ .tqarg( TAGLIB_MAJOR_VERSION )
+ .tqarg( TAGLIB_MINOR_VERSION )
+ .tqarg( TAGLIB_PATCH_VERSION )
+ .tqarg( cpucount );
#ifdef NDEBUG
body += "NDEBUG: true";
@@ -190,10 +190,10 @@ namespace Amarok
if( totalFrames > 0 ) {
const double validity = double(validFrames) / totalFrames;
- subject += TQString("[validity: %1]").arg( validity, 0, 'f', 2 );
+ subject += TQString("[validity: %1]").tqarg( validity, 0, 'f', 2 );
if( validity <= 0.5 ) useful = false;
}
- subject += TQString("[frames: %1]").arg( totalFrames, 3 /*padding*/ );
+ subject += TQString("[frames: %1]").tqarg( totalFrames, 3 /*padding*/ );
if( bt.find( TQRegExp(" at \\w*\\.cpp:\\d+\n") ) >= 0 )
subject += "[line numbers]";
@@ -201,7 +201,7 @@ namespace Amarok
else
useful = false;
- subject += TQString("[%1]").arg( AmarokConfig::soundSystem().remove( TQRegExp("-?engine") ) );
+ subject += TQString("[%1]").tqarg( AmarokConfig::soundSystem().remove( TQRegExp("-?engine") ) );
std::cout << subject.latin1() << std::endl;
@@ -256,7 +256,7 @@ namespace Amarok
#if 0
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqvbox.h>
#include <kdialog.h>
#include <kpushbutton.h>
@@ -265,10 +265,10 @@ namespace Amarok
Amarok::CrashHandlerWidget::CrashHandlerWidget()
{
- TQBoxLayout *layout = new TQHBoxLayout( this, 18, 12 );
+ TQBoxLayout *tqlayout = new TQHBoxLayout( this, 18, 12 );
{
- TQBoxLayout *lay = new TQVBoxLayout( layout );
+ TQBoxLayout *lay = new TQVBoxLayout( tqlayout );
TQLabel *label = new TQLabel( this );
label->setPixmap( locate( "data", "drkonqi/pics/konqi.png" ) );
label->setFrameStyle( TQFrame::Plain | TQFrame::Box );
@@ -276,9 +276,9 @@ Amarok::CrashHandlerWidget::CrashHandlerWidget()
lay->addItem( new TQSpacerItem( 3, 3, TQSizePolicy::Minimum, TQSizePolicy::Expanding ) );
}
- layout = new TQVBoxLayout( layout, 6 );
+ tqlayout = new TQVBoxLayout( tqlayout, 6 );
- layout->add( new TQLabel( /*i18n*/(
+ tqlayout->add( new TQLabel( /*i18n*/(
"<p>" "Amarok has crashed! We are terribly sorry about this :("
"<p>" "However you now have an opportunity to help us fix this crash so that it doesn't "
"happen again! Click <b>Send Email</b> and Amarok will prepare an email that you "
@@ -286,11 +286,11 @@ Amarok::CrashHandlerWidget::CrashHandlerWidget()
"as soon as possible."
"<p>" "Thanks for choosing Amarok.<br>" ), this ) );
- layout = new TQHBoxLayout( layout, 6 );
+ tqlayout = new TQHBoxLayout( tqlayout, 6 );
- layout->addItem( new TQSpacerItem( 6, 6, TQSizePolicy::Expanding ) );
- layout->add( new KPushButton( KGuiItem( i18n("Send Email"), "mail_send" ), this, "email" ) );
- layout->add( new KPushButton( KStdGuiItem::close(), this, "close" ) );
+ tqlayout->addItem( new TQSpacerItem( 6, 6, TQSizePolicy::Expanding ) );
+ tqlayout->add( new KPushButton( KGuiItem( i18n("Send Email"), "mail_send" ), this, "email" ) );
+ tqlayout->add( new KPushButton( KStdGuiItem::close(), this, "close" ) );
static_cast<TQPushButton*>(child("email"))->setDefault( true );
@@ -298,6 +298,6 @@ Amarok::CrashHandlerWidget::CrashHandlerWidget()
connect( child( "close" ), TQT_SIGNAL(clicked()), TQT_SLOT(reject()) );
setCaption( i18n("Crash Handler") );
- setFixedSize( sizeHint() );
+ setFixedSize( tqsizeHint() );
}
#endif