summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/cwbuglistcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster/gui/cwbuglistcontainer.cpp')
-rw-r--r--kbugbuster/gui/cwbuglistcontainer.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kbugbuster/gui/cwbuglistcontainer.cpp b/kbugbuster/gui/cwbuglistcontainer.cpp
index 14a601be..edcc442d 100644
--- a/kbugbuster/gui/cwbuglistcontainer.cpp
+++ b/kbugbuster/gui/cwbuglistcontainer.cpp
@@ -41,8 +41,8 @@
using namespace KBugBusterMainWindow;
-CWBugListContainer::CWBugListContainer( TQWidget *parent , const char * name )
- : TQWidget( parent, name ), m_find(0), m_findItem(0)
+CWBugListContainer::CWBugListContainer( TQWidget *tqparent , const char * name )
+ : TQWidget( tqparent, name ), m_tqfind(0), m_findItem(0)
{
TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
@@ -68,7 +68,7 @@ CWBugListContainer::CWBugListContainer( TQWidget *parent , const char * name )
m_listBugs->addColumn( i18n( "Number" ) );
m_listBugs->addColumn( i18n( "Age" ) );
m_listBugs->addColumn( i18n( "Title" ), 500 ); // so that the widthmode isn't "Maximum"
- m_listBugs->addColumn( i18n( "Status" ) );
+ m_listBugs->addColumn( i18n( "tqStatus" ) );
m_listBugs->addColumn( i18n( "Severity" ) );
m_listBugs->addColumn( i18n( "Sender" ), 150 ); // idem. hardcoded widths suck a bit, but...
m_listBugs->setAllColumnsShowFocus( true );
@@ -114,7 +114,7 @@ CWBugListContainer::~CWBugListContainer()
{
m_listBugs->saveLayout( KBBPrefs::instance()->config(), "BugListLayout" );
KBBPrefs::instance()->writeConfig();
- delete m_find;
+ delete m_tqfind;
}
void CWBugListContainer::setBugList( const TQString &label, const Bug::List &bugs )
@@ -143,7 +143,7 @@ void CWBugListContainer::setBugList( const TQString &label, const Bug::List &bug
}
}
- m_listLabel->setText( i18n( "%1 (%2 bugs, %3 wishes)" ).arg( label ).arg( noBugs ).arg( noWishes ) );
+ m_listLabel->setText( i18n( "%1 (%2 bugs, %3 wishes)" ).tqarg( label ).tqarg( noBugs ).tqarg( noWishes ) );
m_listStack->raiseWidget( 0 );
}
@@ -153,13 +153,13 @@ void CWBugListContainer::setBugList( const Package &package, const TQString &com
if ( component.isEmpty() )
{
if ( package.components().count() > 1 )
- listLabel = i18n( "Product '%1', all components" ).arg( package.name() );
+ listLabel = i18n( "Product '%1', all components" ).tqarg( package.name() );
else
- listLabel = i18n( "Product '%1'" ).arg( package.name() );
+ listLabel = i18n( "Product '%1'" ).tqarg( package.name() );
}
else
{
- listLabel = i18n( "Product '%1', component '%2'" ).arg( package.name(), component );
+ listLabel = i18n( "Product '%1', component '%2'" ).tqarg( package.name(), component );
}
setBugList( listLabel, bugs );
@@ -208,9 +208,9 @@ void CWBugListContainer::setNoList()
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() ) );
+ setLoading( i18n( "Retrieving List of Outstanding Bugs for Product '%1'..." ).tqarg( package.name() ) );
else
- setLoading( i18n( "Retrieving List of Outstanding Bugs for Product '%1' (Component %2)..." ).arg( package.name(), component ) );
+ setLoading( i18n( "Retrieving List of Outstanding Bugs for Product '%1' (Component %2)..." ).tqarg( package.name(), component ) );
}
void CWBugListContainer::setLoading( const TQString &label )
@@ -221,12 +221,12 @@ void CWBugListContainer::setLoading( const TQString &label )
void CWBugListContainer::setCacheMiss( const Package &package )
{
- setCacheMiss( i18n( "Package '%1'" ).arg( package.name() ) );
+ setCacheMiss( i18n( "Package '%1'" ).tqarg( package.name() ) );
}
void CWBugListContainer::setCacheMiss( const TQString &label )
{
- m_listLoading->setText( i18n( "%1 is not available offline." ).arg( label ) );
+ m_listLoading->setText( i18n( "%1 is not available offline." ).tqarg( label ) );
m_listStack->raiseWidget( 1 );
}
@@ -258,12 +258,12 @@ void CWBugListContainer::clearCommand( const TQString &bug )
void CWBugListContainer::searchBugByTitle( int options, const TQString& pattern )
{
- m_find = new KFind( pattern, options, this );
+ m_tqfind = new KFind( pattern, options, this );
// Connect signals to code which handles highlighting
// of found text.
- connect(m_find, TQT_SIGNAL( highlight( const TQString &, int, int ) ),
+ connect(m_tqfind, 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() ) );
+ connect(m_tqfind, TQT_SIGNAL( findNext() ), this, TQT_SLOT( slotFindNext() ) );
m_findItem = (BugLVI *)m_listBugs->firstChild();
if ( options & KFindDialog::FromCursor && m_listBugs->currentItem() )
@@ -279,26 +279,26 @@ void CWBugListContainer::slotFindNext()
KFind::Result res = KFind::NoMatch;
while( res == KFind::NoMatch && m_findItem ) {
- if ( m_find->needData() )
- m_find->setData( m_findItem->text(2) );
+ if ( m_tqfind->needData() )
+ m_tqfind->setData( m_findItem->text(2) );
// Let KFind inspect the text fragment, and display a dialog if a match is found
- res = m_find->find();
+ res = m_tqfind->find();
if ( res == KFind::NoMatch ) {
- if ( m_find->options() & KFindDialog::FindBackwards )
+ if ( m_tqfind->options() & KFindDialog::FindBackwards )
m_findItem = (BugLVI *)m_findItem->itemAbove();
else
m_findItem = (BugLVI *)m_findItem->itemBelow();
}
}
if ( res == KFind::NoMatch ) // i.e. at end
- if ( m_find->shouldRestart() ) {
+ if ( m_tqfind->shouldRestart() ) {
m_findItem = (BugLVI *)m_listBugs->firstChild();
slotFindNext();
} else {
- delete m_find;
- m_find = 0L;
+ delete m_tqfind;
+ m_tqfind = 0L;
}
}