diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeui/kbugreport.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kbugreport.cpp')
-rw-r--r-- | kdeui/kbugreport.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kdeui/kbugreport.cpp b/kdeui/kbugreport.cpp index 3d7898861..28b917ed6 100644 --- a/kdeui/kbugreport.cpp +++ b/kdeui/kbugreport.cpp @@ -88,7 +88,7 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD TQWidget * parent = plainPage(); d->submitBugButton = 0; - //if ( m_aboutData->bugAddress() == TQString::fromLatin1("[email protected]") ) + //if ( m_aboutData->bugAddress() == TQString::tqfromLatin1("[email protected]") ) //{ // // This is a core KDE application -> redirect to the web form // Always redirect to the Web form for Trinity @@ -153,9 +153,9 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD TQWhatsThis::add( d->appcombo, qwtstr ); d->appcombo->insertStrList((const char**)packages); connect(d->appcombo, TQT_SIGNAL(activated(int)), TQT_SLOT(appChanged(int))); - d->appname = TQString::fromLatin1( m_aboutData + d->appname = TQString::tqfromLatin1( m_aboutData ? m_aboutData->productName() - : qApp->name() ); + : tqApp->name() ); glay->addWidget( d->appcombo, row, 1 ); int index = 0; for (; index < d->appcombo->count(); index++) { @@ -179,8 +179,8 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD m_strVersion = m_aboutData->version(); else m_strVersion = i18n("no version set (programmer error!)"); - d->kde_version = TQString::fromLatin1( KDE_VERSION_STRING ); - d->kde_version += ", " + TQString::fromLatin1( KDE_DISTRIBUTION_TEXT ); + d->kde_version = TQString::tqfromLatin1( KDE_VERSION_STRING ); + d->kde_version += ", " + TQString::tqfromLatin1( KDE_DISTRIBUTION_TEXT ); if ( !d->submitBugButton ) m_strVersion += " " + d->kde_version; m_version = new TQLabel( m_strVersion, parent ); @@ -193,16 +193,16 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD struct utsname unameBuf; uname( &unameBuf ); - d->os = TQString::fromLatin1( unameBuf.sysname ) + - " (" + TQString::fromLatin1( unameBuf.machine ) + ") " - "release " + TQString::fromLatin1( unameBuf.release ); + d->os = TQString::tqfromLatin1( unameBuf.sysname ) + + " (" + TQString::tqfromLatin1( unameBuf.machine ) + ") " + "release " + TQString::tqfromLatin1( unameBuf.release ); tmpLabel = new TQLabel(d->os, parent); glay->addMultiCellWidget( tmpLabel, row, row, 1, 2 ); tmpLabel = new TQLabel(i18n("Compiler:"), parent); glay->addWidget( tmpLabel, ++row, 0 ); - tmpLabel = new TQLabel(TQString::fromLatin1(KDE_COMPILER_VERSION), parent); + tmpLabel = new TQLabel(TQString::tqfromLatin1(KDE_COMPILER_VERSION), parent); glay->addMultiCellWidget( tmpLabel, row, row, 1, 2 ); if ( !d->submitBugButton ) @@ -251,7 +251,7 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD lay->addSpacing(10); TQString text = i18n("To submit a bug report, click on the button below.\n" - "This will open a web browser window on http://bugs.pearsoncomputing.net where you will find a form to fill in.\n" + "This will open a web browser window on http://bugs.pearsoncomputing.net where you will tqfind a form to fill in.\n" "The information displayed above will be transferred to that server."); TQLabel * label = new TQLabel( text, parent, "label"); lay->addWidget( label ); @@ -259,7 +259,7 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD updateURL(); d->submitBugButton->setText( i18n("&Launch Bug Report Wizard") ); - d->submitBugButton->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); + d->submitBugButton->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); lay->addWidget( d->submitBugButton ); lay->addSpacing(10); @@ -289,7 +289,7 @@ void KBugReport::updateURL() void KBugReport::appChanged(int i) { TQString appName = d->appcombo->text(i); - int index = appName.find( '/' ); + int index = appName.tqfind( '/' ); if ( index > 0 ) appName = appName.left( index ); kdDebug() << "appName " << appName << endl; @@ -311,7 +311,7 @@ void KBugReport::slotConfigureEmail() { if (m_process) return; m_process = new KProcess; - *m_process << TQString::fromLatin1("kcmshell") << TQString::fromLatin1("kcm_useraccount"); + *m_process << TQString::tqfromLatin1("kcmshell") << TQString::tqfromLatin1("kcm_useraccount"); connect(m_process, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(slotSetFrom())); if (!m_process->start()) { @@ -330,24 +330,24 @@ void KBugReport::slotSetFrom() m_configureEmail->setEnabled(true); // ### KDE4: why oh why is KEmailSettings in kio? - KConfig emailConf( TQString::fromLatin1("emaildefaults") ); + KConfig emailConf( TQString::tqfromLatin1("emaildefaults") ); - // find out the default profile - emailConf.setGroup( TQString::fromLatin1("Defaults") ); - TQString profile = TQString::fromLatin1("PROFILE_"); - profile += emailConf.readEntry( TQString::fromLatin1("Profile"), - TQString::fromLatin1("Default") ); + // tqfind out the default profile + emailConf.setGroup( TQString::tqfromLatin1("Defaults") ); + TQString profile = TQString::tqfromLatin1("PROFILE_"); + profile += emailConf.readEntry( TQString::tqfromLatin1("Profile"), + TQString::tqfromLatin1("Default") ); emailConf.setGroup( profile ); - TQString fromaddr = emailConf.readEntry( TQString::fromLatin1("EmailAddress") ); + TQString fromaddr = emailConf.readEntry( TQString::tqfromLatin1("EmailAddress") ); if (fromaddr.isEmpty()) { struct passwd *p; p = getpwuid(getuid()); - fromaddr = TQString::fromLatin1(p->pw_name); + fromaddr = TQString::tqfromLatin1(p->pw_name); } else { - TQString name = emailConf.readEntry( TQString::fromLatin1("FullName")); + TQString name = emailConf.readEntry( TQString::tqfromLatin1("FullName")); if (!name.isEmpty()) - fromaddr = name + TQString::fromLatin1(" <") + fromaddr + TQString::fromLatin1(">"); + fromaddr = name + TQString::tqfromLatin1(" <") + fromaddr + TQString::tqfromLatin1(">"); } m_from->setText( fromaddr ); } @@ -438,9 +438,9 @@ TQString KBugReport::text() const { kdDebug() << m_bgSeverity->selected()->name() << endl; // Prepend the pseudo-headers to the contents of the mail - TQString severity = TQString::fromLatin1(m_bgSeverity->selected()->name()); + TQString severity = TQString::tqfromLatin1(m_bgSeverity->selected()->name()); TQString appname = d->appcombo->currentText(); - TQString os = TQString::fromLatin1("OS: %1 (%2)\n"). + TQString os = TQString::tqfromLatin1("OS: %1 (%2)\n"). arg(KDE_COMPILING_OS). arg(KDE_DISTRIBUTION_TEXT); TQString bodyText; @@ -452,25 +452,25 @@ TQString KBugReport::text() const bodyText += line; } - if (severity == TQString::fromLatin1("i18n") && KGlobal::locale()->language() != KLocale::defaultLanguage()) { + if (severity == TQString::tqfromLatin1("i18n") && KGlobal::locale()->language() != KLocale::defaultLanguage()) { // Case 1 : i18n bug - TQString package = TQString::fromLatin1("i18n_%1").arg(KGlobal::locale()->language()); - package = package.replace(TQString::fromLatin1("_"), TQString::fromLatin1("-")); - return TQString::fromLatin1("Package: %1").arg(package) + - TQString::fromLatin1("\n" + TQString package = TQString::tqfromLatin1("i18n_%1").arg(KGlobal::locale()->language()); + package = package.tqreplace(TQString::tqfromLatin1("_"), TQString::tqfromLatin1("-")); + return TQString::tqfromLatin1("Package: %1").arg(package) + + TQString::tqfromLatin1("\n" "Application: %1\n" // not really i18n's version, so better here IMHO "Version: %2\n").arg(appname).arg(m_strVersion)+ - os+TQString::fromLatin1("\n")+bodyText; + os+TQString::tqfromLatin1("\n")+bodyText; } else { - appname = appname.replace(TQString::fromLatin1("_"), TQString::fromLatin1("-")); + appname = appname.tqreplace(TQString::tqfromLatin1("_"), TQString::tqfromLatin1("-")); // Case 2 : normal bug - return TQString::fromLatin1("Package: %1\n" + return TQString::tqfromLatin1("Package: %1\n" "Version: %2\n" "Severity: %3\n") .arg(appname).arg(m_strVersion).arg(severity)+ - TQString::fromLatin1("Compiler: %1\n").arg(KDE_COMPILER_VERSION)+ - os+TQString::fromLatin1("\n")+bodyText; + TQString::tqfromLatin1("Compiler: %1\n").arg(KDE_COMPILER_VERSION)+ + os+TQString::tqfromLatin1("\n")+bodyText; } } @@ -478,12 +478,12 @@ bool KBugReport::sendBugReport() { TQString recipient ( m_aboutData ? m_aboutData->bugAddress() : - TQString::fromLatin1("[email protected]") ); + TQString::tqfromLatin1("[email protected]") ); TQString command; command = locate("exe", "ksendbugmail"); if (command.isEmpty()) - command = KStandardDirs::findExe( TQString::fromLatin1("ksendbugmail") ); + command = KStandardDirs::findExe( TQString::tqfromLatin1("ksendbugmail") ); KTempFile outputfile; outputfile.close(); |