summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/cwbugdetails.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster/gui/cwbugdetails.cpp')
-rw-r--r--kbugbuster/gui/cwbugdetails.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/kbugbuster/gui/cwbugdetails.cpp b/kbugbuster/gui/cwbugdetails.cpp
index 7aaf16a4..eca64758 100644
--- a/kbugbuster/gui/cwbugdetails.cpp
+++ b/kbugbuster/gui/cwbugdetails.cpp
@@ -14,10 +14,10 @@
*************************************************************************
*/
-#include <qtextview.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qlabel.h>
+#include <tqtextview.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
#include "cwbugdetails.h"
#include "kbbprefs.h"
@@ -30,19 +30,19 @@
#include <kglobal.h>
#include <krun.h>
-#include <qlayout.h>
-#include <qpalette.h>
+#include <tqlayout.h>
+#include <tqpalette.h>
using namespace KBugBusterMainWindow;
-CWBugDetails::CWBugDetails( QWidget *parent , const char * name )
- : QWidget( parent, name )
+CWBugDetails::CWBugDetails( TQWidget *parent , const char * name )
+ : TQWidget( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
m_bugDesc = new KHTMLPart( this, "m_bugDesc" );
- connect( m_bugDesc->browserExtension(), SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
- this, SLOT( handleOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) );
+ connect( m_bugDesc->browserExtension(), TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
+ this, TQT_SLOT( handleOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) );
topLayout->addWidget( m_bugDesc->view() );
}
@@ -53,14 +53,14 @@ CWBugDetails::~CWBugDetails()
void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
{
- QColorGroup cg = m_bugDesc->view()->palette().active();
- QString text =
+ TQColorGroup cg = m_bugDesc->view()->palette().active();
+ TQString text =
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n"
"<html><head><title></title></head>\n"
"<style>";
text.append(
- QString( "table.helpT { text-align: center; font-family: Verdana; font-weight: normal; font-size: 11px; color: #404040; width: 100%; background-color: #fafafa; border: 1px #6699CC solid; border-collapse: collapse; border-spacing: 0px; }\n"
+ TQString( "table.helpT { text-align: center; font-family: Verdana; font-weight: normal; font-size: 11px; color: #404040; width: 100%; background-color: #fafafa; border: 1px #6699CC solid; border-collapse: collapse; border-spacing: 0px; }\n"
"td.helpHed { border-bottom: 2px solid #000000; border-left: 1px solid #000000; background-color: %1; text-align: center; text-indent: 5px; font-family: Verdana; font-weight: bold; font-size: 11px; color: %2; }\n"
"td.helpBod { border-bottom: 1px solid #9CF; border-top: 0px; border-left: 1px solid #9CF; border-right: 0px; text-align: center; text-indent: 10px; font-family: Verdana, sans-serif, Arial; font-weight: normal; font-size: 11px; color: #404040; background-color: #000000; }\n"
"table.sofT { text-align: center; font-family: Verdana; font-weight: normal; font-size: 11px; color: #404040; width: 100%; background-color: #fafafa; border: 1px #000000 solid; border-collapse: collapse; border-spacing: 0px; }\n"
@@ -70,15 +70,15 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
text.append( "<body style=\"margin: 0px\">\n" );
- QString highlightStyle = QString( "background: %1; color: %2; " )
+ TQString highlightStyle = TQString( "background: %1; color: %2; " )
.arg( cg.highlight().name() )
.arg( cg.highlightedText().name() );
- QString borderBottomStyle = QString( "border-bottom: solid %1 1px; " )
+ TQString borderBottomStyle = TQString( "border-bottom: solid %1 1px; " )
.arg( cg.foreground().name() );
- QString borderTopStyle = QString( "border-top: solid %1 1px; " )
+ TQString borderTopStyle = TQString( "border-top: solid %1 1px; " )
.arg( cg.foreground().name() );
- QString submitter = bug.submitter().fullName( true );
+ TQString submitter = bug.submitter().fullName( true );
int age = details.age();
text.append( "<div style=\"" + highlightStyle + "padding: 8px; float: left\">" );
text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url()
@@ -92,7 +92,7 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
i18n( "1 day old", "%n days old", age ) + "</div>\n";
text.append(
- QString( "<div style=\"background: %1; color: %2; " +
+ TQString( "<div style=\"background: %1; color: %2; " +
borderBottomStyle +
"border-bottom: solid %3 1px; "
"padding: 4px\">"
@@ -115,15 +115,15 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
if ( !firstHeader ) text += borderTopStyle;
text.append( borderBottomStyle + "\">" );
- QString sender = (*it).sender.fullName( true );
- QString date = KGlobal::locale()->formatDateTime( (*it).date, false );
+ TQString sender = (*it).sender.fullName( true );
+ TQString date = KGlobal::locale()->formatDateTime( (*it).date, false );
BugDetailsPart::List::ConstIterator it2 = it;
if ( ++it2 == bdp.end() )
text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url()
+ "\">" + i18n("Bug Report</a> from <b>%1</b>")
.arg( sender ) );
else {
- text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url() + QString("#c%1").arg( replies )
+ text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url() + TQString("#c%1").arg( replies )
+ "\">" + i18n("Reply #%1</a> from <b>%2</b>")
.arg( replies ).arg( sender ) );
replies--;
@@ -144,20 +144,20 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
text.append( "</div>\n" );
}
- QValueList<BugDetailsImpl::AttachmentDetails> atts = details.attachmentDetails();
+ TQValueList<BugDetailsImpl::AttachmentDetails> atts = details.attachmentDetails();
if ( atts.count() > 0 ) {
text.append( "<table summary=\"Attachment data table\" class=\"sofT\" cellspacing=\"0\">" );
- text.append( QString( "<tr> <td colspan=\"4\" class=\"helpHed\">%1</td> </tr>")
+ text.append( TQString( "<tr> <td colspan=\"4\" class=\"helpHed\">%1</td> </tr>")
.arg( i18n( "Attachment List") ) );
- text.append( QString("<tr> <td class=\"helpHed\">%1</td> <td class=\"helpHed\">%2</td> <td class=\"helpHed\">%3</td> <td class=\"helpHed\">%4</td> </tr>")
+ text.append( TQString("<tr> <td class=\"helpHed\">%1</td> <td class=\"helpHed\">%2</td> <td class=\"helpHed\">%3</td> <td class=\"helpHed\">%4</td> </tr>")
.arg( i18n("Description") )
.arg( i18n("Date") )
.arg( i18n("View") )
.arg( i18n("Edit") ) );
- QValueList<BugDetailsImpl::AttachmentDetails>::iterator it;
+ TQValueList<BugDetailsImpl::AttachmentDetails>::iterator it;
for ( it = atts.begin() ; it != atts.end() ; ++it ) {
- text.append( QString("<tr><td>%1</td>").arg( (*it).description ) ) ;
- text.append( QString("<td>%1</td>").arg( (*it).date ) );
+ text.append( TQString("<tr><td>%1</td>").arg( (*it).description ) ) ;
+ text.append( TQString("<td>%1</td>").arg( (*it).date ) );
text.append( "<td><a href=\"" +
BugSystem::self()->server()->attachmentViewLink( (*it).id ).url() +
"\">" + i18n("View") + "</a></td>" );
@@ -185,10 +185,10 @@ void CWBugDetails::handleOpenURLRequest( const KURL &url, const KParts::URLArgs
new KRun( url );
}
-QString CWBugDetails::textBugDetailsAttribute( const QString &value,
- const QString &name )
+TQString CWBugDetails::textBugDetailsAttribute( const TQString &value,
+ const TQString &name )
{
- QString text = "";
+ TQString text = "";
if ( !value.isEmpty() ) {
text.append( "<tr><td style=\"width: 20%\"><b>" + name + "</b></td>"
"<td>" + value + "</td></tr>" );
@@ -196,12 +196,12 @@ QString CWBugDetails::textBugDetailsAttribute( const QString &value,
return text;
}
-QString CWBugDetails::source() const
+TQString CWBugDetails::source() const
{
return mSource;
}
-QString CWBugDetails::selectedText() const
+TQString CWBugDetails::selectedText() const
{
return m_bugDesc->selectedText();
}