summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/cwbugdetails.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kbugbuster/gui/cwbugdetails.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/gui/cwbugdetails.cpp')
-rw-r--r--kbugbuster/gui/cwbugdetails.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kbugbuster/gui/cwbugdetails.cpp b/kbugbuster/gui/cwbugdetails.cpp
index eca64758..6c6115c1 100644
--- a/kbugbuster/gui/cwbugdetails.cpp
+++ b/kbugbuster/gui/cwbugdetails.cpp
@@ -35,8 +35,8 @@
using namespace KBugBusterMainWindow;
-CWBugDetails::CWBugDetails( TQWidget *parent , const char * name )
- : TQWidget( parent, name )
+CWBugDetails::CWBugDetails( TQWidget *tqparent , const char * name )
+ : TQWidget( tqparent, name )
{
TQBoxLayout *topLayout = new TQVBoxLayout( this );
@@ -53,7 +53,7 @@ CWBugDetails::~CWBugDetails()
void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
{
- TQColorGroup cg = m_bugDesc->view()->palette().active();
+ TQColorGroup cg = m_bugDesc->view()->tqpalette().active();
TQString text =
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n"
"<html><head><title></title></head>\n"
@@ -65,25 +65,25 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
"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"
"</style>\n" )
- .arg( cg.highlight().name() )
- .arg( cg.highlightedText().name() ) );
+ .tqarg( cg.highlight().name() )
+ .tqarg( cg.highlightedText().name() ) );
text.append( "<body style=\"margin: 0px\">\n" );
TQString highlightStyle = TQString( "background: %1; color: %2; " )
- .arg( cg.highlight().name() )
- .arg( cg.highlightedText().name() );
+ .tqarg( cg.highlight().name() )
+ .tqarg( cg.highlightedText().name() );
TQString borderBottomStyle = TQString( "border-bottom: solid %1 1px; " )
- .arg( cg.foreground().name() );
+ .tqarg( cg.foreground().name() );
TQString borderTopStyle = TQString( "border-top: solid %1 1px; " )
- .arg( cg.foreground().name() );
+ .tqarg( cg.foreground().name() );
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()
+ "\">" + i18n("Bug Report</a> from <b>%1</b> " )
- .arg( submitter ) );
+ .tqarg( submitter ) );
int replies = details.parts().count() - 1;
if ( replies >= 1 ) text += i18n( "(1 reply)", "(%n replies)", replies );
text += "</div>";
@@ -97,8 +97,8 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
"border-bottom: solid %3 1px; "
"padding: 4px\">"
"<table cellspacing=\"0\" cellpadding=\"4\" width=\"100%\">" )
- .arg( cg.background().name() )
- .arg( cg.foreground().name() ) );
+ .tqarg( cg.background().name() )
+ .tqarg( cg.foreground().name() ) );
text.append( textBugDetailsAttribute( details.version(), i18n("Version") ) );
text.append( textBugDetailsAttribute( details.source(), i18n("Source") ) );
text.append( textBugDetailsAttribute( details.compiler(), i18n("Compiler") ) );
@@ -121,11 +121,11 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
if ( ++it2 == bdp.end() )
text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url()
+ "\">" + i18n("Bug Report</a> from <b>%1</b>")
- .arg( sender ) );
+ .tqarg( sender ) );
else {
- text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url() + TQString("#c%1").arg( replies )
+ text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url() + TQString("#c%1").tqarg( replies )
+ "\">" + i18n("Reply #%1</a> from <b>%2</b>")
- .arg( replies ).arg( sender ) );
+ .tqarg( replies ).tqarg( sender ) );
replies--;
}
text.append( "</div>\n" );
@@ -148,16 +148,16 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
if ( atts.count() > 0 ) {
text.append( "<table summary=\"Attachment data table\" class=\"sofT\" cellspacing=\"0\">" );
text.append( TQString( "<tr> <td colspan=\"4\" class=\"helpHed\">%1</td> </tr>")
- .arg( i18n( "Attachment List") ) );
+ .tqarg( i18n( "Attachment List") ) );
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") ) );
+ .tqarg( i18n("Description") )
+ .tqarg( i18n("Date") )
+ .tqarg( i18n("View") )
+ .tqarg( i18n("Edit") ) );
TQValueList<BugDetailsImpl::AttachmentDetails>::iterator it;
for ( it = atts.begin() ; it != atts.end() ; ++it ) {
- text.append( TQString("<tr><td>%1</td>").arg( (*it).description ) ) ;
- text.append( TQString("<td>%1</td>").arg( (*it).date ) );
+ text.append( TQString("<tr><td>%1</td>").tqarg( (*it).description ) ) ;
+ text.append( TQString("<td>%1</td>").tqarg( (*it).date ) );
text.append( "<td><a href=\"" +
BugSystem::self()->server()->attachmentViewLink( (*it).id ).url() +
"\">" + i18n("View") + "</a></td>" );