summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui
diff options
context:
space:
mode:
Diffstat (limited to 'kbugbuster/gui')
-rw-r--r--kbugbuster/gui/buglvi.cpp24
-rw-r--r--kbugbuster/gui/buglvi.h6
-rw-r--r--kbugbuster/gui/centralwidget.cpp148
-rw-r--r--kbugbuster/gui/centralwidget.h38
-rw-r--r--kbugbuster/gui/cwbugdetails.cpp66
-rw-r--r--kbugbuster/gui/cwbugdetails.h14
-rw-r--r--kbugbuster/gui/cwbugdetailscontainer.cpp76
-rw-r--r--kbugbuster/gui/cwbugdetailscontainer.h4
-rw-r--r--kbugbuster/gui/cwbuglistcontainer.cpp92
-rw-r--r--kbugbuster/gui/cwbuglistcontainer.h32
-rw-r--r--kbugbuster/gui/cwloadingwidget.cpp74
-rw-r--r--kbugbuster/gui/cwloadingwidget.h32
-rw-r--r--kbugbuster/gui/cwsearchwidget.cpp24
-rw-r--r--kbugbuster/gui/cwsearchwidget.h6
-rw-r--r--kbugbuster/gui/kbbbookmarkmanager.h2
-rw-r--r--kbugbuster/gui/kbbmainwindow.cpp170
-rw-r--r--kbugbuster/gui/kbbmainwindow.h22
-rw-r--r--kbugbuster/gui/loadallbugsdlg.cpp20
-rw-r--r--kbugbuster/gui/loadallbugsdlg.h4
-rw-r--r--kbugbuster/gui/messageeditor.cpp36
-rw-r--r--kbugbuster/gui/messageeditor.h8
-rw-r--r--kbugbuster/gui/msginputdialog.cpp76
-rw-r--r--kbugbuster/gui/msginputdialog.h12
-rw-r--r--kbugbuster/gui/packagelvi.cpp10
-rw-r--r--kbugbuster/gui/packagelvi.h14
-rw-r--r--kbugbuster/gui/packageselectdialog.cpp84
-rw-r--r--kbugbuster/gui/packageselectdialog.h28
-rw-r--r--kbugbuster/gui/preferencesdialog.cpp100
-rw-r--r--kbugbuster/gui/preferencesdialog.h24
-rw-r--r--kbugbuster/gui/serverconfigdialog.cpp36
-rw-r--r--kbugbuster/gui/serverconfigdialog.h10
-rw-r--r--kbugbuster/gui/severityselectdialog.cpp18
-rw-r--r--kbugbuster/gui/severityselectdialog.h6
33 files changed, 658 insertions, 658 deletions
diff --git a/kbugbuster/gui/buglvi.cpp b/kbugbuster/gui/buglvi.cpp
index be629510..18d7c064 100644
--- a/kbugbuster/gui/buglvi.cpp
+++ b/kbugbuster/gui/buglvi.cpp
@@ -1,5 +1,5 @@
/*
- buglvi.cpp - Custom QListViewItem that holds a Bug object
+ buglvi.cpp - Custom TQListViewItem that holds a Bug object
copyright : (c) 2001 by Martijn Klingens
email : klingens@kde.org
@@ -14,8 +14,8 @@
*************************************************************************
*/
-#include <qfont.h>
-#include <qpainter.h>
+#include <tqfont.h>
+#include <tqpainter.h>
#include <kstringhandler.h>
#include <kdebug.h>
@@ -52,9 +52,9 @@ BugLVI::~BugLVI()
{
}
-QString BugLVI::key( int column, bool /* ascending */ ) const
+TQString BugLVI::key( int column, bool /* ascending */ ) const
{
- QString key;
+ TQString key;
if ( column == 0 )
{
@@ -65,11 +65,11 @@ QString BugLVI::key( int column, bool /* ascending */ ) const
if ( m_bug.age() == 0xFFFFFFFF )
key = "0";
else
- key = QString::number( m_bug.age() ).rightJustify( 10, '0' );
+ key = TQString::number( m_bug.age() ).rightJustify( 10, '0' );
}
else if ( column == 4 )
{
- key = QString::number( 10 - m_bug.severity() );
+ key = TQString::number( 10 - m_bug.severity() );
key += m_bug.number().rightJustify( 10, '0' );
}
else
@@ -80,21 +80,21 @@ QString BugLVI::key( int column, bool /* ascending */ ) const
return key;
}
-void BugLVI::paintCell(QPainter* p, const QColorGroup& cg,
+void BugLVI::paintCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align)
{
- QColorGroup newCg = cg;
+ TQColorGroup newCg = cg;
if ( mCommandState == BugCommand::Queued ) {
- QFont font = p->font();
+ TQFont font = p->font();
font.setBold( true );
p->setFont( font );
} else if ( mCommandState == BugCommand::Sent ) {
- QFont font = p->font();
+ TQFont font = p->font();
font.setItalic( true );
p->setFont( font );
} else if ( m_bug.status() == Bug::Closed ) {
// Different color for closed bugs
- newCg.setColor( QColorGroup::Text, cg.color( QColorGroup::Dark ) );
+ newCg.setColor( TQColorGroup::Text, cg.color( TQColorGroup::Dark ) );
}
KListViewItem::paintCell( p, newCg, column, width, align );
diff --git a/kbugbuster/gui/buglvi.h b/kbugbuster/gui/buglvi.h
index ff8fa7f9..5f66f398 100644
--- a/kbugbuster/gui/buglvi.h
+++ b/kbugbuster/gui/buglvi.h
@@ -1,5 +1,5 @@
/*
- buglvi.h - Custom QListViewItem that holds a Bug object
+ buglvi.h - Custom TQListViewItem that holds a Bug object
copyright : (c) 2001 by Martijn Klingens
email : klingens@kde.org
@@ -37,11 +37,11 @@ public:
Bug& bug() { return m_bug; }
void setBug( Bug &bug ) { m_bug = bug; }
- QString key ( int column, bool ascending ) const;
+ TQString key ( int column, bool ascending ) const;
void setCommandState( BugCommand::State state );
- void paintCell(QPainter* p, const QColorGroup& cg,
+ void paintCell(TQPainter* p, const TQColorGroup& cg,
int column, int width, int align);
private:
diff --git a/kbugbuster/gui/centralwidget.cpp b/kbugbuster/gui/centralwidget.cpp
index 80bd0672..f90564f1 100644
--- a/kbugbuster/gui/centralwidget.cpp
+++ b/kbugbuster/gui/centralwidget.cpp
@@ -14,10 +14,10 @@
*************************************************************************
*/
-#include <qsplitter.h>
-#include <qpushbutton.h>
-#include <qwidgetstack.h>
-#include <qlayout.h>
+#include <tqsplitter.h>
+#include <tqpushbutton.h>
+#include <tqwidgetstack.h>
+#include <tqlayout.h>
#include <kdialog.h>
#include <kdebug.h>
@@ -46,20 +46,20 @@
using namespace KBugBusterMainWindow;
-CentralWidget::CentralWidget( const QCString &initialPackage,
- const QCString &initialComponent,
- const QCString &initialBug, QWidget *parent,
+CentralWidget::CentralWidget( const TQCString &initialPackage,
+ const TQCString &initialComponent,
+ const TQCString &initialBug, TQWidget *parent,
const char * name )
- : QWidget( parent, name )
+ : TQWidget( parent, name )
{
// Master layout
- ( new QVBoxLayout( this, 0,
+ ( new TQVBoxLayout( this, 0,
KDialog::spacingHint() ) )->setAutoAdd( true );
- // Create QSplitter children
- m_vertSplitter = new QSplitter( QSplitter::Vertical, this );
+ // Create TQSplitter children
+ m_vertSplitter = new TQSplitter( TQSplitter::Vertical, this );
m_listPane = new CWBugListContainer( m_vertSplitter );
- m_horSplitter = new QSplitter( QSplitter::Horizontal,m_vertSplitter );
+ m_horSplitter = new TQSplitter( TQSplitter::Horizontal,m_vertSplitter );
// The search pane isn't used. Should we remove the code?
m_searchPane = new CWSearchWidget( m_horSplitter );
m_bugPane = new CWBugDetailsContainer( m_horSplitter );
@@ -67,55 +67,55 @@ CentralWidget::CentralWidget( const QCString &initialPackage,
m_searchPane->hide();
// m_listPane->hide();
- m_searchPane->setSizePolicy( QSizePolicy( QSizePolicy::Minimum,
- QSizePolicy::Minimum ) );
- m_horSplitter->setResizeMode( m_searchPane, QSplitter::FollowSizeHint );
+ m_searchPane->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum,
+ TQSizePolicy::Minimum ) );
+ m_horSplitter->setResizeMode( m_searchPane, TQSplitter::FollowSizeHint );
- connect( m_listPane, SIGNAL( resetProgressBar() ),
- SIGNAL( resetProgressBar() ) );
- connect( m_bugPane, SIGNAL( resetProgressBar() ),
- SIGNAL( resetProgressBar() ) );
+ connect( m_listPane, TQT_SIGNAL( resetProgressBar() ),
+ TQT_SIGNAL( resetProgressBar() ) );
+ connect( m_bugPane, TQT_SIGNAL( resetProgressBar() ),
+ TQT_SIGNAL( resetProgressBar() ) );
// Start the proper jobs for loading the package lists
connect( BugSystem::self(),
- SIGNAL( packageListAvailable( const Package::List & ) ),
- SLOT( updatePackageList( const Package::List & ) ) );
+ TQT_SIGNAL( packageListAvailable( const Package::List & ) ),
+ TQT_SLOT( updatePackageList( const Package::List & ) ) );
connect( BugSystem::self(),
- SIGNAL( bugListAvailable( const Package &, const QString &, const Bug::List & ) ),
- SLOT( updateBugList( const Package &, const QString &, const Bug::List & ) ) );
+ TQT_SIGNAL( bugListAvailable( const Package &, const TQString &, const Bug::List & ) ),
+ TQT_SLOT( updateBugList( const Package &, const TQString &, const Bug::List & ) ) );
connect( BugSystem::self(),
- SIGNAL( bugListAvailable( const QString &, const Bug::List & ) ),
- SLOT( updateBugList( const QString &, const Bug::List & ) ) );
+ TQT_SIGNAL( bugListAvailable( const TQString &, const Bug::List & ) ),
+ TQT_SLOT( updateBugList( const TQString &, const Bug::List & ) ) );
connect( BugSystem::self(),
- SIGNAL( bugDetailsAvailable( const Bug &, const BugDetails & ) ),
- SLOT( updateBugDetails( const Bug &, const BugDetails & ) ) );
+ TQT_SIGNAL( bugDetailsAvailable( const Bug &, const BugDetails & ) ),
+ TQT_SLOT( updateBugDetails( const Bug &, const BugDetails & ) ) );
- connect( BugSystem::self(), SIGNAL( loadingError( const QString & ) ),
- SLOT( showLoadingError( const QString & ) ) );
+ connect( BugSystem::self(), TQT_SIGNAL( loadingError( const TQString & ) ),
+ TQT_SLOT( showLoadingError( const TQString & ) ) );
- connect( m_bugPane, SIGNAL( signalCloseBug() ), SLOT( closeBug() ) );
- connect( m_bugPane, SIGNAL( signalCloseBugSilently() ), SLOT( closeBugSilently() ) );
- connect( m_bugPane, SIGNAL( signalReopenBug() ), SLOT( reopenBug() ) );
- connect( m_bugPane, SIGNAL( signalReassignBug() ), SLOT( reassignBug() ) );
- connect( m_bugPane, SIGNAL( signalTitleBug() ), SLOT( titleBug() ) );
- connect( m_bugPane, SIGNAL( signalSeverityBug() ), SLOT( severityBug() ) );
- connect( m_bugPane, SIGNAL( signalReplyBug() ), SLOT( replyBug() ) );
- connect( m_bugPane, SIGNAL( signalReplyPrivateBug() ), SLOT( replyPrivateBug() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalCloseBug() ), TQT_SLOT( closeBug() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalCloseBugSilently() ), TQT_SLOT( closeBugSilently() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalReopenBug() ), TQT_SLOT( reopenBug() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalReassignBug() ), TQT_SLOT( reassignBug() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalTitleBug() ), TQT_SLOT( titleBug() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalSeverityBug() ), TQT_SLOT( severityBug() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalReplyBug() ), TQT_SLOT( replyBug() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalReplyPrivateBug() ), TQT_SLOT( replyPrivateBug() ) );
- connect( m_bugPane, SIGNAL( signalClearCommand() ), SLOT( clearCommand() ) );
+ connect( m_bugPane, TQT_SIGNAL( signalClearCommand() ), TQT_SLOT( clearCommand() ) );
// Add the selection slots for the listviews
connect( m_searchPane->m_searchPackages,
- SIGNAL( activated( const QString & ) ),
- SLOT( slotRetrieveBugList( const QString & ) ) );
+ TQT_SIGNAL( activated( const TQString & ) ),
+ TQT_SLOT( slotRetrieveBugList( const TQString & ) ) );
- connect( m_listPane, SIGNAL( executed( const Bug & ) ),
- SLOT( slotRetrieveBugDetails( const Bug & ) ) );
- connect( m_listPane, SIGNAL( currentChanged( const Bug & ) ),
- SLOT( slotSetActiveBug( const Bug & ) ) );
+ connect( m_listPane, TQT_SIGNAL( executed( const Bug & ) ),
+ TQT_SLOT( slotRetrieveBugDetails( const Bug & ) ) );
+ connect( m_listPane, TQT_SIGNAL( currentChanged( const Bug & ) ),
+ TQT_SLOT( slotSetActiveBug( const Bug & ) ) );
- connect( m_listPane, SIGNAL( searchPackage() ), SIGNAL( searchPackage() ) );
- connect( m_bugPane, SIGNAL( searchBugNumber() ), SIGNAL( searchBugNumber() ) );
+ connect( m_listPane, TQT_SIGNAL( searchPackage() ), TQT_SIGNAL( searchPackage() ) );
+ connect( m_bugPane, TQT_SIGNAL( searchBugNumber() ), TQT_SIGNAL( searchBugNumber() ) );
m_bLoadingAllBugs = false;
@@ -127,15 +127,15 @@ CentralWidget::~CentralWidget()
// kdDebug() << "CentralWidget::~CentralWidget()" << endl;
}
-void CentralWidget::initialize( const QString& p, const QString &c, const QString& b )
+void CentralWidget::initialize( const TQString& p, const TQString &c, const TQString& b )
{
// kdDebug() << "CentralWidget::initialize(): package: '" << p
// << "' bug: '" << b << "'" << endl;
BugServerConfig cfg = BugSystem::self()->server()->serverConfig();
- QString package = p.isEmpty() ? cfg.currentPackage() : p;
- QString bug = b.isEmpty() ? cfg.currentBug() : b;
- QString component = c.isEmpty() ? cfg.currentComponent() : c;
+ TQString package = p.isEmpty() ? cfg.currentPackage() : p;
+ TQString bug = b.isEmpty() ? cfg.currentBug() : b;
+ TQString component = c.isEmpty() ? cfg.currentComponent() : c;
m_listPane->setNoList();
m_bugPane->setNoBug();
@@ -170,8 +170,8 @@ void CentralWidget::writeConfig()
{
#if 0
kdDebug() << "m_vertSplitter" << endl;
- QValueList<int> sizes = m_vertSplitter->sizes();
- QValueList<int>::ConstIterator it;
+ TQValueList<int> sizes = m_vertSplitter->sizes();
+ TQValueList<int>::ConstIterator it;
for( it = sizes.begin(); it != sizes.end(); ++it ) {
kdDebug() << " " << (*it) << endl;
}
@@ -186,12 +186,12 @@ void CentralWidget::writeConfig()
server->serverConfig().setCurrentBug( m_currentBug.number() );
}
-void CentralWidget::slotRetrieveBugList( const QString &package )
+void CentralWidget::slotRetrieveBugList( const TQString &package )
{
- slotRetrieveBugList( package, QString::null );
+ slotRetrieveBugList( package, TQString::null );
}
-void CentralWidget::slotRetrieveBugList( const QString &p, const QString &component )
+void CentralWidget::slotRetrieveBugList( const TQString &p, const TQString &component )
{
if ( p.isEmpty() ) return;
@@ -212,7 +212,7 @@ void CentralWidget::slotRetrieveBugList( const QString &p, const QString &compon
BugSystem::self()->retrieveBugList( m_currentPackage, m_currentComponent );
}
-QString CentralWidget::currentNumber() const
+TQString CentralWidget::currentNumber() const
{
if( m_currentBug.isNull() )
return "";
@@ -220,7 +220,7 @@ QString CentralWidget::currentNumber() const
return m_currentBug.number();
}
-QString CentralWidget::currentTitle() const
+TQString CentralWidget::currentTitle() const
{
if( m_currentBug.isNull() )
return "";
@@ -278,12 +278,12 @@ void CentralWidget::updatePackageList( const Package::List &pkgs )
*/
}
-void CentralWidget::updateBugList( const Package &pkg, const QString &component, const Bug::List &bugs )
+void CentralWidget::updateBugList( const Package &pkg, const TQString &component, const Bug::List &bugs )
{
m_listPane->setBugList( pkg, component, bugs );
}
-void CentralWidget::updateBugList( const QString &label, const Bug::List &bugs )
+void CentralWidget::updateBugList( const TQString &label, const Bug::List &bugs )
{
m_listPane->setBugList( label, bugs );
}
@@ -333,21 +333,21 @@ void CentralWidget::slotExtractAttachments()
if (!m_currentBug.isNull()) {
// Grab bug details (i.e. full-text) from cache, then extract attachments from it
BugDetails details = BugSystem::self()->cache()->loadBugDetails( m_currentBug );
- QValueList<BugDetails::Attachment> attachments = details.extractAttachments();
+ TQValueList<BugDetails::Attachment> attachments = details.extractAttachments();
if ( !attachments.isEmpty() )
{
- QStringList fileList;
- for ( QValueList<BugDetails::Attachment>::Iterator it = attachments.begin() ; it != attachments.end() ; ++it )
+ TQStringList fileList;
+ for ( TQValueList<BugDetails::Attachment>::Iterator it = attachments.begin() ; it != attachments.end() ; ++it )
{
// Handle duplicates
if ( fileList.contains( (*it).filename ) )
{
int n = 2; // looks stupid to have "blah" and "1-blah", start at 2
- QString fn = QString::number(n) + '-' + (*it).filename;
+ TQString fn = TQString::number(n) + '-' + (*it).filename;
while ( fileList.contains( fn ) )
{
++n;
- fn = QString::number(n) + '-' + (*it).filename;
+ fn = TQString::number(n) + '-' + (*it).filename;
}
(*it).filename = fn;
}
@@ -356,18 +356,18 @@ void CentralWidget::slotExtractAttachments()
int res = KMessageBox::questionYesNoList( this,
i18n("Found the following attachments. Save?"),
- fileList, QString::null, KStdGuiItem::save(), KStdGuiItem::dontSave() );
+ fileList, TQString::null, KStdGuiItem::save(), KStdGuiItem::dontSave() );
if ( res == KMessageBox::No )
return;
- QString dir = KFileDialog::getExistingDirectory( QString::null, this, i18n("Select Folder Where to Save Attachments") );
+ TQString dir = KFileDialog::getExistingDirectory( TQString::null, this, i18n("Select Folder Where to Save Attachments") );
if ( !dir.isEmpty() )
{
if ( !dir.endsWith( "/" ) )
dir += '/';
- for ( QValueList<BugDetails::Attachment>::Iterator it = attachments.begin() ; it != attachments.end() ; ++it )
+ for ( TQValueList<BugDetails::Attachment>::Iterator it = attachments.begin() ; it != attachments.end() ; ++it )
{
- QString filename = m_currentBug.number() + '-' + (*it).filename;
- QFile file( dir + filename );
+ TQString filename = m_currentBug.number() + '-' + (*it).filename;
+ TQFile file( dir + filename );
if ( file.open( IO_WriteOnly ) )
file.writeBlock( (*it).contents );
else
@@ -381,7 +381,7 @@ void CentralWidget::slotExtractAttachments()
void CentralWidget::mergeBugs()
{
- QStringList bugNumbers = m_listPane->selectedBugs();
+ TQStringList bugNumbers = m_listPane->selectedBugs();
if ( bugNumbers.count() >= 2 ) {
BugSystem::self()->queueCommand(
new BugCommandMerge( bugNumbers, m_currentPackage ) );
@@ -436,7 +436,7 @@ void CentralWidget::reassignBug()
void CentralWidget::titleBug()
{
bool ok = false;
- QString title = KInputDialog::getText( i18n("Change Bug Title"),
+ TQString title = KInputDialog::getText( i18n("Change Bug Title"),
i18n( "Please enter a new title:" ),
m_currentBug.title(), &ok, this );
if ( ok && !title.isEmpty() ) {
@@ -450,7 +450,7 @@ void CentralWidget::severityBug()
SeveritySelectDialog *dlg = new SeveritySelectDialog( this );
dlg->setSeverity( m_currentBug.severity() );
int result = dlg->exec();
- if ( result == QDialog::Accepted ) {
+ if ( result == TQDialog::Accepted ) {
BugSystem::self()->queueCommand(
new BugCommandSeverity( m_currentBug,
dlg->selectedSeverityAsString(), m_currentPackage ) );
@@ -478,7 +478,7 @@ void CentralWidget::clearCommand()
BugSystem::self()->clearCommands( m_currentBug.number() );
}
-void CentralWidget::searchBugByTitle( int options, const QString& pattern )
+void CentralWidget::searchBugByTitle( int options, const TQString& pattern )
{
m_listPane->searchBugByTitle( options, pattern );
}
@@ -492,7 +492,7 @@ void CentralWidget::slotRetrieveAllBugDetails()
m_bLoadingAllBugs = false;
}
-void CentralWidget::showLoadingError( const QString &text )
+void CentralWidget::showLoadingError( const TQString &text )
{
KMessageBox::error( this, text );
}
diff --git a/kbugbuster/gui/centralwidget.h b/kbugbuster/gui/centralwidget.h
index 85b97eca..30b40f61 100644
--- a/kbugbuster/gui/centralwidget.h
+++ b/kbugbuster/gui/centralwidget.h
@@ -17,7 +17,7 @@
#ifndef KBBMAINWINDOW_CENTRALWIDGET_H
#define KBBMAINWINDOW_CENTRALWIDGET_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include "package.h"
#include "bug.h"
@@ -42,37 +42,37 @@ class CentralWidget : public QWidget
Q_OBJECT
public:
- CentralWidget( const QCString &initialPackage,
- const QCString &initalComponent,const QCString& initialBug,
- QWidget* parent = 0, const char* name = 0 );
+ CentralWidget( const TQCString &initialPackage,
+ const TQCString &initalComponent,const TQCString& initialBug,
+ TQWidget* parent = 0, const char* name = 0 );
~CentralWidget();
- void initialize( const QString &initialPackage = QString::null,
- const QString &initalComponent = QString::null,
- const QString &initialBug = QString::null );
+ void initialize( const TQString &initialPackage = TQString::null,
+ const TQString &initalComponent = TQString::null,
+ const TQString &initialBug = TQString::null );
void readConfig();
void writeConfig();
- void searchBugByTitle( int options, const QString& pattern );
+ void searchBugByTitle( int options, const TQString& pattern );
- virtual QString currentNumber() const;
- virtual QString currentTitle() const;
+ virtual TQString currentNumber() const;
+ virtual TQString currentTitle() const;
void updatePackage();
CWBugDetails *bugDetailsWidget();
public slots:
- void slotRetrieveBugList( const QString &package, const QString &component );
- void slotRetrieveBugList( const QString &package );
+ void slotRetrieveBugList( const TQString &package, const TQString &component );
+ void slotRetrieveBugList( const TQString &package );
void slotRetrieveBugDetails( const Bug & );
void slotSetActiveBug( const Bug & );
void slotRetrieveAllBugDetails();
void updatePackageList( const Package::List &pkgs );
- void updateBugList( const Package &pkg, const QString &component, const Bug::List &bugs );
- void updateBugList( const QString &label, const Bug::List &bugs );
+ void updateBugList( const Package &pkg, const TQString &component, const Bug::List &bugs );
+ void updateBugList( const TQString &label, const Bug::List &bugs );
void updateBugDetails( const Bug &, const BugDetails & );
void slotReloadPackageList();
@@ -105,24 +105,24 @@ signals:
void searchBugNumber(); // when clicking on the initial bug-details widget
protected slots:
- void showLoadingError( const QString & );
+ void showLoadingError( const TQString & );
private:
CWSearchWidget *m_searchPane;
CWBugListContainer *m_listPane;
CWBugDetailsContainer *m_bugPane;
- QSplitter *m_vertSplitter;
- QSplitter *m_horSplitter;
+ TQSplitter *m_vertSplitter;
+ TQSplitter *m_horSplitter;
/**
* Other status info
*/
Package m_currentPackage;
- QString m_currentComponent;
+ TQString m_currentComponent;
Bug m_currentBug;
- QMap<QString, Package> m_packageList;
+ TQMap<TQString, Package> m_packageList;
/**
* We do multi-select, but the close/reopen buttons are per-item and
diff --git a/kbugbuster/gui/cwbugdetails.cpp b/kbugbuster/gui/cwbugdetails.cpp
index 7aaf16a4..eca64758 100644
--- a/kbugbuster/gui/cwbugdetails.cpp
+++ b/kbugbuster/gui/cwbugdetails.cpp
@@ -14,10 +14,10 @@
*************************************************************************
*/
-#include <qtextview.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qlabel.h>
+#include <tqtextview.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
#include "cwbugdetails.h"
#include "kbbprefs.h"
@@ -30,19 +30,19 @@
#include <kglobal.h>
#include <krun.h>
-#include <qlayout.h>
-#include <qpalette.h>
+#include <tqlayout.h>
+#include <tqpalette.h>
using namespace KBugBusterMainWindow;
-CWBugDetails::CWBugDetails( QWidget *parent , const char * name )
- : QWidget( parent, name )
+CWBugDetails::CWBugDetails( TQWidget *parent , const char * name )
+ : TQWidget( parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ TQBoxLayout *topLayout = new TQVBoxLayout( this );
m_bugDesc = new KHTMLPart( this, "m_bugDesc" );
- connect( m_bugDesc->browserExtension(), SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
- this, SLOT( handleOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) );
+ connect( m_bugDesc->browserExtension(), TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
+ this, TQT_SLOT( handleOpenURLRequest( const KURL &, const KParts::URLArgs & ) ) );
topLayout->addWidget( m_bugDesc->view() );
}
@@ -53,14 +53,14 @@ CWBugDetails::~CWBugDetails()
void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
{
- QColorGroup cg = m_bugDesc->view()->palette().active();
- QString text =
+ TQColorGroup cg = m_bugDesc->view()->palette().active();
+ TQString text =
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n"
"<html><head><title></title></head>\n"
"<style>";
text.append(
- QString( "table.helpT { text-align: center; font-family: Verdana; font-weight: normal; font-size: 11px; color: #404040; width: 100%; background-color: #fafafa; border: 1px #6699CC solid; border-collapse: collapse; border-spacing: 0px; }\n"
+ TQString( "table.helpT { text-align: center; font-family: Verdana; font-weight: normal; font-size: 11px; color: #404040; width: 100%; background-color: #fafafa; border: 1px #6699CC solid; border-collapse: collapse; border-spacing: 0px; }\n"
"td.helpHed { border-bottom: 2px solid #000000; border-left: 1px solid #000000; background-color: %1; text-align: center; text-indent: 5px; font-family: Verdana; font-weight: bold; font-size: 11px; color: %2; }\n"
"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"
@@ -70,15 +70,15 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
text.append( "<body style=\"margin: 0px\">\n" );
- QString highlightStyle = QString( "background: %1; color: %2; " )
+ TQString highlightStyle = TQString( "background: %1; color: %2; " )
.arg( cg.highlight().name() )
.arg( cg.highlightedText().name() );
- QString borderBottomStyle = QString( "border-bottom: solid %1 1px; " )
+ TQString borderBottomStyle = TQString( "border-bottom: solid %1 1px; " )
.arg( cg.foreground().name() );
- QString borderTopStyle = QString( "border-top: solid %1 1px; " )
+ TQString borderTopStyle = TQString( "border-top: solid %1 1px; " )
.arg( cg.foreground().name() );
- QString submitter = bug.submitter().fullName( true );
+ 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()
@@ -92,7 +92,7 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
i18n( "1 day old", "%n days old", age ) + "</div>\n";
text.append(
- QString( "<div style=\"background: %1; color: %2; " +
+ TQString( "<div style=\"background: %1; color: %2; " +
borderBottomStyle +
"border-bottom: solid %3 1px; "
"padding: 4px\">"
@@ -115,15 +115,15 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
if ( !firstHeader ) text += borderTopStyle;
text.append( borderBottomStyle + "\">" );
- QString sender = (*it).sender.fullName( true );
- QString date = KGlobal::locale()->formatDateTime( (*it).date, false );
+ TQString sender = (*it).sender.fullName( true );
+ TQString date = KGlobal::locale()->formatDateTime( (*it).date, false );
BugDetailsPart::List::ConstIterator it2 = it;
if ( ++it2 == bdp.end() )
text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url()
+ "\">" + i18n("Bug Report</a> from <b>%1</b>")
.arg( sender ) );
else {
- text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url() + QString("#c%1").arg( replies )
+ text.append( "<a href=\"" + BugSystem::self()->server()->bugLink( bug ).url() + TQString("#c%1").arg( replies )
+ "\">" + i18n("Reply #%1</a> from <b>%2</b>")
.arg( replies ).arg( sender ) );
replies--;
@@ -144,20 +144,20 @@ void CWBugDetails::setBug( const Bug &bug, const BugDetails &details )
text.append( "</div>\n" );
}
- QValueList<BugDetailsImpl::AttachmentDetails> atts = details.attachmentDetails();
+ TQValueList<BugDetailsImpl::AttachmentDetails> atts = details.attachmentDetails();
if ( atts.count() > 0 ) {
text.append( "<table summary=\"Attachment data table\" class=\"sofT\" cellspacing=\"0\">" );
- text.append( QString( "<tr> <td colspan=\"4\" class=\"helpHed\">%1</td> </tr>")
+ text.append( TQString( "<tr> <td colspan=\"4\" class=\"helpHed\">%1</td> </tr>")
.arg( i18n( "Attachment List") ) );
- text.append( QString("<tr> <td class=\"helpHed\">%1</td> <td class=\"helpHed\">%2</td> <td class=\"helpHed\">%3</td> <td class=\"helpHed\">%4</td> </tr>")
+ 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") ) );
- QValueList<BugDetailsImpl::AttachmentDetails>::iterator it;
+ TQValueList<BugDetailsImpl::AttachmentDetails>::iterator it;
for ( it = atts.begin() ; it != atts.end() ; ++it ) {
- text.append( QString("<tr><td>%1</td>").arg( (*it).description ) ) ;
- text.append( QString("<td>%1</td>").arg( (*it).date ) );
+ text.append( TQString("<tr><td>%1</td>").arg( (*it).description ) ) ;
+ text.append( TQString("<td>%1</td>").arg( (*it).date ) );
text.append( "<td><a href=\"" +
BugSystem::self()->server()->attachmentViewLink( (*it).id ).url() +
"\">" + i18n("View") + "</a></td>" );
@@ -185,10 +185,10 @@ void CWBugDetails::handleOpenURLRequest( const KURL &url, const KParts::URLArgs
new KRun( url );
}
-QString CWBugDetails::textBugDetailsAttribute( const QString &value,
- const QString &name )
+TQString CWBugDetails::textBugDetailsAttribute( const TQString &value,
+ const TQString &name )
{
- QString text = "";
+ TQString text = "";
if ( !value.isEmpty() ) {
text.append( "<tr><td style=\"width: 20%\"><b>" + name + "</b></td>"
"<td>" + value + "</td></tr>" );
@@ -196,12 +196,12 @@ QString CWBugDetails::textBugDetailsAttribute( const QString &value,
return text;
}
-QString CWBugDetails::source() const
+TQString CWBugDetails::source() const
{
return mSource;
}
-QString CWBugDetails::selectedText() const
+TQString CWBugDetails::selectedText() const
{
return m_bugDesc->selectedText();
}
diff --git a/kbugbuster/gui/cwbugdetails.h b/kbugbuster/gui/cwbugdetails.h
index 31a5339f..e80d340f 100644
--- a/kbugbuster/gui/cwbugdetails.h
+++ b/kbugbuster/gui/cwbugdetails.h
@@ -20,7 +20,7 @@
#include "bug.h"
#include "bugdetails.h"
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kparts/browserextension.h>
@@ -37,24 +37,24 @@ class CWBugDetails : public QWidget
Q_OBJECT
public:
- CWBugDetails( QWidget* parent = 0, const char* name = 0 );
+ CWBugDetails( TQWidget* parent = 0, const char* name = 0 );
~CWBugDetails();
void setBug( const Bug &, const BugDetails & );
- QString source() const;
- QString selectedText() const;
+ TQString source() const;
+ TQString selectedText() const;
private slots:
void handleOpenURLRequest( const KURL &url, const KParts::URLArgs & );
private:
- QString textBugDetailsAttribute( const QString &value,
- const QString &name );
+ TQString textBugDetailsAttribute( const TQString &value,
+ const TQString &name );
KHTMLPart *m_bugDesc;
- QString mSource;
+ TQString mSource;
};
} // namespace
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() );
diff --git a/kbugbuster/gui/cwbugdetailscontainer.h b/kbugbuster/gui/cwbugdetailscontainer.h
index c183a8ea..670d3593 100644
--- a/kbugbuster/gui/cwbugdetailscontainer.h
+++ b/kbugbuster/gui/cwbugdetailscontainer.h
@@ -38,7 +38,7 @@ class CWBugDetailsContainer : public CWBugDetailsContainer_Base
Q_OBJECT
public:
- CWBugDetailsContainer( QWidget* parent = 0, const char* name = 0 );
+ CWBugDetailsContainer( TQWidget* parent = 0, const char* name = 0 );
~CWBugDetailsContainer();
void setBug( const Bug &, const BugDetails & );
@@ -69,7 +69,7 @@ signals:
private slots:
void showCommands( const Bug & );
- void clearCommand( const QString & );
+ void clearCommand( const TQString & );
void commandQueued( BugCommand * );
private:
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() )
diff --git a/kbugbuster/gui/cwbuglistcontainer.h b/kbugbuster/gui/cwbuglistcontainer.h
index bcda4c15..9dd1d9bd 100644
--- a/kbugbuster/gui/cwbuglistcontainer.h
+++ b/kbugbuster/gui/cwbuglistcontainer.h
@@ -20,7 +20,7 @@
#include "package.h"
#include "bug.h"
-#include <qwidget.h>
+#include <tqwidget.h>
class KListView;
class KFind;
@@ -40,28 +40,28 @@ class CWBugListContainer : public QWidget
Q_OBJECT
public:
- CWBugListContainer( QWidget* parent = 0, const char* name = 0 );
+ CWBugListContainer( TQWidget* parent = 0, const char* name = 0 );
~CWBugListContainer();
- void setBugList( const Package &package, const QString &component, const Bug::List &bugs );
+ void setBugList( const Package &package, const TQString &component, const Bug::List &bugs );
/**
- * Overloaded method that takes a QString for the label. To be used when the
+ * Overloaded method that takes a TQString for the label. To be used when the
* bug list doesn't belong to a package, liek search results
*/
- void setBugList( const QString &label, const Bug::List &bugs );
+ void setBugList( const TQString &label, const Bug::List &bugs );
- void searchBugByTitle( int options, const QString& pattern );
+ void searchBugByTitle( int options, const TQString& pattern );
/** Return list of selected bugs in the listview. Used for merging. */
- QStringList selectedBugs() const;
+ TQStringList selectedBugs() const;
public slots:
void setNoList();
- void setLoading( const Package &package, const QString &component );
- void setLoading( const QString &label );
+ void setLoading( const Package &package, const TQString &component );
+ void setLoading( const TQString &label );
void setCacheMiss( const Package &package );
- void setCacheMiss( const QString &label );
+ void setCacheMiss( const TQString &label );
void slotFindNext();
signals:
@@ -72,17 +72,17 @@ signals:
void currentChanged( const Bug & );
private slots:
- void execute( QListViewItem * );
- void changeCurrent( QListViewItem * );
+ void execute( TQListViewItem * );
+ void changeCurrent( TQListViewItem * );
void markBugCommand( BugCommand * );
- void clearCommand( const QString & );
+ void clearCommand( const TQString & );
- void searchHighlight( const QString &, int, int );
+ void searchHighlight( const TQString &, int, int );
private:
- QLabel *m_listLabel;
- QWidgetStack *m_listStack;
+ TQLabel *m_listLabel;
+ TQWidgetStack *m_listStack;
KListView *m_listBugs;
KFind *m_find;
diff --git a/kbugbuster/gui/cwloadingwidget.cpp b/kbugbuster/gui/cwloadingwidget.cpp
index ddd218a5..0c51241d 100644
--- a/kbugbuster/gui/cwloadingwidget.cpp
+++ b/kbugbuster/gui/cwloadingwidget.cpp
@@ -16,8 +16,8 @@
#include "cwloadingwidget.h"
-#include <qpainter.h>
-#include <qpixmap.h>
+#include <tqpainter.h>
+#include <tqpixmap.h>
#include <kpixmap.h>
#include <kpixmapeffect.h>
@@ -27,16 +27,16 @@
using namespace KBugBusterMainWindow;
-CWLoadingWidget::CWLoadingWidget( WidgetMode mode, QWidget *parent,
+CWLoadingWidget::CWLoadingWidget( WidgetMode mode, TQWidget *parent,
const char * name )
-: QFrame( parent, name )
+: TQFrame( parent, name )
{
init( mode );
}
-CWLoadingWidget::CWLoadingWidget( const QString &text, WidgetMode mode,
- QWidget *parent, const char * name )
-: QFrame( parent, name )
+CWLoadingWidget::CWLoadingWidget( const TQString &text, WidgetMode mode,
+ TQWidget *parent, const char * name )
+: TQFrame( parent, name )
{
init( mode );
setText( text );
@@ -46,13 +46,13 @@ void CWLoadingWidget::init( WidgetMode mode )
{
m_mode = mode;
- QPalette pal = palette();
- pal.setColor( QPalette::Active, QColorGroup::Background,
- QColor( 49, 121, 173 ) );
- pal.setColor( QPalette::Inactive, QColorGroup::Background,
- QColor( 49, 121, 173 ) );
- pal.setColor( QPalette::Disabled, QColorGroup::Background,
- QColor( 49, 121, 173 ) );
+ TQPalette pal = palette();
+ pal.setColor( TQPalette::Active, TQColorGroup::Background,
+ TQColor( 49, 121, 173 ) );
+ pal.setColor( TQPalette::Inactive, TQColorGroup::Background,
+ TQColor( 49, 121, 173 ) );
+ pal.setColor( TQPalette::Disabled, TQColorGroup::Background,
+ TQColor( 49, 121, 173 ) );
setPalette( pal );
setFrameShape( StyledPanel );
@@ -65,25 +65,25 @@ void CWLoadingWidget::init( WidgetMode mode )
if( m_mode == TopFrame )
{
m_logoPixmap =
- new QPixmap( locate( "data", "kbugbuster/pics/logo.png" ) );
+ new TQPixmap( locate( "data", "kbugbuster/pics/logo.png" ) );
m_topRightPixmap =
- new QPixmap( locate( "data", "kbugbuster/pics/top-right.png" ) );
+ new TQPixmap( locate( "data", "kbugbuster/pics/top-right.png" ) );
m_barsPixmap =
- new QPixmap( locate( "data", "kbugbuster/pics/bars.png" ) );
+ new TQPixmap( locate( "data", "kbugbuster/pics/bars.png" ) );
m_toolsPixmap = 0L;
m_toolsPixmapEffect = 0L;
}
else
{
m_toolsPixmap =
- new QPixmap( locate( "data", "kbugbuster/pics/tools.png" ) );
+ new TQPixmap( locate( "data", "kbugbuster/pics/tools.png" ) );
m_toolsPixmapEffect = new KPixmap( m_toolsPixmap->size() );
- QPainter pb;
+ TQPainter pb;
pb.begin( m_toolsPixmapEffect );
pb.fillRect( 0, 0, m_toolsPixmap->width(), m_toolsPixmap->height(),
- QBrush( QColor( 49, 121, 172 ) ) );
+ TQBrush( TQColor( 49, 121, 172 ) ) );
pb.drawPixmap( 0, 0, *m_toolsPixmap );
pb.end();
@@ -98,12 +98,12 @@ void CWLoadingWidget::init( WidgetMode mode )
m_buffer = new QPixmap;
}
-void CWLoadingWidget::resizeEvent( QResizeEvent * )
+void CWLoadingWidget::resizeEvent( TQResizeEvent * )
{
updatePixmap();
}
-void CWLoadingWidget::setText( const QString &text )
+void CWLoadingWidget::setText( const TQString &text )
{
m_text = text;
updatePixmap();
@@ -112,21 +112,21 @@ void CWLoadingWidget::setText( const QString &text )
void CWLoadingWidget::updatePixmap()
{
- QRect cr = contentsRect();
+ TQRect cr = contentsRect();
cr.setWidth( cr.width() + 2 );
cr.setHeight( cr.height() + 2 );
m_buffer->resize( cr.width(), cr.height() );
- QPainter p( m_buffer );
+ TQPainter p( m_buffer );
// fill background
p.fillRect( 0, 0, cr.width(), cr.height(),
- QBrush( QColor( 49, 121, 173 ) ) );
+ TQBrush( TQColor( 49, 121, 173 ) ) );
if( m_mode == TopFrame )
{
- QFont bigFont = QFont( KGlobalSettings::generalFont().family(),
- 28, QFont::Bold, true );
+ TQFont bigFont = TQFont( KGlobalSettings::generalFont().family(),
+ 28, TQFont::Bold, true );
int xoffset = m_logoPixmap->width();
@@ -146,7 +146,7 @@ void CWLoadingWidget::updatePixmap()
AlignAuto | AlignVCenter, m_text );
// Draw intro text
- QString desc = i18n( "Welcome to KBugBuster, a tool to manage the "
+ TQString desc = i18n( "Welcome to KBugBuster, a tool to manage the "
"KDE Bug Report System. With KBugBuster you can "
"manage outstanding bug reports for KDE from a "
"convenient front end." );
@@ -155,9 +155,9 @@ void CWLoadingWidget::updatePixmap()
AlignAuto | AlignVCenter | WordBreak, desc );
// Draw the caption text
- QString caption = i18n( "KBugBuster" );
+ TQString caption = i18n( "KBugBuster" );
p.setFont( bigFont );
- p.setPen( QColor(139, 183, 222) );
+ p.setPen( TQColor(139, 183, 222) );
p.drawText( 220, 60, caption );
p.setPen( black );
p.drawText( 217, 57, caption );
@@ -189,11 +189,11 @@ void CWLoadingWidget::updatePixmap()
if( boxW > 500 )
boxW = 500;
- QRect br = fontMetrics().boundingRect( boxX, boxY,
+ TQRect br = fontMetrics().boundingRect( boxX, boxY,
boxW, cr.height() - boxY - 10 - 2 * fheight,
AlignAuto | AlignTop | WordBreak, m_text );
- QRect box = br;
+ TQRect box = br;
box.setHeight( box.height() + 2 * fheight );
box.setWidth( box.width() + 2 * 10 );
if( box.width() < cr.width() - 2 * boxX )
@@ -202,7 +202,7 @@ void CWLoadingWidget::updatePixmap()
box.setHeight( QMIN( cr.height() - boxY - 2 * fheight - 10, 100 ) );
p.setClipRect( box );
- p.fillRect( box, QBrush( QColor( 204, 222, 234 ) ) );
+ p.fillRect( box, TQBrush( TQColor( 204, 222, 234 ) ) );
p.drawPixmap( toolsEffectX, toolsEffectY, *m_toolsPixmapEffect );
p.setViewport( box );
@@ -237,17 +237,17 @@ CWLoadingWidget::~CWLoadingWidget()
m_buffer = 0L;
}
-void CWLoadingWidget::mouseReleaseEvent( QMouseEvent * )
+void CWLoadingWidget::mouseReleaseEvent( TQMouseEvent * )
{
emit clicked();
}
-void CWLoadingWidget::drawContents( QPainter *p )
+void CWLoadingWidget::drawContents( TQPainter *p )
{
if( !m_buffer || m_buffer->isNull() )
- p->fillRect( contentsRect(), QBrush( QColor( 255, 121, 172 ) ) );
+ p->fillRect( contentsRect(), TQBrush( TQColor( 255, 121, 172 ) ) );
else
- p->drawPixmap( QPoint( contentsRect().x(), contentsRect().y()),
+ p->drawPixmap( TQPoint( contentsRect().x(), contentsRect().y()),
*m_buffer, contentsRect() );
}
diff --git a/kbugbuster/gui/cwloadingwidget.h b/kbugbuster/gui/cwloadingwidget.h
index 17c91f05..9aa3b0b5 100644
--- a/kbugbuster/gui/cwloadingwidget.h
+++ b/kbugbuster/gui/cwloadingwidget.h
@@ -18,8 +18,8 @@
#ifndef KBBMAINWINDOW_CWLOADINGWIDGET_H
#define KBBMAINWINDOW_CWLOADINGWIDGET_H
-#include <qlabel.h>
-#include <qframe.h>
+#include <tqlabel.h>
+#include <tqframe.h>
class QPixmap;
class KPixmap;
@@ -42,19 +42,19 @@ public:
*/
enum WidgetMode { TopFrame = 0, BottomFrame };
- CWLoadingWidget( WidgetMode mode = TopFrame, QWidget* parent = 0,
+ CWLoadingWidget( WidgetMode mode = TopFrame, TQWidget* parent = 0,
const char* name = 0 );
- CWLoadingWidget( const QString &text, WidgetMode mode = TopFrame,
- QWidget* parent = 0, const char* name = 0 );
+ CWLoadingWidget( const TQString &text, WidgetMode mode = TopFrame,
+ TQWidget* parent = 0, const char* name = 0 );
~CWLoadingWidget();
- QString text() const { return m_text; }
- void setText( const QString &text );
+ TQString text() const { return m_text; }
+ void setText( const TQString &text );
protected:
- virtual void mouseReleaseEvent( QMouseEvent * );
- virtual void drawContents( QPainter *p );
- virtual void resizeEvent( QResizeEvent * );
+ virtual void mouseReleaseEvent( TQMouseEvent * );
+ virtual void drawContents( TQPainter *p );
+ virtual void resizeEvent( TQResizeEvent * );
signals:
void clicked();
@@ -63,19 +63,19 @@ private:
void init( WidgetMode mode );
void updatePixmap();
- QString m_text;
+ TQString m_text;
WidgetMode m_mode;
// Pixmaps used
- QPixmap *m_toolsPixmap;
- QPixmap *m_logoPixmap;
- QPixmap *m_topRightPixmap;
- QPixmap *m_barsPixmap;
+ TQPixmap *m_toolsPixmap;
+ TQPixmap *m_logoPixmap;
+ TQPixmap *m_topRightPixmap;
+ TQPixmap *m_barsPixmap;
// For performance reasons we apply the KPixmapEffect only once
KPixmap *m_toolsPixmapEffect;
- QPixmap *m_buffer;
+ TQPixmap *m_buffer;
};
diff --git a/kbugbuster/gui/cwsearchwidget.cpp b/kbugbuster/gui/cwsearchwidget.cpp
index 8f7fcb26..5a075bb8 100644
--- a/kbugbuster/gui/cwsearchwidget.cpp
+++ b/kbugbuster/gui/cwsearchwidget.cpp
@@ -14,34 +14,34 @@
*************************************************************************
*/
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include <kdialog.h>
-#include <qlineedit.h>
-#include <qlayout.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
#include <kcombobox.h>
-#include <qlabel.h>
+#include <tqlabel.h>
#include "cwsearchwidget.h"
using namespace KBugBusterMainWindow;
-CWSearchWidget::CWSearchWidget( QWidget *parent , const char * name )
+CWSearchWidget::CWSearchWidget( TQWidget *parent , const char * name )
: CWSearchWidget_Base( parent, name )
{
// Set fonts and margins
CWSearchWidget_BaseLayout->setSpacing( KDialog::spacingHint() );
CWSearchWidget_BaseLayout->setMargin( KDialog::marginHint() );
- QFont f = m_searchLabel->font();
+ TQFont f = m_searchLabel->font();
f.setBold( true );
m_searchLabel->setFont( f );
- connect( m_searchDesc, SIGNAL( textChanged ( const QString & ) ),
- this, SLOT( textDescriptionChanged ( const QString & ) ) );
+ connect( m_searchDesc, TQT_SIGNAL( textChanged ( const TQString & ) ),
+ this, TQT_SLOT( textDescriptionChanged ( const TQString & ) ) );
- connect( m_searchBugNumber, SIGNAL( textChanged ( const QString & ) ),
- this, SLOT( textNumberChanged ( const QString & ) ) );
+ connect( m_searchBugNumber, TQT_SIGNAL( textChanged ( const TQString & ) ),
+ this, TQT_SLOT( textNumberChanged ( const TQString & ) ) );
m_searchDescBtn->setEnabled( !m_searchDesc->text().isEmpty() );
m_searchBugNumberBtn->setEnabled( !m_searchBugNumber->text().isEmpty() );
@@ -53,12 +53,12 @@ CWSearchWidget::~CWSearchWidget()
{
}
-void CWSearchWidget::textDescriptionChanged ( const QString &_text )
+void CWSearchWidget::textDescriptionChanged ( const TQString &_text )
{
m_searchDescBtn->setEnabled( !_text.isEmpty() );
}
-void CWSearchWidget::textNumberChanged ( const QString &_text )
+void CWSearchWidget::textNumberChanged ( const TQString &_text )
{
m_searchBugNumberBtn->setEnabled( !_text.isEmpty() );
}
diff --git a/kbugbuster/gui/cwsearchwidget.h b/kbugbuster/gui/cwsearchwidget.h
index 4cf65720..108a1872 100644
--- a/kbugbuster/gui/cwsearchwidget.h
+++ b/kbugbuster/gui/cwsearchwidget.h
@@ -30,12 +30,12 @@ class CWSearchWidget : public CWSearchWidget_Base
Q_OBJECT
public:
- CWSearchWidget( QWidget* parent = 0, const char* name = 0 );
+ CWSearchWidget( TQWidget* parent = 0, const char* name = 0 );
~CWSearchWidget();
public slots:
- void textNumberChanged ( const QString & );
- void textDescriptionChanged ( const QString & );
+ void textNumberChanged ( const TQString & );
+ void textDescriptionChanged ( const TQString & );
};
} // namespace
diff --git a/kbugbuster/gui/kbbbookmarkmanager.h b/kbugbuster/gui/kbbbookmarkmanager.h
index 64edfc24..af58a461 100644
--- a/kbugbuster/gui/kbbbookmarkmanager.h
+++ b/kbugbuster/gui/kbbbookmarkmanager.h
@@ -10,7 +10,7 @@ public:
static KBookmarkManager * self() {
if ( !s_bookmarkManager )
{
- QString bookmarksFile = locateLocal("data", QString::fromLatin1("kbugbuster/bookmarks.xml"));
+ TQString bookmarksFile = locateLocal("data", TQString::fromLatin1("kbugbuster/bookmarks.xml"));
s_bookmarkManager = KBookmarkManager::managerForFile( bookmarksFile );
}
return s_bookmarkManager;
diff --git a/kbugbuster/gui/kbbmainwindow.cpp b/kbugbuster/gui/kbbmainwindow.cpp
index 66a9b588..24730fda 100644
--- a/kbugbuster/gui/kbbmainwindow.cpp
+++ b/kbugbuster/gui/kbbmainwindow.cpp
@@ -16,13 +16,13 @@
#include "kbbmainwindow.h"
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qmultilineedit.h>
-#include <qprogressbar.h>
-#include <qpushbutton.h>
-#include <qtextview.h>
-#include <qwidgetstack.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqmultilineedit.h>
+#include <tqprogressbar.h>
+#include <tqpushbutton.h>
+#include <tqtextview.h>
+#include <tqwidgetstack.h>
#include <kaction.h>
#include <kbookmarkmenu.h>
@@ -61,15 +61,15 @@ using namespace KBugBusterMainWindow;
class TextViewer : public KDialogBase
{
public:
- TextViewer( const QString &title, QWidget *parent = 0 )
+ TextViewer( const TQString &title, TQWidget *parent = 0 )
: KDialogBase( Plain, title, Ok, Ok, parent, 0,
false )
{
- QFrame *topFrame = plainPage();
+ TQFrame *topFrame = plainPage();
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
- mTextView = new QTextEdit( topFrame );
+ mTextView = new TQTextEdit( topFrame );
mTextView->setReadOnly( true );
mTextView->setTextFormat( PlainText );
topLayout->addWidget( mTextView );
@@ -77,27 +77,27 @@ class TextViewer : public KDialogBase
resize( 600, 400 );
}
- void setText( const QString &text )
+ void setText( const TQString &text )
{
mTextView->setText( text );
}
private:
- QTextEdit *mTextView;
+ TQTextEdit *mTextView;
};
KBookmarkManager* KBBBookmarkManager::s_bookmarkManager;
-KBBMainWindow::KBBMainWindow( const QCString &initialPackage,
- const QCString &initialComponent,
- const QCString &initialBug,
- QWidget * , const char * name )
+KBBMainWindow::KBBMainWindow( const TQCString &initialPackage,
+ const TQCString &initialComponent,
+ const TQCString &initialBug,
+ TQWidget * , const char * name )
: KMainWindow( 0, name ), mPreferencesDialog( 0 ), mResponseViewer( 0 ),
mBugSourceViewer( 0 ), mPackageSelectDialog( 0 )
{
BugSystem::self()->setCurrentServer( KBBPrefs::instance()->mCurrentServer );
- m_statusLabel = new QLabel( i18n( "Welcome to <b>KBugBuster</b>." ), statusBar() );
+ m_statusLabel = new TQLabel( i18n( "Welcome to <b>KBugBuster</b>." ), statusBar() );
m_statusLabel->setMaximumHeight( statusBar()->fontMetrics().height() + 6 );
m_statusLabel->setIndent( KDialog::marginHint() / 2 );
statusBar()->addWidget( m_statusLabel, 1 );
@@ -108,25 +108,25 @@ KBBMainWindow::KBBMainWindow( const QCString &initialPackage,
initActions();
- m_progressBar = new QProgressBar( 100, statusBar() );
+ m_progressBar = new TQProgressBar( 100, statusBar() );
m_progressBar->setCenterIndicator( true );
m_progressBar->setMinimumWidth( 150 );
m_progressBar->setMaximumHeight( statusBar()->fontMetrics().height() + 6 );
statusBar()->addWidget( m_progressBar );
- connect( m_mainWidget, SIGNAL( resetProgressBar() ),
- m_progressBar, SLOT( reset() ) );
- connect( m_mainWidget, SIGNAL( searchPackage() ),
- this, SLOT( searchPackage() ) );
- connect( m_mainWidget, SIGNAL( searchBugNumber() ),
- this, SLOT( searchBugNumber() ) );
+ connect( m_mainWidget, TQT_SIGNAL( resetProgressBar() ),
+ m_progressBar, TQT_SLOT( reset() ) );
+ connect( m_mainWidget, TQT_SIGNAL( searchPackage() ),
+ this, TQT_SLOT( searchPackage() ) );
+ connect( m_mainWidget, TQT_SIGNAL( searchBugNumber() ),
+ this, TQT_SLOT( searchBugNumber() ) );
- connect( BugSystem::self(), SIGNAL( infoMessage( const QString & ) ),
- SLOT( slotStatusMsg( const QString & ) ) );
+ connect( BugSystem::self(), TQT_SIGNAL( infoMessage( const TQString & ) ),
+ TQT_SLOT( slotStatusMsg( const TQString & ) ) );
- connect( BugSystem::self(), SIGNAL( infoMessage( const QString & ) ),
- SLOT( slotStatusMsg( const QString & ) ) );
- connect( BugSystem::self(), SIGNAL( infoPercent( unsigned long ) ),
- SLOT( slotSetPercent( unsigned long ) ) );
+ connect( BugSystem::self(), TQT_SIGNAL( infoMessage( const TQString & ) ),
+ TQT_SLOT( slotStatusMsg( const TQString & ) ) );
+ connect( BugSystem::self(), TQT_SIGNAL( infoPercent( unsigned long ) ),
+ TQT_SLOT( slotSetPercent( unsigned long ) ) );
m_mainWidget->readConfig();
}
@@ -145,60 +145,60 @@ void KBBMainWindow::initActions()
{
// Prepare and create XML GUI
fileQuit = KStdAction::quit( this,
- SLOT( close() ), actionCollection() );
+ TQT_SLOT( close() ), actionCollection() );
fileQuit->setToolTip( i18n( "Quit KBugBuster" ) );
- new KAction( i18n("See &Pending Changes"), "contents", 0, this, SLOT( slotListChanges() ),
+ new KAction( i18n("See &Pending Changes"), "contents", 0, this, TQT_SLOT( slotListChanges() ),
actionCollection(), "file_seechanges" );
- new KAction( i18n("&Submit Changes"), "mail_send", 0, this, SLOT( slotSubmit() ),
+ new KAction( i18n("&Submit Changes"), "mail_send", 0, this, TQT_SLOT( slotSubmit() ),
actionCollection(), "file_submit" );
- reloadpacklist = new KAction( i18n("Reload &Product List"), "reload", CTRL+Qt::Key_F5, m_mainWidget, SLOT( slotReloadPackageList() ),
+ reloadpacklist = new KAction( i18n("Reload &Product List"), "reload", CTRL+Qt::Key_F5, m_mainWidget, TQT_SLOT( slotReloadPackageList() ),
actionCollection(), "reload_packagelist" );
- reloadpack= new KAction( i18n("Reload Bug &List (for current product)"), "reload", Qt::Key_F5, m_mainWidget, SLOT( slotReloadPackage() ),
+ reloadpack= new KAction( i18n("Reload Bug &List (for current product)"), "reload", Qt::Key_F5, m_mainWidget, TQT_SLOT( slotReloadPackage() ),
actionCollection(), "reload_package" );
- reloadbug = new KAction( i18n("Reload Bug &Details (for current bug)"), "reload", SHIFT+Qt::Key_F5, m_mainWidget, SLOT( slotReloadBug() ),
+ reloadbug = new KAction( i18n("Reload Bug &Details (for current bug)"), "reload", SHIFT+Qt::Key_F5, m_mainWidget, TQT_SLOT( slotReloadBug() ),
actionCollection(), "reload_bug" );
- loadMyBugs = new KAction( i18n( "Load &My Bugs List" ), 0, m_mainWidget, SLOT( slotLoadMyBugs() ),
+ loadMyBugs = new KAction( i18n( "Load &My Bugs List" ), 0, m_mainWidget, TQT_SLOT( slotLoadMyBugs() ),
actionCollection(), "load_my_bugs" );
- reloadall = new KAction( i18n("Load All Bug Details (for current product)"), Qt::Key_F6, m_mainWidget, SLOT( slotRetrieveAllBugDetails() ), actionCollection(), "load_allbugs" );
- new KAction( i18n("Extract &Attachments"), "filesave", Qt::Key_F4, m_mainWidget, SLOT( slotExtractAttachments() ),
+ reloadall = new KAction( i18n("Load All Bug Details (for current product)"), Qt::Key_F6, m_mainWidget, TQT_SLOT( slotRetrieveAllBugDetails() ), actionCollection(), "load_allbugs" );
+ new KAction( i18n("Extract &Attachments"), "filesave", Qt::Key_F4, m_mainWidget, TQT_SLOT( slotExtractAttachments() ),
actionCollection(), "extract_attachments" );
- new KAction( i18n("Clear Cache"), 0, this, SLOT( clearCache() ),
+ new KAction( i18n("Clear Cache"), 0, this, TQT_SLOT( clearCache() ),
actionCollection(), "clear_cache" );
new KAction( i18n("&Search by Product..."), "goto", CTRL+Qt::Key_P, this,
- SLOT( searchPackage() ), actionCollection(), "search_package" );
+ TQT_SLOT( searchPackage() ), actionCollection(), "search_package" );
new KAction( i18n("Search by Bug &Number..."), "filefind", CTRL+Qt::Key_N, this,
- SLOT( searchBugNumber() ), actionCollection(), "search_bugnumber" );
+ 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...") ,"find", CTRL+Qt::Key_D, this,
- SLOT( searchDescription() ), actionCollection(), "search_description" );
+ TQT_SLOT( searchDescription() ), actionCollection(), "search_description" );
// new KAction( i18n("&Merge"), "view_remove", CTRL+Qt::Key_M, m_mainWidget,
-// SLOT( mergeBugs() ), actionCollection(), "cmd_merge" );
+// TQT_SLOT( mergeBugs() ), actionCollection(), "cmd_merge" );
// new KAction( i18n("&Unmerge"), "view_top_bottom", CTRL+SHIFT+Qt::Key_M, m_mainWidget,
-// SLOT( unmergeBugs() ), actionCollection(), "cmd_unmerge" );
+// TQT_SLOT( unmergeBugs() ), actionCollection(), "cmd_unmerge" );
new KAction( i18n("C&lose..."), "edittrash", CTRL+Qt::Key_L, m_mainWidget,
- SLOT( closeBug() ), actionCollection(), "cmd_close" );
+ TQT_SLOT( closeBug() ), actionCollection(), "cmd_close" );
// new KAction( i18n("Clos&e Silently"), "edittrash", CTRL+Qt::Key_E, m_mainWidget,
-// SLOT( closeBugSilently() ), actionCollection(), "cmd_close_silently" );
+// TQT_SLOT( closeBugSilently() ), actionCollection(), "cmd_close_silently" );
new KAction( i18n("Re&open"), "idea", CTRL+Qt::Key_O, m_mainWidget,
- SLOT( reopenBug() ), actionCollection(), "cmd_reopen" );
+ TQT_SLOT( reopenBug() ), actionCollection(), "cmd_reopen" );
// new KAction( i18n("Re&assign..."), "folder_new", CTRL+Qt::Key_A, m_mainWidget,
-// SLOT( reassignBug() ), actionCollection(), "cmd_reassign" );
+// TQT_SLOT( reassignBug() ), actionCollection(), "cmd_reassign" );
// new KAction( i18n("Change &Title..."), "text_under", CTRL+Qt::Key_T, m_mainWidget,
-// SLOT( titleBug() ), actionCollection(), "cmd_title" );
+// TQT_SLOT( titleBug() ), actionCollection(), "cmd_title" );
// new KAction( i18n("Change &Severity..."), "edit", CTRL+Qt::Key_S, m_mainWidget,
-// SLOT( severityBug() ), actionCollection(), "cmd_severity" );
+// TQT_SLOT( severityBug() ), actionCollection(), "cmd_severity" );
new KAction( i18n("&Reply..."), "mail_replyall",CTRL+Qt::Key_R , m_mainWidget,
- SLOT( replyBug() ), actionCollection(), "cmd_reply" );
+ TQT_SLOT( replyBug() ), actionCollection(), "cmd_reply" );
new KAction( i18n("Reply &Privately..."), "mail_reply", CTRL+Qt::Key_I, m_mainWidget,
- SLOT( replyPrivateBug() ), actionCollection(), "cmd_replyprivate" );
+ TQT_SLOT( replyPrivateBug() ), actionCollection(), "cmd_replyprivate" );
- KStdAction::showMenubar(this, SLOT( slotToggleMenubar() ), actionCollection() );
+ KStdAction::showMenubar(this, TQT_SLOT( slotToggleMenubar() ), actionCollection() );
#if KDE_IS_VERSION( 3, 1, 90 )
createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true);
@@ -206,7 +206,7 @@ void KBBMainWindow::initActions()
m_disconnectedAction = new KToggleAction( i18n("&Disconnected Mode"), 0,
this,
- SLOT( slotDisconnectedAction() ),
+ TQT_SLOT( slotDisconnectedAction() ),
actionCollection(),
"settings_disconnected" );
m_disconnectedAction->setChecked( BugSystem::self()->disconnected() );
@@ -215,16 +215,16 @@ void KBBMainWindow::initActions()
m_pamBookmarks = new KActionMenu( i18n( "&Bookmarks" ), "bookmark", actionCollection(), "bookmarks" );
m_pBookmarkMenu = new KBookmarkMenu( KBBBookmarkManager::self(), this, m_pamBookmarks->popupMenu(), actionCollection(), true );
- KStdAction::preferences( this, SLOT(preferences()), actionCollection() );
+ KStdAction::preferences( this, TQT_SLOT(preferences()), actionCollection() );
- KToggleAction *toggleTmp = new KToggleAction( i18n("Show Closed Bugs"), "recycled", 0, this, SLOT( slotToggleDone() ),
+ KToggleAction *toggleTmp = new KToggleAction( i18n("Show Closed Bugs"), "recycled", 0, this, TQT_SLOT( slotToggleDone() ),
actionCollection(), "cmd_toggle_done" );
#if KDE_IS_VERSION( 3, 2, 90 )
toggleTmp->setCheckedState(i18n("Hide Closed Bugs"));
#endif
toggleTmp->setChecked( KBBPrefs::instance()->mShowClosedBugs );
- toggleTmp =new KToggleAction( i18n("Show Wishes"), "bookmark", 0, this, SLOT( slotToggleWishes() ),
+ toggleTmp =new KToggleAction( i18n("Show Wishes"), "bookmark", 0, this, TQT_SLOT( slotToggleWishes() ),
actionCollection(), "cmd_toggle_wishes" );
#if KDE_IS_VERSION( 3, 2, 90 )
toggleTmp->setCheckedState(i18n("Hide Wishes"));
@@ -233,7 +233,7 @@ void KBBMainWindow::initActions()
mSelectServerAction = new KSelectAction( i18n( "Select Server" ), 0, 0,
this,
- SLOT( slotSelectServer() ),
+ TQT_SLOT( slotSelectServer() ),
actionCollection(),
"select_server" );
@@ -241,10 +241,10 @@ void KBBMainWindow::initActions()
if ( KBBPrefs::instance()->mDebugMode ) {
new KAction( i18n("Show Last Server Response..."), 0 , this,
- SLOT( showLastResponse() ), actionCollection(),
+ TQT_SLOT( showLastResponse() ), actionCollection(),
"debug_lastresponse" );
new KAction( i18n("Show Bug HTML Source..."), 0 , this,
- SLOT( showBugSource() ), actionCollection(),
+ TQT_SLOT( showBugSource() ), actionCollection(),
"debug_showbugsource" );
}
@@ -268,12 +268,12 @@ void KBBMainWindow::slotToggleMenubar()
void KBBMainWindow::setupSelectServerAction()
{
- QStringList servers;
+ TQStringList servers;
int current = -1;
- QValueList<BugServer *> serverList = BugSystem::self()->serverList();
- QValueList<BugServer *>::ConstIterator it;
+ TQValueList<BugServer *> serverList = BugSystem::self()->serverList();
+ TQValueList<BugServer *>::ConstIterator it;
for ( it = serverList.begin(); it != serverList.end(); ++it ) {
- QString name = (*it)->serverConfig().name();
+ TQString name = (*it)->serverConfig().name();
servers.append( name );
if ( name == KBBPrefs::instance()->mCurrentServer ) {
current = servers.count() - 1;
@@ -285,9 +285,9 @@ void KBBMainWindow::setupSelectServerAction()
}
}
-QString KBBMainWindow::currentURL() const
+TQString KBBMainWindow::currentURL() const
{
- QString number=m_mainWidget->currentNumber();
+ TQString number=m_mainWidget->currentNumber();
if (number.isEmpty())
return "";
@@ -295,20 +295,20 @@ QString KBBMainWindow::currentURL() const
return "bug:"+number;
}
-QString KBBMainWindow::currentTitle() const
+TQString KBBMainWindow::currentTitle() const
{
return "#"+m_mainWidget->currentNumber()+": "+m_mainWidget->currentTitle();
}
-void KBBMainWindow::openBookmarkURL( const QString & url )
+void KBBMainWindow::openBookmarkURL( const TQString & url )
{
if ( url.left(4)=="bug:" ) {
- QString bugnumber = url.mid(4);
+ TQString bugnumber = url.mid(4);
m_mainWidget->slotRetrieveBugDetails( Bug::fromNumber( bugnumber ) );
}
}
-// --- SLOT IMPLEMENTATIONS -------------------------------------------------
+// --- TQT_SLOT IMPLEMENTATIONS -------------------------------------------------
void KBBMainWindow::slotDisconnectedAction()
{
@@ -324,7 +324,7 @@ void KBBMainWindow::slotDisconnectedAction()
loadMyBugs->setEnabled( enable );
}
-void KBBMainWindow::slotStatusMsg( const QString &text )
+void KBBMainWindow::slotStatusMsg( const TQString &text )
{
// Change status message permanently
m_statusLabel->setText( text );
@@ -337,12 +337,12 @@ void KBBMainWindow::slotSubmit()
void KBBMainWindow::slotListChanges()
{
- QStringList list = BugSystem::self()->server()->listCommands();
+ TQStringList list = BugSystem::self()->server()->listCommands();
if (list.count() > 0)
{
int ret = KMessageBox::questionYesNoList( this, i18n("List of pending commands:"),
- list, QString::null, KStdGuiItem::clear(), KStdGuiItem::close() );
+ list, TQString::null, KStdGuiItem::clear(), KStdGuiItem::close() );
if ( ret == KMessageBox::Yes )
{
// Ask for confirmation, it's too easy to click the wrong button in the above dlg box
@@ -371,7 +371,7 @@ void KBBMainWindow::searchPackage()
}
mPackageSelectDialog->setPackages( BugSystem::self()->packageList() );
BugServerConfig cfg = BugSystem::self()->server()->serverConfig();
- QStringList recent = cfg.recentPackages();
+ TQStringList recent = cfg.recentPackages();
kdDebug() << "MainWindow RECENT: " << recent.join(",") << endl;
mPackageSelectDialog->setRecentPackages( recent );
@@ -382,16 +382,16 @@ void KBBMainWindow::searchPackage()
return;
}
- QString component = mPackageSelectDialog->selectedComponent();
+ TQString component = mPackageSelectDialog->selectedComponent();
m_mainWidget->slotRetrieveBugList( package.name(), component );
}
void KBBMainWindow::searchBugNumber()
{
bool ok = false;
- QString result = KInputDialog::getText( i18n("Search for Bug Number"),
+ TQString result = KInputDialog::getText( i18n("Search for Bug Number"),
i18n("Please enter a bug number:"),
- QString::null, &ok, this );
+ TQString::null, &ok, this );
if ( ok ) {
//Strip whitespace and # if needed
result = result.stripWhiteSpace();
@@ -420,7 +420,7 @@ bool KBBMainWindow::queryClose()
if ( ! BugSystem::self()->server()->commandsPending() ) return true;
int result = KMessageBox::warningYesNoCancel(this,i18n("There are unsent bug commands."
- " Do you want to send them now?"), QString::null, i18n("Send"), i18n("Do Not Send"));
+ " Do you want to send them now?"), TQString::null, i18n("Send"), i18n("Do Not Send"));
if ( result == KMessageBox::Cancel ) return false;
if ( result == KMessageBox::Yes ) {
BugSystem::self()->sendCommands();
@@ -432,10 +432,10 @@ void KBBMainWindow::preferences()
{
if (!mPreferencesDialog) {
mPreferencesDialog = new PreferencesDialog(this);
- connect( mPreferencesDialog, SIGNAL( configChanged() ),
- SLOT( setupSelectServerAction() ) );
- connect( mPreferencesDialog, SIGNAL( configChanged() ),
- m_mainWidget, SLOT( slotReloadPackage() ) );
+ connect( mPreferencesDialog, TQT_SIGNAL( configChanged() ),
+ TQT_SLOT( setupSelectServerAction() ) );
+ connect( mPreferencesDialog, TQT_SIGNAL( configChanged() ),
+ m_mainWidget, TQT_SLOT( slotReloadPackage() ) );
}
mPreferencesDialog->show();
mPreferencesDialog->raise();
@@ -462,7 +462,7 @@ void KBBMainWindow::slotSelectServer()
{
m_mainWidget->writeConfig();
- QString currentServer = mSelectServerAction->currentText();
+ TQString currentServer = mSelectServerAction->currentText();
BugSystem::self()->setCurrentServer( currentServer );
diff --git a/kbugbuster/gui/kbbmainwindow.h b/kbugbuster/gui/kbbmainwindow.h
index f139c733..b16479cf 100644
--- a/kbugbuster/gui/kbbmainwindow.h
+++ b/kbugbuster/gui/kbbmainwindow.h
@@ -19,7 +19,7 @@
#include <kapplication.h>
#include <kbookmarkmanager.h>
#include <kmainwindow.h>
-#include <qmap.h>
+#include <tqmap.h>
#include "package.h"
#include "bug.h"
@@ -52,22 +52,22 @@ class KBBMainWindow : public KMainWindow, virtual public KBookmarkOwner
/**
* construtor of KBugBusterApp, calls all init functions to create the application.
*/
- KBBMainWindow( const QCString &initialPackage = "",
- const QCString &initialCpomponent = "",
- const QCString &initialBug = "",
- QWidget* parent = 0, const char* name = 0 );
+ KBBMainWindow( const TQCString &initialPackage = "",
+ const TQCString &initialCpomponent = "",
+ const TQCString &initialBug = "",
+ TQWidget* parent = 0, const char* name = 0 );
~KBBMainWindow();
/// Overloaded functions of KBookmarkOwner
- virtual void openBookmarkURL( const QString & _url );
- virtual QString currentTitle() const;
- virtual QString currentURL() const;
+ virtual void openBookmarkURL( const TQString & _url );
+ virtual TQString currentTitle() const;
+ virtual TQString currentURL() const;
public slots:
/**
* Event handlers for our KActions
*/
- void slotStatusMsg( const QString &text );
+ void slotStatusMsg( const TQString &text );
void slotDisconnectedAction();
void slotSubmit();
void slotListChanges();
@@ -122,8 +122,8 @@ class KBBMainWindow : public KMainWindow, virtual public KBookmarkOwner
* Status bar label. We need this, because the default Qt version doesn't
* support rich text in the messages
*/
- QLabel *m_statusLabel;
- QProgressBar *m_progressBar;
+ TQLabel *m_statusLabel;
+ TQProgressBar *m_progressBar;
PreferencesDialog *mPreferencesDialog;
diff --git a/kbugbuster/gui/loadallbugsdlg.cpp b/kbugbuster/gui/loadallbugsdlg.cpp
index 40ecd6d8..d6203c07 100644
--- a/kbugbuster/gui/loadallbugsdlg.cpp
+++ b/kbugbuster/gui/loadallbugsdlg.cpp
@@ -18,28 +18,28 @@
#include "bugcache.h"
#include <kdebug.h>
#include <kio/defaultprogress.h>
-#include <qtimer.h>
+#include <tqtimer.h>
-LoadAllBugsDlg::LoadAllBugsDlg( const Package& pkg, const QString &component )
- : QDialog( 0L, "progressdlg", TRUE )
+LoadAllBugsDlg::LoadAllBugsDlg( const Package& pkg, const TQString &component )
+ : TQDialog( 0L, "progressdlg", TRUE )
{
m_bugLoadingProgress = new KIO::DefaultProgress( this );
- connect( m_bugLoadingProgress, SIGNAL( stopped() ),
- this, SLOT( slotStopped() ) );
+ connect( m_bugLoadingProgress, TQT_SIGNAL( stopped() ),
+ this, TQT_SLOT( slotStopped() ) );
setCaption( i18n( "Loading All Bugs for Product %1" ).arg( pkg.name() ) );
connect( BugSystem::self(),
- SIGNAL( bugDetailsAvailable( const Bug &, const BugDetails & ) ),
- SLOT( slotBugDetailsAvailable( const Bug &, const BugDetails & ) ) );
+ TQT_SIGNAL( bugDetailsAvailable( const Bug &, const BugDetails & ) ),
+ TQT_SLOT( slotBugDetailsAvailable( const Bug &, const BugDetails & ) ) );
connect( BugSystem::self(),
- SIGNAL( bugDetailsLoadingError() ),
- SLOT( slotBugDetailsLoadingError() ) );
+ TQT_SIGNAL( bugDetailsLoadingError() ),
+ TQT_SLOT( slotBugDetailsLoadingError() ) );
// The package (and its buglist) has to be in the cache already...
m_bugs = BugSystem::self()->cache()->loadBugList( pkg, component, true );
m_count = m_bugs.count();
m_bugLoadingProgress->slotTotalSize( 0, m_count );
kdDebug() << "LoadAllBugsDlg: " << m_count << " bugs to load" << endl;
m_processed = 0;
- QTimer::singleShot( 0, this, SLOT( loadNextBug() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( loadNextBug() ) );
}
void LoadAllBugsDlg::slotBugDetailsAvailable( const Bug &bug, const BugDetails & )
diff --git a/kbugbuster/gui/loadallbugsdlg.h b/kbugbuster/gui/loadallbugsdlg.h
index 685abcb0..cc7c0661 100644
--- a/kbugbuster/gui/loadallbugsdlg.h
+++ b/kbugbuster/gui/loadallbugsdlg.h
@@ -15,7 +15,7 @@
#ifndef loadallbugsdlg_h
#define loadallbugsdlg_h
-#include <qdialog.h>
+#include <tqdialog.h>
#include "bug.h"
class Package;
class BugDetails;
@@ -26,7 +26,7 @@ class LoadAllBugsDlg : public QDialog
{
Q_OBJECT
public:
- LoadAllBugsDlg( const Package& pkg, const QString &component );
+ LoadAllBugsDlg( const Package& pkg, const TQString &component );
protected slots:
void slotBugDetailsAvailable( const Bug &bug, const BugDetails &bd );
diff --git a/kbugbuster/gui/messageeditor.cpp b/kbugbuster/gui/messageeditor.cpp
index 517ef80b..f10e0fb4 100644
--- a/kbugbuster/gui/messageeditor.cpp
+++ b/kbugbuster/gui/messageeditor.cpp
@@ -1,8 +1,8 @@
-#include <qcombobox.h>
+#include <tqcombobox.h>
#include <ktextedit.h>
#include <kinputdialog.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -11,33 +11,33 @@
#include "kbbprefs.h"
#include "messageeditor.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include "messageeditor.moc"
-MessageEditor::MessageEditor( QWidget *parent )
+MessageEditor::MessageEditor( TQWidget *parent )
: KDialogBase(Plain,i18n("Edit Message Buttons"),Ok|Cancel,Ok,parent,0,
true,true)
{
- QFrame *topFrame = plainPage();
- QBoxLayout *topLayout = new QVBoxLayout(topFrame,0,spacingHint());
+ TQFrame *topFrame = plainPage();
+ TQBoxLayout *topLayout = new TQVBoxLayout(topFrame,0,spacingHint());
- QBoxLayout *selectionLayout = new QHBoxLayout;
+ TQBoxLayout *selectionLayout = new QHBoxLayout;
topLayout->addLayout(selectionLayout);
- QLabel *selectionLabel = new QLabel(i18n("Button:"),topFrame);
+ TQLabel *selectionLabel = new TQLabel(i18n("Button:"),topFrame);
selectionLayout->addWidget(selectionLabel);
- mSelectionCombo = new QComboBox(topFrame);
+ mSelectionCombo = new TQComboBox(topFrame);
selectionLayout->addWidget(mSelectionCombo);
- connect(mSelectionCombo,SIGNAL(activated(int)),SLOT(changeMessage()));
+ connect(mSelectionCombo,TQT_SIGNAL(activated(int)),TQT_SLOT(changeMessage()));
- QPushButton *addButton = new QPushButton(i18n("Add Button..."),topFrame);
+ TQPushButton *addButton = new TQPushButton(i18n("Add Button..."),topFrame);
selectionLayout->addWidget(addButton);
- connect(addButton,SIGNAL(clicked()),SLOT(addButton()));
+ connect(addButton,TQT_SIGNAL(clicked()),TQT_SLOT(addButton()));
- QPushButton *removeButton = new QPushButton(i18n("Remove Button"),topFrame);
+ TQPushButton *removeButton = new TQPushButton(i18n("Remove Button"),topFrame);
selectionLayout->addWidget(removeButton);
- connect(removeButton,SIGNAL(clicked()),SLOT(removeButton()));
+ connect(removeButton,TQT_SIGNAL(clicked()),TQT_SLOT(removeButton()));
mMessageEdit = new KTextEdit(topFrame);
topLayout->addWidget(mMessageEdit,1);
@@ -51,7 +51,7 @@ void MessageEditor::updateConfig()
mSelectionCombo->clear();
- QMap<QString,QString>::ConstIterator it;
+ TQMap<TQString,TQString>::ConstIterator it;
for(it = mMessageButtons.begin();it != mMessageButtons.end();++it) {
mSelectionCombo->insertItem(it.key());
}
@@ -61,9 +61,9 @@ void MessageEditor::updateConfig()
void MessageEditor::addButton()
{
- QString txt;
+ TQString txt;
txt = KInputDialog::getText(i18n("Add Message Button"),
- i18n("Enter button name:"), QString::null,
+ i18n("Enter button name:"), TQString::null,
NULL, this );
if ( !txt.isNull() ) {
diff --git a/kbugbuster/gui/messageeditor.h b/kbugbuster/gui/messageeditor.h
index e32e8cec..57855edf 100644
--- a/kbugbuster/gui/messageeditor.h
+++ b/kbugbuster/gui/messageeditor.h
@@ -9,7 +9,7 @@ class KTextEdit;
class MessageEditor : public KDialogBase {
Q_OBJECT
public:
- MessageEditor( QWidget *parent );
+ MessageEditor( TQWidget *parent );
protected slots:
void slotOk();
@@ -23,11 +23,11 @@ class MessageEditor : public KDialogBase {
void updateConfig();
private:
- QComboBox *mSelectionCombo;
+ TQComboBox *mSelectionCombo;
KTextEdit *mMessageEdit;
- QString mCurrentButton;
- QMap <QString,QString> mMessageButtons;
+ TQString mCurrentButton;
+ TQMap <TQString,TQString> mMessageButtons;
};
#endif
diff --git a/kbugbuster/gui/msginputdialog.cpp b/kbugbuster/gui/msginputdialog.cpp
index a3fc39c7..8d12cc35 100644
--- a/kbugbuster/gui/msginputdialog.cpp
+++ b/kbugbuster/gui/msginputdialog.cpp
@@ -2,13 +2,13 @@
// (c) 2001, Cornelius Schumacher
#include <ktextedit.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <kdebug.h>
-#include <qcombobox.h>
-#include <qsplitter.h>
-#include <qlabel.h>
+#include <tqcombobox.h>
+#include <tqsplitter.h>
+#include <tqlabel.h>
#include "messageeditor.h"
#include "kbbprefs.h"
@@ -19,9 +19,9 @@
#include "msginputdialog.moc"
MsgInputDialog::MsgInputDialog(MsgInputDialog::MessageType type, const Bug &bug,
- const Package &package, const QString &quotedMsg,
- QWidget *parent)
- : KDialogBase(Plain,QString::null,User1|User2|Ok|Cancel,Ok,parent,0,false,
+ const Package &package, const TQString &quotedMsg,
+ TQWidget *parent)
+ : KDialogBase(Plain,TQString::null,User1|User2|Ok|Cancel,Ok,parent,0,false,
true,KStdGuiItem::clear(),i18n( "&Edit Presets..." )),
mBug( bug ),
mPackage( package ),
@@ -41,32 +41,32 @@ MsgInputDialog::MsgInputDialog(MsgInputDialog::MessageType type, const Bug &bug,
break;
}
- QFrame *topFrame = plainPage();
- ( new QHBoxLayout( topFrame ) )->setAutoAdd( true );
+ TQFrame *topFrame = plainPage();
+ ( new TQHBoxLayout( topFrame ) )->setAutoAdd( true );
- mSplitter = new QSplitter( QSplitter::Horizontal, topFrame );
+ mSplitter = new TQSplitter( TQSplitter::Horizontal, topFrame );
- QWidget *w = new QWidget( mSplitter );
- ( new QVBoxLayout( w, spacingHint(), -1 ) )->setAutoAdd( true );
+ TQWidget *w = new TQWidget( mSplitter );
+ ( new TQVBoxLayout( w, spacingHint(), -1 ) )->setAutoAdd( true );
if ( mType == Reply ) {
- QWidget *r = new QWidget( w );
- QHBoxLayout* rlayout = new QHBoxLayout( r );
+ TQWidget *r = new TQWidget( w );
+ TQHBoxLayout* rlayout = new TQHBoxLayout( r );
- QLabel *rlabel = new QLabel( i18n("&Recipient:"),r );
- QFont f = r->font();
+ TQLabel *rlabel = new TQLabel( i18n("&Recipient:"),r );
+ TQFont f = r->font();
f.setBold( true );
r->setFont( f );
rlayout->add( rlabel );
- mRecipient = new QComboBox( r );
+ mRecipient = new TQComboBox( r );
mRecipient->insertItem( i18n("Normal (bugs.kde.org & Maintainer & kde-bugs-dist)"), BugCommand::Normal );
mRecipient->insertItem( i18n("Maintonly (bugs.kde.org & Maintainer)"), BugCommand::Maintonly );
mRecipient->insertItem( i18n("Quiet (bugs.kde.org only)"), BugCommand::Quiet );
rlabel->setBuddy( mRecipient );
rlayout->add( mRecipient );
- QSpacerItem *rspacer= new QSpacerItem( 1,1,QSizePolicy::Expanding );
+ TQSpacerItem *rspacer= new TQSpacerItem( 1,1,TQSizePolicy::Expanding );
rlayout->addItem( rspacer );
// Reply currently only replies to the bug tracking system
@@ -74,30 +74,30 @@ MsgInputDialog::MsgInputDialog(MsgInputDialog::MessageType type, const Bug &bug,
}
- QLabel *l = new QLabel( i18n( "&Message" ), w );
- QFont f = l->font();
+ TQLabel *l = new TQLabel( i18n( "&Message" ), w );
+ TQFont f = l->font();
f.setBold( true );
l->setFont( f );
mMessageEdit = new KTextEdit( w );
mMessageEdit->setMinimumWidth( mMessageEdit->fontMetrics().width('x') * 72 );
- mMessageEdit->setWordWrap( QTextEdit::FixedColumnWidth );
+ mMessageEdit->setWordWrap( TQTextEdit::FixedColumnWidth );
mMessageEdit->setWrapColumnOrWidth( 72 );
l->setBuddy( mMessageEdit );
- w = new QWidget( mSplitter );
- ( new QVBoxLayout( w, spacingHint(), -1 ) )->setAutoAdd( true );
- l = new QLabel( i18n( "&Preset Messages" ), w );
+ w = new TQWidget( mSplitter );
+ ( new TQVBoxLayout( w, spacingHint(), -1 ) )->setAutoAdd( true );
+ l = new TQLabel( i18n( "&Preset Messages" ), w );
l->setFont( f );
mPresets = new KListBox( w );
updatePresets();
l->setBuddy( mPresets );
- connect( mPresets, SIGNAL( executed( QListBoxItem* ) ),
- SLOT( slotPresetSelected( QListBoxItem * ) ) );
- connect( this, SIGNAL( user2Clicked() ), SLOT( editPresets() ) );
- connect( this, SIGNAL( user1Clicked() ), SLOT( clearMessage() ) );
+ connect( mPresets, TQT_SIGNAL( executed( TQListBoxItem* ) ),
+ TQT_SLOT( slotPresetSelected( TQListBoxItem * ) ) );
+ connect( this, TQT_SIGNAL( user2Clicked() ), TQT_SLOT( editPresets() ) );
+ connect( this, TQT_SIGNAL( user1Clicked() ), TQT_SLOT( clearMessage() ) );
mMessageEdit->setFocus();
if ( !quotedMsg.isEmpty() )
@@ -116,7 +116,7 @@ void MsgInputDialog::readConfig()
{
resize( KBBPrefs::instance()->mMsgDlgWidth,
KBBPrefs::instance()->mMsgDlgHeight );
- QValueList<int> sizes = KBBPrefs::instance()->mMsgDlgSplitter;
+ TQValueList<int> sizes = KBBPrefs::instance()->mMsgDlgSplitter;
mSplitter->setSizes( sizes );
}
@@ -131,15 +131,15 @@ void MsgInputDialog::updatePresets()
{
mPresets->clear();
- QMap<QString,QString> messageButtons = KBBPrefs::instance()->mMessageButtons;
+ TQMap<TQString,TQString> messageButtons = KBBPrefs::instance()->mMessageButtons;
int id = 0;
- QMap<QString,QString>::ConstIterator it;
+ TQMap<TQString,TQString>::ConstIterator it;
for( it = messageButtons.begin(); it != messageButtons.end(); ++it )
mPresets->insertItem( it.key(), id );
}
-QString MsgInputDialog::message() const
+TQString MsgInputDialog::message() const
{
return mMessageEdit->text();
}
@@ -153,7 +153,7 @@ void MsgInputDialog::editPresets()
updatePresets();
}
-void MsgInputDialog::slotPresetSelected( QListBoxItem *lbi )
+void MsgInputDialog::slotPresetSelected( TQListBoxItem *lbi )
{
mMessageEdit->setText( KBBPrefs::instance()->mMessageButtons[ lbi->text() ] );
}
@@ -195,18 +195,18 @@ void MsgInputDialog::slotCancel()
delete this;
}
-void MsgInputDialog::insertQuotedMessage( const QString &msg )
+void MsgInputDialog::insertQuotedMessage( const TQString &msg )
{
- Q_ASSERT( mMessageEdit->wordWrap() == QTextEdit::FixedColumnWidth );
+ Q_ASSERT( mMessageEdit->wordWrap() == TQTextEdit::FixedColumnWidth );
- const QString quotationMarker = "> ";
+ const TQString quotationMarker = "> ";
const unsigned int wrapColumn = mMessageEdit->wrapColumnOrWidth();
// ### Needs something more sophisticated than simplifyWhiteSpace to
// handle quoting multiple paragraphs properly.
- QString line = msg.simplifyWhiteSpace();
+ TQString line = msg.simplifyWhiteSpace();
- QString quotedMsg;
+ TQString quotedMsg;
while ( line.length() + quotationMarker.length() + 1 > wrapColumn ) {
int pos = wrapColumn - quotationMarker.length() - 1;
while ( pos > 0 && !line[ pos ].isSpace() )
diff --git a/kbugbuster/gui/msginputdialog.h b/kbugbuster/gui/msginputdialog.h
index 9de767e3..809ff0d2 100644
--- a/kbugbuster/gui/msginputdialog.h
+++ b/kbugbuster/gui/msginputdialog.h
@@ -17,10 +17,10 @@ class MsgInputDialog : public KDialogBase
enum MessageType{ Close, Reply, ReplyPrivate };
MsgInputDialog( MessageType, const Bug &, const Package &,
- const QString &, QWidget *parent=0);
+ const TQString &, TQWidget *parent=0);
virtual ~MsgInputDialog();
- QString message() const;
+ TQString message() const;
protected slots:
void slotOk();
@@ -29,7 +29,7 @@ class MsgInputDialog : public KDialogBase
private slots:
void editPresets();
void updatePresets();
- void slotPresetSelected( QListBoxItem * );
+ void slotPresetSelected( TQListBoxItem * );
void clearMessage();
void queueCommand();
@@ -40,11 +40,11 @@ class MsgInputDialog : public KDialogBase
void readConfig();
void writeConfig();
- void insertQuotedMessage( const QString &quotedMsg );
+ void insertQuotedMessage( const TQString &quotedMsg );
- QComboBox *mRecipient;
+ TQComboBox *mRecipient;
KTextEdit *mMessageEdit;
- QSplitter *mSplitter;
+ TQSplitter *mSplitter;
KListBox *mPresets;
Bug mBug;
diff --git a/kbugbuster/gui/packagelvi.cpp b/kbugbuster/gui/packagelvi.cpp
index 7fe7cfe6..6374fe29 100644
--- a/kbugbuster/gui/packagelvi.cpp
+++ b/kbugbuster/gui/packagelvi.cpp
@@ -1,5 +1,5 @@
/*
- packagelvi.cpp - Custom QListViewItem that holds a Package object
+ packagelvi.cpp - Custom TQListViewItem that holds a Package object
copyright : (c) 2001 by Martijn Klingens
email : klingens@kde.org
@@ -16,15 +16,15 @@
#include "packagelvi.h"
-PackageLVI::PackageLVI( QListView *parent , const Package &pkg, const QString &component )
-: QListViewItem( parent, pkg.name(), pkg.description() )
+PackageLVI::PackageLVI( TQListView *parent , const Package &pkg, const TQString &component )
+: TQListViewItem( parent, pkg.name(), pkg.description() )
{
m_package = pkg;
m_component = component;
}
-PackageLVI::PackageLVI( QListViewItem *parent , const Package &pkg, const QString &component )
-: QListViewItem( parent, component )
+PackageLVI::PackageLVI( TQListViewItem *parent , const Package &pkg, const TQString &component )
+: TQListViewItem( parent, component )
{
m_package = pkg;
m_component = component;
diff --git a/kbugbuster/gui/packagelvi.h b/kbugbuster/gui/packagelvi.h
index 32f48642..5582e06e 100644
--- a/kbugbuster/gui/packagelvi.h
+++ b/kbugbuster/gui/packagelvi.h
@@ -1,5 +1,5 @@
/*
- packagelvi.h - Custom QListViewItem that holds a Package object
+ packagelvi.h - Custom TQListViewItem that holds a Package object
copyright : (c) 2001 by Martijn Klingens
email : klingens@kde.org
@@ -17,7 +17,7 @@
#ifndef PACKAGELVI_H
#define PACKAGELVI_H
-#include <qlistview.h>
+#include <tqlistview.h>
#include "package.h"
@@ -28,21 +28,21 @@ class PackageLVI : public QListViewItem
{
public:
// Top-level package
- PackageLVI( QListView *parent , const Package &pkg, const QString &component );
+ PackageLVI( TQListView *parent , const Package &pkg, const TQString &component );
// Child component
- PackageLVI( QListViewItem *parent , const Package &pkg, const QString &component );
+ PackageLVI( TQListViewItem *parent , const Package &pkg, const TQString &component );
~PackageLVI();
Package& package() { return m_package; }
void setPackage( const Package &pkg ) { m_package = pkg; }
- QString component() { return m_component; }
- void setComponent( const QString &component ) { m_component = component; }
+ TQString component() { return m_component; }
+ void setComponent( const TQString &component ) { m_component = component; }
private:
Package m_package;
- QString m_component;
+ TQString m_component;
};
#endif // PACKAGELVI_H
diff --git a/kbugbuster/gui/packageselectdialog.cpp b/kbugbuster/gui/packageselectdialog.cpp
index 7b791e9d..31dfdcef 100644
--- a/kbugbuster/gui/packageselectdialog.cpp
+++ b/kbugbuster/gui/packageselectdialog.cpp
@@ -1,6 +1,6 @@
-#include <qlistview.h>
-#include <qlayout.h>
-#include <qheader.h>
+#include <tqlistview.h>
+#include <tqlayout.h>
+#include <tqheader.h>
#include <kdebug.h>
#include <kcompletion.h>
@@ -14,10 +14,10 @@
#include "packageselectdialog.h"
#include "packageselectdialog.moc"
-PackageListView::PackageListView( QWidget *parent ) :
- QListView( parent )
+PackageListView::PackageListView( TQWidget *parent ) :
+ TQListView( parent )
{
- setFocusPolicy( QWidget::StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
}
void PackageListView::resetTyped()
@@ -25,41 +25,41 @@ void PackageListView::resetTyped()
mTyped = "";
}
-void PackageListView::keyPressEvent( QKeyEvent *e )
+void PackageListView::keyPressEvent( TQKeyEvent *e )
{
// Disable listview text completion for now
- QListView::keyPressEvent( e );
+ TQListView::keyPressEvent( e );
return;
int k = e->key();
if ( k == Key_Return || k == Key_Escape ) e->ignore();
- QString key = e->text();
+ TQString key = e->text();
mTyped.append(key);
emit typed( mTyped );
}
-PackageSelectDialog::PackageSelectDialog(QWidget *parent,const char *name) :
+PackageSelectDialog::PackageSelectDialog(TQWidget *parent,const char *name) :
KDialogBase( parent, name, true, i18n("Select Product"), Ok|Cancel )
{
- QWidget *topWidget = new QWidget( this );
+ TQWidget *topWidget = new TQWidget( this );
setMainWidget( topWidget );
- QBoxLayout *topLayout = new QVBoxLayout( topWidget );
- QSplitter *topSplitter = new QSplitter( QSplitter::Vertical, topWidget );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topWidget );
+ TQSplitter *topSplitter = new TQSplitter( TQSplitter::Vertical, topWidget );
topSplitter->setOpaqueResize( true );
topLayout->addWidget( topSplitter );
- mRecentList = new QListView( topSplitter );
+ mRecentList = new TQListView( topSplitter );
mRecentList->addColumn( i18n("Recent") );
mRecentList->resize( mRecentList->width(), mRecentList->fontMetrics().height() *
KBBPrefs::instance()->mRecentPackagesCount );
- connect( mRecentList, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint &, int) ),
- SLOT( recentSelected( int, QListViewItem * ) ) );
- connect( mRecentList, SIGNAL( doubleClicked( QListViewItem * ) ),
- SLOT( slotOk() ) );
+ connect( mRecentList, TQT_SIGNAL( mouseButtonPressed( int, TQListViewItem *, const TQPoint &, int) ),
+ TQT_SLOT( recentSelected( int, TQListViewItem * ) ) );
+ connect( mRecentList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ),
+ TQT_SLOT( slotOk() ) );
mCompletion = new KCompletion;
mCompletion->setCompletionMode( KGlobalSettings::CompletionAuto );
@@ -69,21 +69,21 @@ PackageSelectDialog::PackageSelectDialog(QWidget *parent,const char *name) :
mCompleteList->addColumn( i18n("Description") );
mCompleteList->setRootIsDecorated(true);
mCompleteList->setAllColumnsShowFocus( true );
- connect( mCompleteList, SIGNAL( typed( const QString & ) ),
- SLOT( completeTyped( const QString & ) ) );
+ connect( mCompleteList, TQT_SIGNAL( typed( const TQString & ) ),
+ TQT_SLOT( completeTyped( const TQString & ) ) );
- connect( mCompleteList, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint &, int) ),
- SLOT( completeSelected( int, QListViewItem * ) ) );
- connect( mCompleteList, SIGNAL( doubleClicked( QListViewItem * ) ),
- SLOT( slotOk() ) );
+ connect( mCompleteList, TQT_SIGNAL( mouseButtonPressed( int, TQListViewItem *, const TQPoint &, int) ),
+ TQT_SLOT( completeSelected( int, TQListViewItem * ) ) );
+ connect( mCompleteList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ),
+ TQT_SLOT( slotOk() ) );
mPackageEdit = new KLineEdit( topWidget );
mPackageEdit->setFocus();
topLayout->addWidget( mPackageEdit );
- connect( mPackageEdit, SIGNAL( textChanged( const QString & ) ),
- SLOT( completeTyped( const QString & ) ) );
+ connect( mPackageEdit, TQT_SIGNAL( textChanged( const TQString & ) ),
+ TQT_SLOT( completeTyped( const TQString & ) ) );
enableButtonOK( !mPackageEdit->text().isEmpty() );
}
@@ -92,12 +92,12 @@ PackageSelectDialog::~PackageSelectDialog()
delete mCompletion;
}
-void PackageSelectDialog::setRecentPackages( const QStringList &recent )
+void PackageSelectDialog::setRecentPackages( const TQStringList &recent )
{
mRecentList->clear();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for( it = recent.begin(); it != recent.end(); ++it ) {
- new QListViewItem( mRecentList, *it );
+ new TQListViewItem( mRecentList, *it );
}
}
@@ -108,13 +108,13 @@ void PackageSelectDialog::setPackages( const Package::List &pkgs )
mCompletionDict.clear();
Package::List::ConstIterator it;
for( it = pkgs.begin(); it != pkgs.end(); ++it ) {
- PackageLVI *item = new PackageLVI( mCompleteList, (*it), QString::null );
- QStringList components = (*it).components();
+ PackageLVI *item = new PackageLVI( mCompleteList, (*it), TQString::null );
+ TQStringList components = (*it).components();
if (components.count() > 1) {
- for( QStringList::ConstIterator cit = components.begin(); cit != components.end(); ++cit ) {
+ for( TQStringList::ConstIterator cit = components.begin(); cit != components.end(); ++cit ) {
PackageLVI *component = new PackageLVI( item, (*it), (*cit) );
- QString completionName = (*it).name() + "/" + (*cit);
+ TQString completionName = (*it).name() + "/" + (*cit);
mCompletion->addItem( completionName );
mCompletionDict.insert( completionName, component );
@@ -126,7 +126,7 @@ void PackageSelectDialog::setPackages( const Package::List &pkgs )
}
}
-void PackageSelectDialog::recentSelected( int, QListViewItem *item )
+void PackageSelectDialog::recentSelected( int, TQListViewItem *item )
{
kdDebug() << "PackageSelectDialog::recentSelected()" << endl;
if ( item ) {
@@ -139,7 +139,7 @@ void PackageSelectDialog::recentSelected( int, QListViewItem *item )
}
}
-void PackageSelectDialog::completeSelected( int, QListViewItem *item )
+void PackageSelectDialog::completeSelected( int, TQListViewItem *item )
{
PackageLVI *lvi = dynamic_cast<PackageLVI*>(item);
@@ -161,14 +161,14 @@ void PackageSelectDialog::slotOk()
mSelectedPackage = item->package();
mSelectedComponent = item->component();
- QString recent_key;
+ TQString recent_key;
if ( item->component().isEmpty() )
recent_key = item->package().name();
else
recent_key = item->package().name() + "/" + item->component();
BugServer *server = BugSystem::self()->server();
- QStringList recent = server->serverConfig().recentPackages();
+ TQStringList recent = server->serverConfig().recentPackages();
if( !recent.contains( recent_key ) ) {
recent.prepend( recent_key );
if ( int( recent.count() ) > KBBPrefs::instance()->mRecentPackagesCount ) {
@@ -178,9 +178,9 @@ void PackageSelectDialog::slotOk()
server->serverConfig().setRecentPackages( recent );
}
} else {
- QListViewItem *recentItem = mRecentList->selectedItem();
+ TQListViewItem *recentItem = mRecentList->selectedItem();
if ( recentItem ) {
- QStringList tokens = QStringList::split( '/', recentItem->text( 0 ) );
+ TQStringList tokens = TQStringList::split( '/', recentItem->text( 0 ) );
mSelectedPackage = BugSystem::self()->package( tokens[0] );
mSelectedComponent = tokens[1];
}
@@ -194,15 +194,15 @@ Package PackageSelectDialog::selectedPackage()
return mSelectedPackage;
}
-QString PackageSelectDialog::selectedComponent()
+TQString PackageSelectDialog::selectedComponent()
{
return mSelectedComponent;
}
-void PackageSelectDialog::completeTyped( const QString &typed )
+void PackageSelectDialog::completeTyped( const TQString &typed )
{
kdDebug() << "completeTyped: " << typed << endl;
- QString completed = mCompletion->makeCompletion( typed );
+ TQString completed = mCompletion->makeCompletion( typed );
kdDebug() << "completed: " << completed << endl;
if ( !completed.isEmpty() ) {
mCompleteList->setSelected( mCompletionDict[ completed ], true );
diff --git a/kbugbuster/gui/packageselectdialog.h b/kbugbuster/gui/packageselectdialog.h
index 1fe596aa..471fe8b5 100644
--- a/kbugbuster/gui/packageselectdialog.h
+++ b/kbugbuster/gui/packageselectdialog.h
@@ -1,7 +1,7 @@
#ifndef PACKAGESELECTDIALOG_H
#define PACKAGESELECTDIALOG_H
-#include <qdict.h>
+#include <tqdict.h>
#include <kdialogbase.h>
@@ -14,51 +14,51 @@ class PackageListView : public QListView
{
Q_OBJECT
public:
- PackageListView( QWidget *parent );
+ PackageListView( TQWidget *parent );
void resetTyped();
signals:
- void typed( const QString & );
+ void typed( const TQString & );
protected:
- void keyPressEvent( QKeyEvent *e );
+ void keyPressEvent( TQKeyEvent *e );
private:
- QString mTyped;
+ TQString mTyped;
};
class PackageSelectDialog : public KDialogBase
{
Q_OBJECT
public:
- PackageSelectDialog(QWidget *parent=0,const char *name=0);
+ PackageSelectDialog(TQWidget *parent=0,const char *name=0);
~PackageSelectDialog();
- void setRecentPackages( const QStringList & );
+ void setRecentPackages( const TQStringList & );
void setPackages( const Package::List &pkgs );
Package selectedPackage();
- QString selectedComponent();
+ TQString selectedComponent();
protected slots:
void slotOk();
private slots:
- void recentSelected( int, QListViewItem * );
- void completeSelected( int, QListViewItem * );
- void completeTyped( const QString & );
+ void recentSelected( int, TQListViewItem * );
+ void completeSelected( int, TQListViewItem * );
+ void completeTyped( const TQString & );
private:
Package::List mPackages;
Package mSelectedPackage;
- QString mSelectedComponent;
+ TQString mSelectedComponent;
- QListView *mRecentList;
+ TQListView *mRecentList;
PackageListView *mCompleteList;
KLineEdit *mPackageEdit;
KCompletion *mCompletion;
- QDict<QListViewItem> mCompletionDict;
+ TQDict<TQListViewItem> mCompletionDict;
};
#endif
diff --git a/kbugbuster/gui/preferencesdialog.cpp b/kbugbuster/gui/preferencesdialog.cpp
index 9cafff28..2af4879a 100644
--- a/kbugbuster/gui/preferencesdialog.cpp
+++ b/kbugbuster/gui/preferencesdialog.cpp
@@ -1,12 +1,12 @@
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qgroupbox.h>
-#include <qbuttongroup.h>
-#include <qlistview.h>
-#include <qhbox.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqgroupbox.h>
+#include <tqbuttongroup.h>
+#include <tqlistview.h>
+#include <tqhbox.h>
#include <knuminput.h>
#include <kurl.h>
@@ -27,8 +27,8 @@
class ServerItem : public QListViewItem
{
public:
- ServerItem( QListView *listView, const BugServerConfig &cfg )
- : QListViewItem( listView )
+ ServerItem( TQListView *listView, const BugServerConfig &cfg )
+ : TQListViewItem( listView )
{
setServerConfig( cfg );
}
@@ -51,7 +51,7 @@ class ServerItem : public QListViewItem
class ServerListView : public QListView
{
public:
- ServerListView( QWidget *parent ) : QListView( parent )
+ ServerListView( TQWidget *parent ) : TQListView( parent )
{
addColumn( i18n("Name") );
addColumn( i18n("Base URL") );
@@ -60,7 +60,7 @@ class ServerListView : public QListView
}
};
-PreferencesDialog::PreferencesDialog( QWidget* parent, const char* name )
+PreferencesDialog::PreferencesDialog( TQWidget* parent, const char* name )
: KDialogBase ( IconList, i18n("Preferences"), Ok|Apply|Cancel, Ok,
parent, name, false, true )
{
@@ -76,67 +76,67 @@ PreferencesDialog::~PreferencesDialog()
void PreferencesDialog::setupServerPage()
{
- QFrame *topFrame = addPage( i18n("Servers"), 0,
+ TQFrame *topFrame = addPage( i18n("Servers"), 0,
DesktopIcon( "gohome", KIcon::SizeMedium ) );
- QBoxLayout *layout = new QVBoxLayout( topFrame );
+ TQBoxLayout *layout = new TQVBoxLayout( topFrame );
layout->setSpacing( spacingHint() );
mServerList = new ServerListView( topFrame );
layout->addWidget( mServerList );
- QHBox *buttonBox = new QHBox( topFrame );
+ TQHBox *buttonBox = new TQHBox( topFrame );
buttonBox->setSpacing( spacingHint() );
layout->addWidget( buttonBox );
- QPushButton *addButton = new QPushButton( i18n("Add Server..."), buttonBox );
- connect( addButton, SIGNAL( clicked() ), SLOT( addServer() ) );
+ TQPushButton *addButton = new TQPushButton( i18n("Add Server..."), buttonBox );
+ connect( addButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addServer() ) );
- QPushButton *editButton = new QPushButton( i18n("Edit Server..."), buttonBox );
- connect( editButton, SIGNAL( clicked() ), SLOT( editServer() ) );
+ TQPushButton *editButton = new TQPushButton( i18n("Edit Server..."), buttonBox );
+ connect( editButton, TQT_SIGNAL( clicked() ), TQT_SLOT( editServer() ) );
- QPushButton *removeButton = new QPushButton( i18n("Delete Server"), buttonBox );
- connect( removeButton, SIGNAL( clicked() ), SLOT( removeServer() ) );
+ TQPushButton *removeButton = new TQPushButton( i18n("Delete Server"), buttonBox );
+ connect( removeButton, TQT_SIGNAL( clicked() ), TQT_SLOT( removeServer() ) );
- QPushButton *button = new QPushButton( i18n("Select Server From List..."),
+ TQPushButton *button = new TQPushButton( i18n("Select Server From List..."),
topFrame );
layout->addWidget( button );
- connect( button, SIGNAL( clicked() ), SLOT( selectServer() ) );
- connect( mServerList, SIGNAL( doubleClicked ( QListViewItem *)), this, SLOT( editServer()));
+ connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( selectServer() ) );
+ connect( mServerList, TQT_SIGNAL( doubleClicked ( TQListViewItem *)), this, TQT_SLOT( editServer()));
}
void PreferencesDialog::setupAdvancedPage()
{
- QFrame *topFrame = addPage( i18n("Advanced"), 0,
+ TQFrame *topFrame = addPage( i18n("Advanced"), 0,
DesktopIcon( "misc", KIcon::SizeMedium ) );
- QBoxLayout *layout = new QVBoxLayout( topFrame );
+ TQBoxLayout *layout = new TQVBoxLayout( topFrame );
layout->setSpacing( spacingHint() );
- QButtonGroup *mailGroup = new QButtonGroup( 1, Horizontal,
+ TQButtonGroup *mailGroup = new TQButtonGroup( 1, Horizontal,
i18n( "Mail Client" ), topFrame );
layout->addWidget( mailGroup );
- mKMailButton = new QRadioButton( i18n( "&KMail" ), mailGroup );
- mDirectButton = new QRadioButton( i18n( "D&irect" ), mailGroup );
- mSendmailButton = new QRadioButton( i18n( "&Sendmail" ), mailGroup );
+ mKMailButton = new TQRadioButton( i18n( "&KMail" ), mailGroup );
+ mDirectButton = new TQRadioButton( i18n( "D&irect" ), mailGroup );
+ mSendmailButton = new TQRadioButton( i18n( "&Sendmail" ), mailGroup );
- mShowClosedCheckBox = new QCheckBox( i18n( "Show closed bugs" ), topFrame );
+ mShowClosedCheckBox = new TQCheckBox( i18n( "Show closed bugs" ), topFrame );
layout->addWidget( mShowClosedCheckBox );
- mShowWishesCheckBox = new QCheckBox( i18n( "Show wishes" ), topFrame );
+ mShowWishesCheckBox = new TQCheckBox( i18n( "Show wishes" ), topFrame );
layout->addWidget( mShowWishesCheckBox );
- mShowVotedCheckBox = new QCheckBox( i18n( "Show bugs with number of votes greater than:" ), topFrame );
+ mShowVotedCheckBox = new TQCheckBox( i18n( "Show bugs with number of votes greater than:" ), topFrame );
layout->addWidget( mShowVotedCheckBox );
mMinVotesInput = new KIntNumInput( topFrame );
mMinVotesInput->setMinValue( 0 );
- connect( mShowVotedCheckBox, SIGNAL(toggled(bool)),
- mMinVotesInput, SLOT(setEnabled(bool)) );
+ connect( mShowVotedCheckBox, TQT_SIGNAL(toggled(bool)),
+ mMinVotesInput, TQT_SLOT(setEnabled(bool)) );
layout->addWidget( mMinVotesInput );
- mSendBccCheckBox = new QCheckBox( i18n( "Send BCC to myself" ), topFrame );
+ mSendBccCheckBox = new TQCheckBox( i18n( "Send BCC to myself" ), topFrame );
layout->addWidget( mSendBccCheckBox );
}
@@ -166,7 +166,7 @@ void PreferencesDialog::addServer()
{
ServerConfigDialog *dlg = new ServerConfigDialog( this );
int result = dlg->exec();
- if ( result == QDialog::Accepted ) {
+ if ( result == TQDialog::Accepted ) {
new ServerItem( mServerList, dlg->serverConfig() );
}
}
@@ -180,14 +180,14 @@ void PreferencesDialog::editServer()
dlg->setServerConfig( item->serverConfig() );
int result = dlg->exec();
- if ( result == QDialog::Accepted ) {
+ if ( result == TQDialog::Accepted ) {
item->setServerConfig( dlg->serverConfig() );
}
}
void PreferencesDialog::removeServer()
{
- QListViewItem *item = mServerList->currentItem();
+ TQListViewItem *item = mServerList->currentItem();
if ( !item ) return;
delete item;
@@ -198,7 +198,7 @@ void PreferencesDialog::selectServer()
SelectServerDlg *dlg =new SelectServerDlg( this, "Select Server" );
int result = dlg->exec();
- if ( result == QDialog::Accepted ) {
+ if ( result == TQDialog::Accepted ) {
ServerItem *item = dlg->serverSelected();
if ( item ) {
new ServerItem( mServerList, item->serverConfig() );
@@ -208,9 +208,9 @@ void PreferencesDialog::selectServer()
}
void PreferencesDialog::createServerItem( ServerListView *listView,
- const QString &name,
- const QString &url,
- const QString &version )
+ const TQString &name,
+ const TQString &url,
+ const TQString &version )
{
BugServerConfig cfg( name, KURL( url ) );
cfg.setBugzillaVersion( version );
@@ -239,8 +239,8 @@ void PreferencesDialog::readConfig()
mSendBccCheckBox->setChecked( KBBPrefs::instance()->mSendBCC );
mServerList->clear();
- QValueList<BugServer *> servers = BugSystem::self()->serverList();
- QValueList<BugServer *>::ConstIterator it;
+ TQValueList<BugServer *> servers = BugSystem::self()->serverList();
+ TQValueList<BugServer *>::ConstIterator it;
for( it = servers.begin(); it != servers.end(); ++it ) {
new ServerItem( mServerList, (*it)->serverConfig() );
}
@@ -262,8 +262,8 @@ void PreferencesDialog::writeConfig()
KBBPrefs::instance()->mSendBCC = mSendBccCheckBox->isChecked();
KBBPrefs::instance()->writeConfig();
- QValueList<BugServerConfig> servers;
- QListViewItem *item;
+ TQValueList<BugServerConfig> servers;
+ TQListViewItem *item;
for ( item = mServerList->firstChild(); item;
item = item->nextSibling() ) {
servers.append( static_cast<ServerItem *>( item )->serverConfig() );
@@ -289,7 +289,7 @@ SelectServerDlg::SelectServerDlg(PreferencesDialog *parent, const char */*name*/
parent->createServerItem( list, "Ximian", "http://bugzilla.ximian.com", "2.10" );
parent->createServerItem( list, "RedHat", "http://bugzilla.redhat.com/bugzilla/", "2.17.1" );
parent->createServerItem( list, "Mandriva", "http://qa.mandriva.com/", "2.17.4" );
- connect( list, SIGNAL( doubleClicked ( QListViewItem *)), this, SLOT( slotDoubleClicked( QListViewItem *)));
+ connect( list, TQT_SIGNAL( doubleClicked ( TQListViewItem *)), this, TQT_SLOT( slotDoubleClicked( TQListViewItem *)));
}
@@ -298,7 +298,7 @@ ServerItem *SelectServerDlg::serverSelected()
return static_cast<ServerItem *>( list->currentItem() );
}
-void SelectServerDlg::slotDoubleClicked( QListViewItem *)
+void SelectServerDlg::slotDoubleClicked( TQListViewItem *)
{
accept();
}
diff --git a/kbugbuster/gui/preferencesdialog.h b/kbugbuster/gui/preferencesdialog.h
index 29c72eaf..9dd0dc05 100644
--- a/kbugbuster/gui/preferencesdialog.h
+++ b/kbugbuster/gui/preferencesdialog.h
@@ -14,11 +14,11 @@ class PreferencesDialog : public KDialogBase
{
Q_OBJECT
public:
- PreferencesDialog( QWidget* parent = 0, const char* name = 0 );
+ PreferencesDialog( TQWidget* parent = 0, const char* name = 0 );
~PreferencesDialog();
- void createServerItem( ServerListView *listView, const QString &name,
- const QString &url, const QString &version );
+ void createServerItem( ServerListView *listView, const TQString &name,
+ const TQString &url, const TQString &version );
public:
void readConfig();
@@ -45,15 +45,15 @@ class PreferencesDialog : public KDialogBase
private:
- QCheckBox *mShowClosedCheckBox;
- QCheckBox *mShowWishesCheckBox;
- QCheckBox *mShowVotedCheckBox;
- QCheckBox *mSendBccCheckBox;
+ TQCheckBox *mShowClosedCheckBox;
+ TQCheckBox *mShowWishesCheckBox;
+ TQCheckBox *mShowVotedCheckBox;
+ TQCheckBox *mSendBccCheckBox;
KIntNumInput *mMinVotesInput;
- QRadioButton *mKMailButton;
- QRadioButton *mDirectButton;
- QRadioButton *mSendmailButton;
- QListView *mServerList;
+ TQRadioButton *mKMailButton;
+ TQRadioButton *mDirectButton;
+ TQRadioButton *mSendmailButton;
+ TQListView *mServerList;
};
class ServerListView;
@@ -66,7 +66,7 @@ public:
SelectServerDlg(PreferencesDialog *parent, const char */*name*/ );
ServerItem *serverSelected();
protected slots:
- void slotDoubleClicked( QListViewItem *);
+ void slotDoubleClicked( TQListViewItem *);
protected:
ServerListView *list;
diff --git a/kbugbuster/gui/serverconfigdialog.cpp b/kbugbuster/gui/serverconfigdialog.cpp
index 32c5e241..feaab83d 100644
--- a/kbugbuster/gui/serverconfigdialog.cpp
+++ b/kbugbuster/gui/serverconfigdialog.cpp
@@ -6,45 +6,45 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qlabel.h>
-#include <qvbox.h>
-#include <qcombobox.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
+#include <tqcombobox.h>
-ServerConfigDialog::ServerConfigDialog( QWidget *parent, const char *name ) :
+ServerConfigDialog::ServerConfigDialog( TQWidget *parent, const char *name ) :
KDialogBase( parent, name, true, i18n("Edit Bugzilla Server"), Ok|Cancel )
{
- QWidget *topFrame = makeMainWidget();
+ TQWidget *topFrame = makeMainWidget();
- QGridLayout *topLayout = new QGridLayout( topFrame );
+ TQGridLayout *topLayout = new TQGridLayout( topFrame );
topLayout->setSpacing( spacingHint() );
- QLabel *label;
+ TQLabel *label;
- mServerName = new QLineEdit( topFrame );
- label = new QLabel( mServerName, i18n("Name:"), topFrame );
+ mServerName = new TQLineEdit( topFrame );
+ label = new TQLabel( mServerName, i18n("Name:"), topFrame );
topLayout->addWidget( label, 0, 0 );
topLayout->addWidget( mServerName, 0, 1 );
mServerName->setFocus();
- mServerUrl = new QLineEdit( topFrame );
- label = new QLabel( mServerUrl, i18n("URL:"), topFrame );
+ mServerUrl = new TQLineEdit( topFrame );
+ label = new TQLabel( mServerUrl, i18n("URL:"), topFrame );
topLayout->addWidget( label, 1, 0 );
topLayout->addWidget( mServerUrl, 1, 1 );
- mUser = new QLineEdit( topFrame );
- label = new QLabel( mUser, i18n("User:"), topFrame );
+ mUser = new TQLineEdit( topFrame );
+ label = new TQLabel( mUser, i18n("User:"), topFrame );
topLayout->addWidget( label, 2, 0 );
topLayout->addWidget( mUser, 2, 1 );
mPassword = new KPasswordEdit( topFrame );
- label = new QLabel( mPassword, i18n("Password:"), topFrame );
+ label = new TQLabel( mPassword, i18n("Password:"), topFrame );
topLayout->addWidget( label, 3, 0 );
topLayout->addWidget( mPassword, 3, 1 );
- mVersion = new QComboBox( topFrame );
- label = new QLabel( mVersion, i18n("Bugzilla version:"), topFrame );
+ mVersion = new TQComboBox( topFrame );
+ label = new TQLabel( mVersion, i18n("Bugzilla version:"), topFrame );
topLayout->addWidget( label, 4, 0 );
topLayout->addWidget( mVersion, 4, 1 );
mVersion->insertStringList( BugServerConfig::bugzillaVersions() );
diff --git a/kbugbuster/gui/serverconfigdialog.h b/kbugbuster/gui/serverconfigdialog.h
index 5764bfdf..33d4573b 100644
--- a/kbugbuster/gui/serverconfigdialog.h
+++ b/kbugbuster/gui/serverconfigdialog.h
@@ -12,17 +12,17 @@ class ServerConfigDialog : public KDialogBase
{
Q_OBJECT
public:
- ServerConfigDialog( QWidget *parent = 0 , const char *name = 0 );
+ ServerConfigDialog( TQWidget *parent = 0 , const char *name = 0 );
void setServerConfig( const BugServerConfig & );
BugServerConfig serverConfig();
private:
- QLineEdit *mServerName;
- QLineEdit *mServerUrl;
- QLineEdit *mUser;
+ TQLineEdit *mServerName;
+ TQLineEdit *mServerUrl;
+ TQLineEdit *mUser;
KPasswordEdit *mPassword;
- QComboBox *mVersion;
+ TQComboBox *mVersion;
};
#endif
diff --git a/kbugbuster/gui/severityselectdialog.cpp b/kbugbuster/gui/severityselectdialog.cpp
index 714e6f3a..0ef4e2f7 100644
--- a/kbugbuster/gui/severityselectdialog.cpp
+++ b/kbugbuster/gui/severityselectdialog.cpp
@@ -1,6 +1,6 @@
-#include <qlayout.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
+#include <tqlayout.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
#include <kdebug.h>
@@ -10,17 +10,17 @@
#include "severityselectdialog.h"
#include "severityselectdialog.moc"
-SeveritySelectDialog::SeveritySelectDialog(QWidget *parent,const char *name) :
+SeveritySelectDialog::SeveritySelectDialog(TQWidget *parent,const char *name) :
KDialogBase( parent, name, true, i18n("Select Severity"), Ok|Cancel )
{
- mButtonGroup = new QButtonGroup( 1, Horizontal, i18n("Severity"), this );
+ mButtonGroup = new TQButtonGroup( 1, Horizontal, i18n("Severity"), this );
setMainWidget( mButtonGroup );
- QValueList<Bug::Severity> severities = Bug::severities();
- QValueList<Bug::Severity>::ConstIterator it;
+ TQValueList<Bug::Severity> severities = Bug::severities();
+ TQValueList<Bug::Severity>::ConstIterator it;
for( it = severities.begin(); it != severities.end(); ++it ) {
mButtonGroup->insert(
- new QRadioButton( Bug::severityToString( *it ), mButtonGroup ), int(*it) );
+ new TQRadioButton( Bug::severityToString( *it ), mButtonGroup ), int(*it) );
}
}
@@ -34,7 +34,7 @@ Bug::Severity SeveritySelectDialog::selectedSeverity()
return (Bug::Severity)mButtonGroup->id( mButtonGroup->selected() );
}
-QString SeveritySelectDialog::selectedSeverityAsString()
+TQString SeveritySelectDialog::selectedSeverityAsString()
{
return Bug::severityToString( selectedSeverity() );
}
diff --git a/kbugbuster/gui/severityselectdialog.h b/kbugbuster/gui/severityselectdialog.h
index 12f36fe5..150123cd 100644
--- a/kbugbuster/gui/severityselectdialog.h
+++ b/kbugbuster/gui/severityselectdialog.h
@@ -9,15 +9,15 @@ class SeveritySelectDialog : public KDialogBase
{
Q_OBJECT
public:
- SeveritySelectDialog(QWidget *parent=0,const char *name=0);
+ SeveritySelectDialog(TQWidget *parent=0,const char *name=0);
void setSeverity( Bug::Severity );
Bug::Severity selectedSeverity();
- QString selectedSeverityAsString();
+ TQString selectedSeverityAsString();
private:
- QButtonGroup *mButtonGroup;
+ TQButtonGroup *mButtonGroup;
};
#endif