diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-03-29 16:53:43 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-03-29 16:53:43 -0500 |
commit | 0123a06b97d330ae80ca32748fc25aff911d2322 (patch) | |
tree | a0955cd11596e9df4f407f2aea99b93e8389af1d | |
parent | b40b76cc05cd1bdb22d2613096367bd79574f370 (diff) | |
download | tdelibs-0123a06b97d330ae80ca32748fc25aff911d2322.tar.gz tdelibs-0123a06b97d330ae80ca32748fc25aff911d2322.zip |
Export compilation time data to DrKonqi
-rw-r--r-- | tdeui/kbugreport.cpp | 25 | ||||
-rw-r--r-- | tdeui/kbugreport.h | 5 |
2 files changed, 24 insertions, 6 deletions
diff --git a/tdeui/kbugreport.cpp b/tdeui/kbugreport.cpp index cd87f54da..f275f9e55 100644 --- a/tdeui/kbugreport.cpp +++ b/tdeui/kbugreport.cpp @@ -58,7 +58,7 @@ class KBugReportPrivate { public: KComboBox *appcombo; TQString lastError; - TQString kde_version; + TQString tde_version; TQString appname; TQString os; TQPushButton *submitBugButton; @@ -179,10 +179,11 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const TDEAboutData *abou m_strVersion = m_aboutData->version(); else m_strVersion = i18n("no version set (programmer error!)"); - d->kde_version = TQString::fromLatin1( TDE_VERSION_STRING ); - d->kde_version += ", " + TQString::fromLatin1( KDE_DISTRIBUTION_TEXT ); + d->tde_version = TQString::fromLatin1( TDE_VERSION_STRING ); + if (TQString::fromLatin1( KDE_DISTRIBUTION_TEXT ) != "") + d->tde_version += ", " + TQString::fromLatin1( KDE_DISTRIBUTION_TEXT ); if ( !d->submitBugButton ) - m_strVersion += " " + d->kde_version; + m_strVersion += " " + d->tde_version; m_version = new TQLabel( m_strVersion, parent ); //glay->addWidget( m_version, row, 1 ); glay->addMultiCellWidget( m_version, row, row, 1, 2 ); @@ -287,7 +288,7 @@ void KBugReport::updateURL() url.addQueryItem( "product", "TDE 3.5" ); url.addQueryItem( "op_sys", d->os ); url.addQueryItem( "cf_kde_compiler", KDE_COMPILER_VERSION ); - url.addQueryItem( "cf_kde_version", d->kde_version ); + url.addQueryItem( "cf_tde_version", d->tde_version ); url.addQueryItem( "cf_kde_appversion", m_strVersion ); url.addQueryItem( "cf_kde_package", d->appcombo->currentText() ); url.addQueryItem( "cf_kde_kbugreport", "1" ); @@ -308,7 +309,7 @@ void KBugReport::appChanged(int i) m_strVersion = i18n("unknown program name", "unknown"); if ( !d->submitBugButton ) - m_strVersion += d->kde_version; + m_strVersion += d->tde_version; m_version->setText(m_strVersion); if ( d->submitBugButton ) @@ -540,6 +541,18 @@ bool KBugReport::sendBugReport() return true; } +TQString KBugReport::compilerVersion() { + return KDE_COMPILER_VERSION; +} + +TQString KBugReport::operatingSystem() { + return d->os; +} + +TQString KBugReport::tdeVersion() { + return d->tde_version; +} + void KBugReport::virtual_hook( int id, void* data ) { KDialogBase::virtual_hook( id, data ); } diff --git a/tdeui/kbugreport.h b/tdeui/kbugreport.h index aec61d668..e95c49902 100644 --- a/tdeui/kbugreport.h +++ b/tdeui/kbugreport.h @@ -1,5 +1,6 @@ /* This file is part of the KDE project Copyright (C) 1999 David Faure <faure@kde.org> + Copyright (C) 2014 Timothy Pearson <kb9vqf@pearsoncomputing.net> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -55,6 +56,10 @@ public: */ virtual ~KBugReport(); + TQString compilerVersion(); + TQString operatingSystem(); + TQString tdeVersion(); + protected slots: /** * "Configure email" has been clicked - this calls tdecmshell System/email |