diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbugbuster/gui/cwbugdetailscontainer.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/gui/cwbugdetailscontainer.cpp')
-rw-r--r-- | kbugbuster/gui/cwbugdetailscontainer.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/kbugbuster/gui/cwbugdetailscontainer.cpp b/kbugbuster/gui/cwbugdetailscontainer.cpp index b33ec3b1..7b57ec1b 100644 --- a/kbugbuster/gui/cwbugdetailscontainer.cpp +++ b/kbugbuster/gui/cwbugdetailscontainer.cpp @@ -14,10 +14,10 @@ ************************************************************************* */ -#include <qpushbutton.h> -#include <qwidgetstack.h> -#include <qlayout.h> -#include <qtooltip.h> +#include <tqpushbutton.h> +#include <tqwidgetstack.h> +#include <tqlayout.h> +#include <tqtooltip.h> #include <kiconloader.h> #include <klocale.h> @@ -36,7 +36,7 @@ using namespace KBugBusterMainWindow; -CWBugDetailsContainer::CWBugDetailsContainer( QWidget *parent , const char * name ) +CWBugDetailsContainer::CWBugDetailsContainer( TQWidget *parent , const char * name ) : CWBugDetailsContainer_Base( parent, name ) { // Do some stuff Designer can't do: @@ -61,14 +61,14 @@ CWBugDetailsContainer::CWBugDetailsContainer( QWidget *parent , const char * nam // Fill WidgetStack in Bug Details pane m_bugLoading = new CWLoadingWidget( CWLoadingWidget::BottomFrame, m_bugStack ); - connect( m_bugLoading, SIGNAL( clicked() ), SIGNAL( searchBugNumber() ) ); + connect( m_bugLoading, TQT_SIGNAL( clicked() ), TQT_SIGNAL( searchBugNumber() ) ); m_bugStack->addWidget( m_bugDetails, 0 ); m_bugStack->addWidget( m_bugLoading, 1 ); setNoBug(); - QFont f = m_bugLabel->font(); + TQFont f = m_bugLabel->font(); f.setBold( true ); m_bugLabel->setFont( f ); @@ -76,25 +76,25 @@ CWBugDetailsContainer::CWBugDetailsContainer( QWidget *parent , const char * nam CWBugDetailsContainer_BaseLayout->setSpacing( KDialog::spacingHint() ); CWBugDetailsContainer_BaseLayout->setMargin( KDialog::marginHint() ); - connect( m_bugCloseBtn, SIGNAL( clicked() ), SIGNAL( signalCloseBug() ) ); - connect( m_bugCloseSilentlyBtn, SIGNAL( clicked() ), SIGNAL( signalCloseBugSilently() ) ); - connect( m_bugReopenBtn, SIGNAL( clicked() ), SIGNAL( signalReopenBug() ) ); - connect( m_bugReassignBtn, SIGNAL( clicked() ), SIGNAL( signalReassignBug() ) ); - connect( m_bugTitleBtn, SIGNAL( clicked() ), SIGNAL( signalTitleBug() ) ); - connect( m_bugSeverityBtn, SIGNAL( clicked() ), SIGNAL( signalSeverityBug() ) ); - connect( m_bugReplyBtn, SIGNAL( clicked() ), SIGNAL( signalReplyBug() ) ); - connect( m_bugReplyPrivBtn, SIGNAL( clicked() ), SIGNAL( signalReplyPrivateBug() ) ); - - connect( m_cmdClearBtn, SIGNAL( clicked() ), SIGNAL( signalClearCommand() ) ); - - connect( BugSystem::self(), SIGNAL( bugDetailsLoading( const Bug & ) ), - SLOT( setLoading( const Bug & ) ) ); - connect( BugSystem::self(), SIGNAL( bugDetailsCacheMiss( const Bug & ) ), - SLOT( setCacheMiss( const Bug & ) ) ); - connect( BugSystem::self(), SIGNAL( commandQueued( BugCommand * ) ), - SLOT( commandQueued( BugCommand * ) ) ); - connect( BugSystem::self(), SIGNAL( commandCanceled( const QString & ) ), - SLOT( clearCommand( const QString & ) ) ); + connect( m_bugCloseBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalCloseBug() ) ); + connect( m_bugCloseSilentlyBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalCloseBugSilently() ) ); + connect( m_bugReopenBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalReopenBug() ) ); + connect( m_bugReassignBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalReassignBug() ) ); + connect( m_bugTitleBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalTitleBug() ) ); + connect( m_bugSeverityBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalSeverityBug() ) ); + connect( m_bugReplyBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalReplyBug() ) ); + connect( m_bugReplyPrivBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalReplyPrivateBug() ) ); + + connect( m_cmdClearBtn, TQT_SIGNAL( clicked() ), TQT_SIGNAL( signalClearCommand() ) ); + + connect( BugSystem::self(), TQT_SIGNAL( bugDetailsLoading( const Bug & ) ), + TQT_SLOT( setLoading( const Bug & ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( bugDetailsCacheMiss( const Bug & ) ), + TQT_SLOT( setCacheMiss( const Bug & ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( commandQueued( BugCommand * ) ), + TQT_SLOT( commandQueued( BugCommand * ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( commandCanceled( const TQString & ) ), + TQT_SLOT( clearCommand( const TQString & ) ) ); } CWBugDetailsContainer::~CWBugDetailsContainer() @@ -106,16 +106,16 @@ void CWBugDetailsContainer::setBug( const Bug &bug, const BugDetails &details ) m_bug = bug; m_bugDetails->setBug( bug, details ); - QString labelText; + TQString labelText; if ( bug.mergedWith().size() ) { //FIXME: What should the separator be for lists? Don't see anything in KLocale for that - QString list; + TQString list; Bug::BugMergeList mergedWith = bug.mergedWith(); for (Bug::BugMergeList::ConstIterator i = mergedWith.begin(); i != mergedWith.end(); ++i) { - list += QString::number(*i)+", "; + list += TQString::number(*i)+", "; } list.truncate( list.length()-2 ); //Strip off the last ", " @@ -146,19 +146,19 @@ void CWBugDetailsContainer::setBug( const Bug &bug, const BugDetails &details ) void CWBugDetailsContainer::showCommands( const Bug& bug ) { - QPtrList<BugCommand> commands = BugSystem::self()->server()->queryCommands( bug ); + TQPtrList<BugCommand> commands = BugSystem::self()->server()->queryCommands( bug ); if ( !commands.isEmpty() ) { - QString cmdDetails; - QString cmdText = i18n("Pending commands:")+" "; + TQString cmdDetails; + TQString cmdText = i18n("Pending commands:")+" "; bool first = true; - QPtrListIterator<BugCommand> cmdIt( commands ); + TQPtrListIterator<BugCommand> cmdIt( commands ); for( ; cmdIt.current(); ++cmdIt ) { BugCommand *cmd = cmdIt.current(); if (!first) cmdText += " | "; // separator in case of multiple commands first = false; - cmdText += QString("<b>%1</b>").arg( cmd->name() ); + cmdText += TQString("<b>%1</b>").arg( cmd->name() ); if (!cmdDetails.isEmpty()) cmdDetails += " | "; // separator in case of multiple commands cmdDetails += cmd->details(); @@ -166,9 +166,9 @@ void CWBugDetailsContainer::showCommands( const Bug& bug ) // Set summary as text label, details into tooltip m_cmdLabel->setText( cmdText ); if ( !cmdDetails.isEmpty() ) { - QToolTip::add( m_cmdLabel, cmdDetails ); + TQToolTip::add( m_cmdLabel, cmdDetails ); } else { - QToolTip::remove( m_cmdLabel ); + TQToolTip::remove( m_cmdLabel ); } m_cmdLabel->show(); } else { @@ -181,7 +181,7 @@ void CWBugDetailsContainer::hideCommands() m_cmdLabel->hide(); } -void CWBugDetailsContainer::clearCommand( const QString &bug ) +void CWBugDetailsContainer::clearCommand( const TQString &bug ) { if ( bug == m_bug.number() ) showCommands( m_bug ); @@ -221,7 +221,7 @@ void CWBugDetailsContainer::setCacheMiss( const Bug &bug ) m_bug = bug; showCommands( bug ); - QString msg; + TQString msg; if( BugSystem::self()->disconnected() ) msg = i18n( "Bug #%1 (%2) is not available offline." ). arg( bug.number() ).arg( bug.title() ); |