summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster/gui')
-rw-r--r--kbugbuster/gui/centralwidget.cpp4
-rw-r--r--kbugbuster/gui/cwbuglistcontainer.cpp24
-rw-r--r--kbugbuster/gui/cwbuglistcontainer.h2
-rw-r--r--kbugbuster/gui/kbbmainwindow.cpp4
-rw-r--r--kbugbuster/gui/messageeditor.cpp2
-rw-r--r--kbugbuster/gui/packageselectdialog.cpp2
6 files changed, 19 insertions, 19 deletions
diff --git a/kbugbuster/gui/centralwidget.cpp b/kbugbuster/gui/centralwidget.cpp
index 1813d627..2c715bc1 100644
--- a/kbugbuster/gui/centralwidget.cpp
+++ b/kbugbuster/gui/centralwidget.cpp
@@ -340,11 +340,11 @@ void CentralWidget::slotExtractAttachments()
for ( TQValueList<BugDetails::Attachment>::Iterator it = attachments.begin() ; it != attachments.end() ; ++it )
{
// Handle duplicates
- if ( fileList.tqcontains( (*it).filename ) )
+ if ( fileList.contains( (*it).filename ) )
{
int n = 2; // looks stupid to have "blah" and "1-blah", start at 2
TQString fn = TQString::number(n) + '-' + (*it).filename;
- while ( fileList.tqcontains( fn ) )
+ while ( fileList.contains( fn ) )
{
++n;
fn = TQString::number(n) + '-' + (*it).filename;
diff --git a/kbugbuster/gui/cwbuglistcontainer.cpp b/kbugbuster/gui/cwbuglistcontainer.cpp
index edcc442d..fc496a9b 100644
--- a/kbugbuster/gui/cwbuglistcontainer.cpp
+++ b/kbugbuster/gui/cwbuglistcontainer.cpp
@@ -42,7 +42,7 @@
using namespace KBugBusterMainWindow;
CWBugListContainer::CWBugListContainer( TQWidget *tqparent , const char * name )
- : TQWidget( tqparent, name ), m_tqfind(0), m_findItem(0)
+ : TQWidget( tqparent, name ), m_find(0), m_findItem(0)
{
TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( KDialog::spacingHint() );
@@ -114,7 +114,7 @@ CWBugListContainer::~CWBugListContainer()
{
m_listBugs->saveLayout( KBBPrefs::instance()->config(), "BugListLayout" );
KBBPrefs::instance()->writeConfig();
- delete m_tqfind;
+ delete m_find;
}
void CWBugListContainer::setBugList( const TQString &label, const Bug::List &bugs )
@@ -258,12 +258,12 @@ void CWBugListContainer::clearCommand( const TQString &bug )
void CWBugListContainer::searchBugByTitle( int options, const TQString& pattern )
{
- m_tqfind = new KFind( pattern, options, this );
+ m_find = new KFind( pattern, options, this );
// Connect signals to code which handles highlighting
// of found text.
- connect(m_tqfind, TQT_SIGNAL( highlight( const TQString &, int, int ) ),
+ connect(m_find, TQT_SIGNAL( highlight( const TQString &, int, int ) ),
this, TQT_SLOT( searchHighlight( const TQString &, int, int ) ) );
- connect(m_tqfind, TQT_SIGNAL( findNext() ), this, TQT_SLOT( slotFindNext() ) );
+ connect(m_find, 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_tqfind->needData() )
- m_tqfind->setData( m_findItem->text(2) );
+ if ( m_find->needData() )
+ m_find->setData( m_findItem->text(2) );
// Let KFind inspect the text fragment, and display a dialog if a match is found
- res = m_tqfind->find();
+ res = m_find->find();
if ( res == KFind::NoMatch ) {
- if ( m_tqfind->options() & KFindDialog::FindBackwards )
+ if ( m_find->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_tqfind->shouldRestart() ) {
+ if ( m_find->shouldRestart() ) {
m_findItem = (BugLVI *)m_listBugs->firstChild();
slotFindNext();
} else {
- delete m_tqfind;
- m_tqfind = 0L;
+ delete m_find;
+ m_find = 0L;
}
}
diff --git a/kbugbuster/gui/cwbuglistcontainer.h b/kbugbuster/gui/cwbuglistcontainer.h
index 0144dd57..878b0a2b 100644
--- a/kbugbuster/gui/cwbuglistcontainer.h
+++ b/kbugbuster/gui/cwbuglistcontainer.h
@@ -86,7 +86,7 @@ private:
TQWidgetStack *m_listStack;
KListView *m_listBugs;
- KFind *m_tqfind;
+ KFind *m_find;
BugLVI *m_findItem;
CWLoadingWidget *m_listLoading;
diff --git a/kbugbuster/gui/kbbmainwindow.cpp b/kbugbuster/gui/kbbmainwindow.cpp
index 67b3388c..c351b68e 100644
--- a/kbugbuster/gui/kbbmainwindow.cpp
+++ b/kbugbuster/gui/kbbmainwindow.cpp
@@ -170,11 +170,11 @@ void KBBMainWindow::initActions()
new KAction( i18n("&Search by Product..."), "goto", CTRL+TQt::Key_P, TQT_TQOBJECT(this),
TQT_SLOT( searchPackage() ), actionCollection(), "search_package" );
- new KAction( i18n("Search by Bug &Number..."), "filetqfind", CTRL+TQt::Key_N, TQT_TQOBJECT(this),
+ new KAction( i18n("Search by Bug &Number..."), "filefind", CTRL+TQt::Key_N, TQT_TQOBJECT(this),
TQT_SLOT( searchBugNumber() ), actionCollection(), "search_bugnumber" );
// For now "Description" searches by title. Maybe later we can have a
// full-text search interfacing bugs.kde.org and rename the current one to "By Title".
- new KAction( i18n("Search by &Description...") ,"tqfind", CTRL+TQt::Key_D, TQT_TQOBJECT(this),
+ new KAction( i18n("Search by &Description...") ,"find", CTRL+TQt::Key_D, TQT_TQOBJECT(this),
TQT_SLOT( searchDescription() ), actionCollection(), "search_description" );
// new KAction( i18n("&Merge"), "view_remove", CTRL+TQt::Key_M, TQT_TQOBJECT(m_mainWidget),
diff --git a/kbugbuster/gui/messageeditor.cpp b/kbugbuster/gui/messageeditor.cpp
index 5ef266ff..df9ca4e1 100644
--- a/kbugbuster/gui/messageeditor.cpp
+++ b/kbugbuster/gui/messageeditor.cpp
@@ -105,7 +105,7 @@ void MessageEditor::updateMessage()
void MessageEditor::saveMessage()
{
- mMessageButtons.tqreplace(mCurrentButton,mMessageEdit->text());
+ mMessageButtons.replace(mCurrentButton,mMessageEdit->text());
}
void MessageEditor::slotOk()
diff --git a/kbugbuster/gui/packageselectdialog.cpp b/kbugbuster/gui/packageselectdialog.cpp
index e3481c0b..98cb1ece 100644
--- a/kbugbuster/gui/packageselectdialog.cpp
+++ b/kbugbuster/gui/packageselectdialog.cpp
@@ -169,7 +169,7 @@ void PackageSelectDialog::slotOk()
BugServer *server = BugSystem::self()->server();
TQStringList recent = server->serverConfig().recentPackages();
- if( !recent.tqcontains( recent_key ) ) {
+ if( !recent.contains( recent_key ) ) {
recent.prepend( recent_key );
if ( int( recent.count() ) > KBBPrefs::instance()->mRecentPackagesCount ) {
recent.remove( recent.last() );