diff options
Diffstat (limited to 'kbugbuster/gui/cwbuglistcontainer.cpp')
-rw-r--r-- | kbugbuster/gui/cwbuglistcontainer.cpp | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/kbugbuster/gui/cwbuglistcontainer.cpp b/kbugbuster/gui/cwbuglistcontainer.cpp index 0188a996..14a601be 100644 --- a/kbugbuster/gui/cwbuglistcontainer.cpp +++ b/kbugbuster/gui/cwbuglistcontainer.cpp @@ -14,10 +14,10 @@ ************************************************************************* */ -#include <qpushbutton.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qwidgetstack.h> +#include <tqpushbutton.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqwidgetstack.h> #include <kapplication.h> #include <kiconloader.h> @@ -41,22 +41,22 @@ using namespace KBugBusterMainWindow; -CWBugListContainer::CWBugListContainer( QWidget *parent , const char * name ) - : QWidget( parent, name ), m_find(0), m_findItem(0) +CWBugListContainer::CWBugListContainer( TQWidget *parent , const char * name ) + : TQWidget( parent, name ), m_find(0), m_findItem(0) { - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); topLayout->setSpacing( KDialog::spacingHint() ); topLayout->setMargin( KDialog::marginHint() ); - m_listLabel = new QLabel( this ); + m_listLabel = new TQLabel( this ); topLayout->addWidget( m_listLabel ); topLayout->setStretchFactor( m_listLabel, 0 ); - QFont f = m_listLabel->font(); + TQFont f = m_listLabel->font(); f.setBold( true ); m_listLabel->setFont( f ); - m_listStack = new QWidgetStack( this ); + m_listStack = new TQWidgetStack( this ); // Create Outstanding Bugs listview m_listBugs = new KListView( m_listStack ); @@ -75,39 +75,39 @@ CWBugListContainer::CWBugListContainer( QWidget *parent , const char * name ) m_listBugs->setColumnAlignment( 0, AlignRight ); m_listBugs->setSorting( 0, false ); m_listBugs->setShowSortIndicator( true ); - m_listBugs->setSelectionMode( QListView::Extended ); // needed for merging bugs + m_listBugs->setSelectionMode( TQListView::Extended ); // needed for merging bugs m_listBugs->restoreLayout( KBBPrefs::instance()->config(), "BugListLayout" ); - connect( m_listBugs, SIGNAL( executed( QListViewItem * ) ), - SLOT( execute( QListViewItem * ) ) ); - connect( m_listBugs, SIGNAL( returnPressed( QListViewItem * ) ), - SLOT( execute( QListViewItem * ) ) ); - connect( m_listBugs, SIGNAL( currentChanged( QListViewItem * ) ), - SLOT( changeCurrent( QListViewItem * ) ) ); + connect( m_listBugs, TQT_SIGNAL( executed( TQListViewItem * ) ), + TQT_SLOT( execute( TQListViewItem * ) ) ); + connect( m_listBugs, TQT_SIGNAL( returnPressed( TQListViewItem * ) ), + TQT_SLOT( execute( TQListViewItem * ) ) ); + connect( m_listBugs, TQT_SIGNAL( currentChanged( TQListViewItem * ) ), + TQT_SLOT( changeCurrent( TQListViewItem * ) ) ); // Fill WidgetStack in Outstanding Bugs pane m_listLoading = new CWLoadingWidget( CWLoadingWidget::TopFrame, m_listStack ); - connect( m_listLoading, SIGNAL( clicked() ), SIGNAL( searchPackage() ) ); + connect( m_listLoading, TQT_SIGNAL( clicked() ), TQT_SIGNAL( searchPackage() ) ); m_listStack->addWidget( m_listBugs, 0 ); m_listStack->addWidget( m_listLoading, 1 ); setNoList(); - connect( BugSystem::self(), SIGNAL( bugListLoading( const Package &, const QString & ) ), - SLOT( setLoading( const Package &, const QString & ) ) ); - connect( BugSystem::self(), SIGNAL( bugListLoading( const QString & ) ), - SLOT( setLoading( const QString & ) ) ); - connect( BugSystem::self(), SIGNAL( bugListCacheMiss( const Package & ) ), - SLOT( setCacheMiss( const Package & ) ) ); - connect( BugSystem::self(), SIGNAL( bugListCacheMiss( const QString & ) ), - SLOT( setCacheMiss( const QString & ) ) ); - connect( BugSystem::self(), SIGNAL( commandQueued( BugCommand * ) ), - SLOT( markBugCommand( BugCommand * ) ) ); - connect( BugSystem::self(), SIGNAL( commandCanceled( const QString & ) ), - SLOT( clearCommand( const QString & ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( bugListLoading( const Package &, const TQString & ) ), + TQT_SLOT( setLoading( const Package &, const TQString & ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( bugListLoading( const TQString & ) ), + TQT_SLOT( setLoading( const TQString & ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( bugListCacheMiss( const Package & ) ), + TQT_SLOT( setCacheMiss( const Package & ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( bugListCacheMiss( const TQString & ) ), + TQT_SLOT( setCacheMiss( const TQString & ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( commandQueued( BugCommand * ) ), + TQT_SLOT( markBugCommand( BugCommand * ) ) ); + connect( BugSystem::self(), TQT_SIGNAL( commandCanceled( const TQString & ) ), + TQT_SLOT( clearCommand( const TQString & ) ) ); } CWBugListContainer::~CWBugListContainer() @@ -117,7 +117,7 @@ CWBugListContainer::~CWBugListContainer() delete m_find; } -void CWBugListContainer::setBugList( const QString &label, const Bug::List &bugs ) +void CWBugListContainer::setBugList( const TQString &label, const Bug::List &bugs ) { // List pane is invisible by default, make visible show(); @@ -147,9 +147,9 @@ void CWBugListContainer::setBugList( const QString &label, const Bug::List &bugs m_listStack->raiseWidget( 0 ); } -void CWBugListContainer::setBugList( const Package &package, const QString &component, const Bug::List &bugs ) +void CWBugListContainer::setBugList( const Package &package, const TQString &component, const Bug::List &bugs ) { - QString listLabel; + TQString listLabel; if ( component.isEmpty() ) { if ( package.components().count() > 1 ) @@ -165,7 +165,7 @@ void CWBugListContainer::setBugList( const Package &package, const QString &comp setBugList( listLabel, bugs ); } -void CWBugListContainer::execute( QListViewItem *lvi ) +void CWBugListContainer::execute( TQListViewItem *lvi ) { BugLVI *item = dynamic_cast<BugLVI *>( lvi ); if( !item ) @@ -179,7 +179,7 @@ void CWBugListContainer::execute( QListViewItem *lvi ) emit executed( item->bug() ); } -void CWBugListContainer::changeCurrent( QListViewItem *lvi ) +void CWBugListContainer::changeCurrent( TQListViewItem *lvi ) { if( !lvi ) { emit currentChanged( Bug() ); @@ -205,7 +205,7 @@ void CWBugListContainer::setNoList() m_listStack->raiseWidget( 1 ); } -void CWBugListContainer::setLoading( const Package &package, const QString &component ) +void CWBugListContainer::setLoading( const Package &package, const TQString &component ) { if ( component.isEmpty() ) setLoading( i18n( "Retrieving List of Outstanding Bugs for Product '%1'..." ).arg( package.name() ) ); @@ -213,7 +213,7 @@ void CWBugListContainer::setLoading( const Package &package, const QString &comp setLoading( i18n( "Retrieving List of Outstanding Bugs for Product '%1' (Component %2)..." ).arg( package.name(), component ) ); } -void CWBugListContainer::setLoading( const QString &label ) +void CWBugListContainer::setLoading( const TQString &label ) { m_listLoading->setText( label ); m_listStack->raiseWidget( 1 ); @@ -224,7 +224,7 @@ void CWBugListContainer::setCacheMiss( const Package &package ) setCacheMiss( i18n( "Package '%1'" ).arg( package.name() ) ); } -void CWBugListContainer::setCacheMiss( const QString &label ) +void CWBugListContainer::setCacheMiss( const TQString &label ) { m_listLoading->setText( i18n( "%1 is not available offline." ).arg( label ) ); m_listStack->raiseWidget( 1 ); @@ -243,7 +243,7 @@ void CWBugListContainer::markBugCommand( BugCommand *cmd ) m_listBugs->triggerUpdate(); } -void CWBugListContainer::clearCommand( const QString &bug ) +void CWBugListContainer::clearCommand( const TQString &bug ) { BugLVI *item = (BugLVI *)m_listBugs->firstChild(); while( item ) { @@ -256,14 +256,14 @@ void CWBugListContainer::clearCommand( const QString &bug ) m_listBugs->triggerUpdate(); } -void CWBugListContainer::searchBugByTitle( int options, const QString& pattern ) +void CWBugListContainer::searchBugByTitle( int options, const TQString& pattern ) { m_find = new KFind( pattern, options, this ); // Connect signals to code which handles highlighting // of found text. - connect(m_find, SIGNAL( highlight( const QString &, int, int ) ), - this, SLOT( searchHighlight( const QString &, int, int ) ) ); - connect(m_find, SIGNAL( findNext() ), this, SLOT( slotFindNext() ) ); + connect(m_find, TQT_SIGNAL( highlight( const TQString &, int, int ) ), + this, TQT_SLOT( searchHighlight( const TQString &, int, int ) ) ); + connect(m_find, TQT_SIGNAL( findNext() ), this, TQT_SLOT( slotFindNext() ) ); m_findItem = (BugLVI *)m_listBugs->firstChild(); if ( options & KFindDialog::FromCursor && m_listBugs->currentItem() ) @@ -302,7 +302,7 @@ void CWBugListContainer::slotFindNext() } } -void CWBugListContainer::searchHighlight( const QString &, int, int ) +void CWBugListContainer::searchHighlight( const TQString &, int, int ) { if ( m_findItem ) { m_listBugs->clearSelection(); @@ -311,9 +311,9 @@ void CWBugListContainer::searchHighlight( const QString &, int, int ) } } -QStringList CWBugListContainer::selectedBugs() const +TQStringList CWBugListContainer::selectedBugs() const { - QStringList lst; + TQStringList lst; BugLVI *item = (BugLVI *)m_listBugs->firstChild(); while( item ) { if ( item->isSelected() ) |