summaryrefslogtreecommitdiffstats
path: root/kdebugdialog
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kdebugdialog
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdebugdialog')
-rw-r--r--kdebugdialog/kabstractdebugdialog.cpp18
-rw-r--r--kdebugdialog/kabstractdebugdialog.h4
-rw-r--r--kdebugdialog/kdebugdialog.cpp120
-rw-r--r--kdebugdialog/kdebugdialog.h64
-rw-r--r--kdebugdialog/klistdebugdialog.cpp68
-rw-r--r--kdebugdialog/klistdebugdialog.h20
-rw-r--r--kdebugdialog/main.cpp22
7 files changed, 158 insertions, 158 deletions
diff --git a/kdebugdialog/kabstractdebugdialog.cpp b/kdebugdialog/kabstractdebugdialog.cpp
index 76dca8f61..bdf267dd1 100644
--- a/kdebugdialog/kabstractdebugdialog.cpp
+++ b/kdebugdialog/kabstractdebugdialog.cpp
@@ -20,12 +20,12 @@
#include "kabstractdebugdialog.h"
#include <kconfig.h>
#include <kpushbutton.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
#include <kstdguiitem.h>
-KAbstractDebugDialog::KAbstractDebugDialog( QWidget *parent, const char *name, bool modal )
+KAbstractDebugDialog::KAbstractDebugDialog( TQWidget *parent, const char *name, bool modal )
: KDialog( parent, name, modal )
{
pConfig = new KConfig( "kdebugrc" );
@@ -36,14 +36,14 @@ KAbstractDebugDialog::~KAbstractDebugDialog()
delete pConfig;
}
-void KAbstractDebugDialog::buildButtons( QVBoxLayout * topLayout )
+void KAbstractDebugDialog::buildButtons( TQVBoxLayout * topLayout )
{
- QHBoxLayout *hbox = new QHBoxLayout( KDialog::spacingHint() );
+ TQHBoxLayout *hbox = new TQHBoxLayout( KDialog::spacingHint() );
topLayout->addLayout( hbox );
pHelpButton = new KPushButton( KStdGuiItem::help(), this );
hbox->addWidget( pHelpButton );
hbox->addStretch(10);
- QSpacerItem *spacer = new QSpacerItem(40, 0);
+ TQSpacerItem *spacer = new TQSpacerItem(40, 0);
hbox->addItem(spacer);
pOKButton = new KPushButton( KStdGuiItem::ok(), this );
hbox->addWidget( pOKButton );
@@ -64,10 +64,10 @@ void KAbstractDebugDialog::buildButtons( QVBoxLayout * topLayout )
pApplyButton->setFixedWidth( w4 );
pCancelButton->setFixedWidth( w4 );
- connect( pHelpButton, SIGNAL( clicked() ), SLOT( slotShowHelp() ) );
- connect( pOKButton, SIGNAL( clicked() ), SLOT( accept() ) );
- connect( pApplyButton, SIGNAL( clicked() ), SLOT( slotApply() ) );
- connect( pCancelButton, SIGNAL( clicked() ), SLOT( reject() ) );
+ connect( pHelpButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotShowHelp() ) );
+ connect( pOKButton, TQT_SIGNAL( clicked() ), TQT_SLOT( accept() ) );
+ connect( pApplyButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotApply() ) );
+ connect( pCancelButton, TQT_SIGNAL( clicked() ), TQT_SLOT( reject() ) );
}
void KAbstractDebugDialog::slotShowHelp()
diff --git a/kdebugdialog/kabstractdebugdialog.h b/kdebugdialog/kabstractdebugdialog.h
index d31fb53aa..84fac7380 100644
--- a/kdebugdialog/kabstractdebugdialog.h
+++ b/kdebugdialog/kabstractdebugdialog.h
@@ -30,11 +30,11 @@ class KAbstractDebugDialog : public KDialog
{
Q_OBJECT
public:
- KAbstractDebugDialog( QWidget *parent=0, const char *name=0, bool modal=true );
+ KAbstractDebugDialog( TQWidget *parent=0, const char *name=0, bool modal=true );
virtual ~KAbstractDebugDialog();
- virtual void buildButtons(QVBoxLayout * topLayout);
+ virtual void buildButtons(TQVBoxLayout * topLayout);
virtual void save() = 0;
KConfig * config() { return pConfig; }
diff --git a/kdebugdialog/kdebugdialog.cpp b/kdebugdialog/kdebugdialog.cpp
index ae0ef0eaa..2660356fc 100644
--- a/kdebugdialog/kdebugdialog.cpp
+++ b/kdebugdialog/kdebugdialog.cpp
@@ -22,13 +22,13 @@
#include "config.h"
#endif
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qgroupbox.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
#include <kdebug.h>
#include <kglobal.h>
#include <klocale.h>
@@ -40,29 +40,29 @@
#include "kdebugdialog.h"
-KDebugDialog::KDebugDialog( QStringList areaList, QWidget *parent, const char *name, bool modal )
+KDebugDialog::KDebugDialog( TQStringList areaList, TQWidget *parent, const char *name, bool modal )
: KAbstractDebugDialog( parent, name, modal )
{
setCaption(i18n("Debug Settings"));
- QVBoxLayout *topLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
if( topLayout == 0 ) { return; } // can this happen ?
- QLabel * tmpLabel = new QLabel( i18n("Debug area:"), this );
+ TQLabel * tmpLabel = new TQLabel( i18n("Debug area:"), this );
tmpLabel->setFixedHeight( fontMetrics().lineSpacing() );
topLayout->addWidget( tmpLabel );
// Build combo of debug areas
- pDebugAreas = new QComboBox( false, this );
+ pDebugAreas = new TQComboBox( false, this );
pDebugAreas->setFixedHeight( pDebugAreas->sizeHint().height() );
pDebugAreas->insertStringList( areaList );
topLayout->addWidget( pDebugAreas );
- QGridLayout *gbox = new QGridLayout( 2, 2, KDialog::marginHint() );
+ TQGridLayout *gbox = new TQGridLayout( 2, 2, KDialog::marginHint() );
if( gbox == 0 ) { return; }
topLayout->addLayout( gbox );
- QStringList destList;
+ TQStringList destList;
destList.append( i18n("File") );
destList.append( i18n("Message Box") );
destList.append( i18n("Shell") );
@@ -72,105 +72,105 @@ KDebugDialog::KDebugDialog( QStringList areaList, QWidget *parent, const char *n
//
// Upper left frame
//
- pInfoGroup = new QGroupBox( i18n("Information"), this );
+ pInfoGroup = new TQGroupBox( i18n("Information"), this );
gbox->addWidget( pInfoGroup, 0, 0 );
- QVBoxLayout *vbox = new QVBoxLayout( pInfoGroup, KDialog::spacingHint() );
+ TQVBoxLayout *vbox = new TQVBoxLayout( pInfoGroup, KDialog::spacingHint() );
vbox->addSpacing( fontMetrics().lineSpacing() );
- pInfoLabel1 = new QLabel( i18n("Output to:"), pInfoGroup );
+ pInfoLabel1 = new TQLabel( i18n("Output to:"), pInfoGroup );
vbox->addWidget( pInfoLabel1 );
- pInfoCombo = new QComboBox( false, pInfoGroup );
- connect(pInfoCombo, SIGNAL(activated(int)),
- this, SLOT(slotDestinationChanged(int)));
+ pInfoCombo = new TQComboBox( false, pInfoGroup );
+ connect(pInfoCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotDestinationChanged(int)));
vbox->addWidget( pInfoCombo );
pInfoCombo->insertStringList( destList );
- pInfoLabel2 = new QLabel( i18n("Filename:"), pInfoGroup );
+ pInfoLabel2 = new TQLabel( i18n("Filename:"), pInfoGroup );
vbox->addWidget( pInfoLabel2 );
- pInfoFile = new QLineEdit( pInfoGroup );
+ pInfoFile = new TQLineEdit( pInfoGroup );
vbox->addWidget( pInfoFile );
/*
- pInfoLabel3 = new QLabel( i18n("Show only area(s):"), pInfoGroup );
+ pInfoLabel3 = new TQLabel( i18n("Show only area(s):"), pInfoGroup );
vbox->addWidget( pInfoLabel3 );
- pInfoShow = new QLineEdit( pInfoGroup );
+ pInfoShow = new TQLineEdit( pInfoGroup );
vbox->addWidget( pInfoShow );
*/
//
// Upper right frame
//
- pWarnGroup = new QGroupBox( i18n("Warning"), this );
+ pWarnGroup = new TQGroupBox( i18n("Warning"), this );
gbox->addWidget( pWarnGroup, 0, 1 );
- vbox = new QVBoxLayout( pWarnGroup, KDialog::spacingHint() );
+ vbox = new TQVBoxLayout( pWarnGroup, KDialog::spacingHint() );
vbox->addSpacing( fontMetrics().lineSpacing() );
- pWarnLabel1 = new QLabel( i18n("Output to:"), pWarnGroup );
+ pWarnLabel1 = new TQLabel( i18n("Output to:"), pWarnGroup );
vbox->addWidget( pWarnLabel1 );
- pWarnCombo = new QComboBox( false, pWarnGroup );
- connect(pWarnCombo, SIGNAL(activated(int)),
- this, SLOT(slotDestinationChanged(int)));
+ pWarnCombo = new TQComboBox( false, pWarnGroup );
+ connect(pWarnCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotDestinationChanged(int)));
vbox->addWidget( pWarnCombo );
pWarnCombo->insertStringList( destList );
- pWarnLabel2 = new QLabel( i18n("Filename:"), pWarnGroup );
+ pWarnLabel2 = new TQLabel( i18n("Filename:"), pWarnGroup );
vbox->addWidget( pWarnLabel2 );
- pWarnFile = new QLineEdit( pWarnGroup );
+ pWarnFile = new TQLineEdit( pWarnGroup );
vbox->addWidget( pWarnFile );
/*
- pWarnLabel3 = new QLabel( i18n("Show only area(s):"), pWarnGroup );
+ pWarnLabel3 = new TQLabel( i18n("Show only area(s):"), pWarnGroup );
vbox->addWidget( pWarnLabel3 );
- pWarnShow = new QLineEdit( pWarnGroup );
+ pWarnShow = new TQLineEdit( pWarnGroup );
vbox->addWidget( pWarnShow );
*/
//
// Lower left frame
//
- pErrorGroup = new QGroupBox( i18n("Error"), this );
+ pErrorGroup = new TQGroupBox( i18n("Error"), this );
gbox->addWidget( pErrorGroup, 1, 0 );
- vbox = new QVBoxLayout( pErrorGroup, KDialog::spacingHint() );
+ vbox = new TQVBoxLayout( pErrorGroup, KDialog::spacingHint() );
vbox->addSpacing( fontMetrics().lineSpacing() );
- pErrorLabel1 = new QLabel( i18n("Output to:"), pErrorGroup );
+ pErrorLabel1 = new TQLabel( i18n("Output to:"), pErrorGroup );
vbox->addWidget( pErrorLabel1 );
- pErrorCombo = new QComboBox( false, pErrorGroup );
- connect(pErrorCombo, SIGNAL(activated(int)),
- this, SLOT(slotDestinationChanged(int)));
+ pErrorCombo = new TQComboBox( false, pErrorGroup );
+ connect(pErrorCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotDestinationChanged(int)));
vbox->addWidget( pErrorCombo );
pErrorCombo->insertStringList( destList );
- pErrorLabel2 = new QLabel( i18n("Filename:"), pErrorGroup );
+ pErrorLabel2 = new TQLabel( i18n("Filename:"), pErrorGroup );
vbox->addWidget( pErrorLabel2 );
- pErrorFile = new QLineEdit( pErrorGroup );
+ pErrorFile = new TQLineEdit( pErrorGroup );
vbox->addWidget( pErrorFile );
/*
- pErrorLabel3 = new QLabel( i18n("Show only area(s):"), pErrorGroup );
+ pErrorLabel3 = new TQLabel( i18n("Show only area(s):"), pErrorGroup );
vbox->addWidget( pErrorLabel3 );
- pErrorShow = new QLineEdit( pErrorGroup );
+ pErrorShow = new TQLineEdit( pErrorGroup );
vbox->addWidget( pErrorShow );
*/
//
// Lower right frame
//
- pFatalGroup = new QGroupBox( i18n("Fatal Error"), this );
+ pFatalGroup = new TQGroupBox( i18n("Fatal Error"), this );
gbox->addWidget( pFatalGroup, 1, 1 );
- vbox = new QVBoxLayout( pFatalGroup, KDialog::spacingHint() );
+ vbox = new TQVBoxLayout( pFatalGroup, KDialog::spacingHint() );
vbox->addSpacing( fontMetrics().lineSpacing() );
- pFatalLabel1 = new QLabel( i18n("Output to:"), pFatalGroup );
+ pFatalLabel1 = new TQLabel( i18n("Output to:"), pFatalGroup );
vbox->addWidget( pFatalLabel1 );
- pFatalCombo = new QComboBox( false, pFatalGroup );
- connect(pFatalCombo, SIGNAL(activated(int)),
- this, SLOT(slotDestinationChanged(int)));
+ pFatalCombo = new TQComboBox( false, pFatalGroup );
+ connect(pFatalCombo, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotDestinationChanged(int)));
vbox->addWidget( pFatalCombo );
pFatalCombo->insertStringList( destList );
- pFatalLabel2 = new QLabel( i18n("Filename:"), pFatalGroup );
+ pFatalLabel2 = new TQLabel( i18n("Filename:"), pFatalGroup );
vbox->addWidget( pFatalLabel2 );
- pFatalFile = new QLineEdit( pFatalGroup );
+ pFatalFile = new TQLineEdit( pFatalGroup );
vbox->addWidget( pFatalFile );
/*
- pFatalLabel3 = new QLabel( i18n("Show only area(s):"), pFatalGroup );
+ pFatalLabel3 = new TQLabel( i18n("Show only area(s):"), pFatalGroup );
vbox->addWidget( pFatalLabel3 );
- pFatalShow = new QLineEdit( pFatalGroup );
+ pFatalShow = new TQLineEdit( pFatalGroup );
vbox->addWidget( pFatalShow );
*/
- pAbortFatal = new QCheckBox( i18n("Abort on fatal errors"), this );
+ pAbortFatal = new TQCheckBox( i18n("Abort on fatal errors"), this );
topLayout->addWidget(pAbortFatal);
topLayout->addStretch();
@@ -179,8 +179,8 @@ KDebugDialog::KDebugDialog( QStringList areaList, QWidget *parent, const char *n
buildButtons( topLayout );
- connect( pDebugAreas, SIGNAL( activated( const QString &) ),
- SLOT( slotDebugAreaChanged( const QString & ) ) );
+ connect( pDebugAreas, TQT_SIGNAL( activated( const TQString &) ),
+ TQT_SLOT( slotDebugAreaChanged( const TQString & ) ) );
// Get initial values ("initial" is understood by the slot)
slotDebugAreaChanged( "0 initial" );
@@ -193,13 +193,13 @@ KDebugDialog::~KDebugDialog()
{
}
-void KDebugDialog::slotDebugAreaChanged( const QString & text )
+void KDebugDialog::slotDebugAreaChanged( const TQString & text )
{
// Save settings from previous page
if ( text != "0 initial" ) // except on first call
save();
- QString data = text.simplifyWhiteSpace();
+ TQString data = text.simplifyWhiteSpace();
int space = data.find(" ");
if (space == -1)
kdError() << "No space:" << data << endl;
@@ -210,7 +210,7 @@ void KDebugDialog::slotDebugAreaChanged( const QString & text )
kdError() << "The first part wasn't a number : " << data << endl;
/* Fill dialog fields with values from config data */
- pConfig->setGroup( QString::number( number ) ); // Group name = debug area code
+ pConfig->setGroup( TQString::number( number ) ); // Group name = debug area code
pInfoCombo->setCurrentItem( pConfig->readNumEntry( "InfoOutput", 2 ) );
pInfoFile->setText( pConfig->readPathEntry( "InfoFilename","kdebug.dbg" ) );
//pInfoShow->setText( pConfig->readEntry( "InfoShow" ) );
@@ -243,7 +243,7 @@ void KDebugDialog::save()
//pConfig->writeEntry( "FatalShow", pFatalShow->text() );
pConfig->writeEntry( "AbortFatal", pAbortFatal->isChecked() );
- QByteArray data;
+ TQByteArray data;
if (!kapp->dcopClient()->send("*", "KDebug", "notifyKDebugConfigChanged()", data))
{
kdError() << "Unable to send DCOP message" << endl;
diff --git a/kdebugdialog/kdebugdialog.h b/kdebugdialog/kdebugdialog.h
index d0c22fbc1..86a6fcc84 100644
--- a/kdebugdialog/kdebugdialog.h
+++ b/kdebugdialog/kdebugdialog.h
@@ -42,47 +42,47 @@ class KDebugDialog : public KAbstractDebugDialog
Q_OBJECT
public:
- KDebugDialog( QStringList areaList, QWidget *parent=0, const char *name=0, bool modal=true );
+ KDebugDialog( TQStringList areaList, TQWidget *parent=0, const char *name=0, bool modal=true );
virtual ~KDebugDialog();
void save();
protected slots:
- void slotDebugAreaChanged( const QString & );
+ void slotDebugAreaChanged( const TQString & );
void slotDestinationChanged(int);
private:
- QComboBox* pDebugAreas;
- QGroupBox* pInfoGroup;
- QLabel* pInfoLabel1;
- QComboBox* pInfoCombo;
- QLabel* pInfoLabel2;
- QLineEdit* pInfoFile;
- QLabel* pInfoLabel3;
- QLineEdit* pInfoShow;
- QGroupBox* pWarnGroup;
- QLabel* pWarnLabel1;
- QComboBox* pWarnCombo;
- QLabel* pWarnLabel2;
- QLineEdit* pWarnFile;
- QLabel* pWarnLabel3;
- QLineEdit* pWarnShow;
- QGroupBox* pErrorGroup;
- QLabel* pErrorLabel1;
- QComboBox* pErrorCombo;
- QLabel* pErrorLabel2;
- QLineEdit* pErrorFile;
- QLabel* pErrorLabel3;
- QLineEdit* pErrorShow;
- QGroupBox* pFatalGroup;
- QLabel* pFatalLabel1;
- QComboBox* pFatalCombo;
- QLabel* pFatalLabel2;
- QLineEdit* pFatalFile;
- QLabel* pFatalLabel3;
- QLineEdit* pFatalShow;
+ TQComboBox* pDebugAreas;
+ TQGroupBox* pInfoGroup;
+ TQLabel* pInfoLabel1;
+ TQComboBox* pInfoCombo;
+ TQLabel* pInfoLabel2;
+ TQLineEdit* pInfoFile;
+ TQLabel* pInfoLabel3;
+ TQLineEdit* pInfoShow;
+ TQGroupBox* pWarnGroup;
+ TQLabel* pWarnLabel1;
+ TQComboBox* pWarnCombo;
+ TQLabel* pWarnLabel2;
+ TQLineEdit* pWarnFile;
+ TQLabel* pWarnLabel3;
+ TQLineEdit* pWarnShow;
+ TQGroupBox* pErrorGroup;
+ TQLabel* pErrorLabel1;
+ TQComboBox* pErrorCombo;
+ TQLabel* pErrorLabel2;
+ TQLineEdit* pErrorFile;
+ TQLabel* pErrorLabel3;
+ TQLineEdit* pErrorShow;
+ TQGroupBox* pFatalGroup;
+ TQLabel* pFatalLabel1;
+ TQComboBox* pFatalCombo;
+ TQLabel* pFatalLabel2;
+ TQLineEdit* pFatalFile;
+ TQLabel* pFatalLabel3;
+ TQLineEdit* pFatalShow;
- QCheckBox* pAbortFatal;
+ TQCheckBox* pAbortFatal;
private:
// Disallow assignment and copy-construction
diff --git a/kdebugdialog/klistdebugdialog.cpp b/kdebugdialog/klistdebugdialog.cpp
index 8dade2895..7ddb2b559 100644
--- a/kdebugdialog/klistdebugdialog.cpp
+++ b/kdebugdialog/klistdebugdialog.cpp
@@ -22,55 +22,55 @@
#include <kconfig.h>
#include <kapplication.h>
#include <kdebug.h>
-#include <qlayout.h>
-#include <qscrollview.h>
-#include <qvbox.h>
+#include <tqlayout.h>
+#include <tqscrollview.h>
+#include <tqvbox.h>
#include <klocale.h>
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <klineedit.h>
#include <dcopclient.h>
-KListDebugDialog::KListDebugDialog( QStringList areaList, QWidget *parent, const char *name, bool modal )
+KListDebugDialog::KListDebugDialog( TQStringList areaList, TQWidget *parent, const char *name, bool modal )
: KAbstractDebugDialog( parent, name, modal ),
m_areaList( areaList )
{
setCaption(i18n("Debug Settings"));
- QVBoxLayout *lay = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQVBoxLayout *lay = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
m_incrSearch = new KLineEdit( this );
lay->addWidget( m_incrSearch );
- connect( m_incrSearch, SIGNAL( textChanged( const QString& ) ),
- SLOT( generateCheckBoxes( const QString& ) ) );
+ connect( m_incrSearch, TQT_SIGNAL( textChanged( const TQString& ) ),
+ TQT_SLOT( generateCheckBoxes( const TQString& ) ) );
- QScrollView * scrollView = new QScrollView( this );
- scrollView->setResizePolicy( QScrollView::AutoOneFit );
+ TQScrollView * scrollView = new TQScrollView( this );
+ scrollView->setResizePolicy( TQScrollView::AutoOneFit );
lay->addWidget( scrollView );
- m_box = new QVBox( scrollView->viewport() );
+ m_box = new TQVBox( scrollView->viewport() );
scrollView->addChild( m_box );
- generateCheckBoxes( QString::null );
+ generateCheckBoxes( TQString::null );
- QHBoxLayout* selectButs = new QHBoxLayout( lay );
- QPushButton* all = new QPushButton( i18n("&Select All"), this );
- QPushButton* none = new QPushButton( i18n("&Deselect All"), this );
+ TQHBoxLayout* selectButs = new TQHBoxLayout( lay );
+ TQPushButton* all = new TQPushButton( i18n("&Select All"), this );
+ TQPushButton* none = new TQPushButton( i18n("&Deselect All"), this );
selectButs->addWidget( all );
selectButs->addWidget( none );
- connect( all, SIGNAL( clicked() ), this, SLOT( selectAll() ) );
- connect( none, SIGNAL( clicked() ), this, SLOT( deSelectAll() ) );
+ connect( all, TQT_SIGNAL( clicked() ), this, TQT_SLOT( selectAll() ) );
+ connect( none, TQT_SIGNAL( clicked() ), this, TQT_SLOT( deSelectAll() ) );
buildButtons( lay );
resize( 350, 400 );
}
-void KListDebugDialog::generateCheckBoxes( const QString& filter )
+void KListDebugDialog::generateCheckBoxes( const TQString& filter )
{
- QPtrListIterator<QCheckBox> cb_it ( boxes );
+ TQPtrListIterator<TQCheckBox> cb_it ( boxes );
for( ; cb_it.current() ; ++cb_it )
{
- if( (*cb_it)->state() != QButton::NoChange )
+ if( (*cb_it)->state() != TQButton::NoChange )
m_changes.insert( (*cb_it)->name(), (*cb_it)->isChecked() ? 2 : 4 );
}
@@ -78,20 +78,20 @@ void KListDebugDialog::generateCheckBoxes( const QString& filter )
boxes.clear();
boxes.setAutoDelete( false );
- QWidget* taborder = m_incrSearch;
- QStringList::Iterator it = m_areaList.begin();
+ TQWidget* taborder = m_incrSearch;
+ TQStringList::Iterator it = m_areaList.begin();
for ( ; it != m_areaList.end() ; ++it )
{
- QString data = (*it).simplifyWhiteSpace();
+ TQString data = (*it).simplifyWhiteSpace();
if ( filter.isEmpty() || data.lower().contains( filter.lower() ) )
{
int space = data.find(" ");
if (space == -1)
kdError() << "No space:" << data << endl;
- QString areaNumber = data.left(space);
+ TQString areaNumber = data.left(space);
//kdDebug() << areaNumber << endl;
- QCheckBox * cb = new QCheckBox( data, m_box, areaNumber.latin1() );
+ TQCheckBox * cb = new TQCheckBox( data, m_box, areaNumber.latin1() );
cb->show();
boxes.append( cb );
setTabOrder( taborder, cb );
@@ -104,7 +104,7 @@ void KListDebugDialog::generateCheckBoxes( const QString& filter )
void KListDebugDialog::selectAll()
{
- QPtrListIterator<QCheckBox> it ( boxes );
+ TQPtrListIterator<TQCheckBox> it ( boxes );
for ( ; it.current() ; ++it ) {
(*it)->setChecked( true );
m_changes.insert( (*it)->name(), 2 );
@@ -113,7 +113,7 @@ void KListDebugDialog::selectAll()
void KListDebugDialog::deSelectAll()
{
- QPtrListIterator<QCheckBox> it ( boxes );
+ TQPtrListIterator<TQCheckBox> it ( boxes );
for ( ; it.current() ; ++it ) {
(*it)->setChecked( false );
m_changes.insert( (*it)->name(), 4 );
@@ -122,7 +122,7 @@ void KListDebugDialog::deSelectAll()
void KListDebugDialog::load()
{
- QPtrListIterator<QCheckBox> it ( boxes );
+ TQPtrListIterator<TQCheckBox> it ( boxes );
for ( ; it.current() ; ++it )
{
pConfig->setGroup( (*it)->name() ); // Group name = debug area code = cb's name
@@ -154,11 +154,11 @@ void KListDebugDialog::load()
void KListDebugDialog::save()
{
- QPtrListIterator<QCheckBox> it ( boxes );
+ TQPtrListIterator<TQCheckBox> it ( boxes );
for ( ; it.current() ; ++it )
{
pConfig->setGroup( (*it)->name() ); // Group name = debug area code = cb's name
- if ( (*it)->state() != QButton::NoChange )
+ if ( (*it)->state() != TQButton::NoChange )
{
int setting = (*it)->isChecked() ? 2 : 4;
pConfig->writeEntry( "InfoOutput", setting );
@@ -167,7 +167,7 @@ void KListDebugDialog::save()
//sync done by main.cpp
// send DCOP message to all clients
- QByteArray data;
+ TQByteArray data;
if (!kapp->dcopClient()->send("*", "KDebug", "notifyKDebugConfigChanged()", data))
{
kdError() << "Unable to send DCOP message" << endl;
@@ -176,13 +176,13 @@ void KListDebugDialog::save()
m_changes.clear();
}
-void KListDebugDialog::activateArea( QCString area, bool activate )
+void KListDebugDialog::activateArea( TQCString area, bool activate )
{
- QPtrListIterator<QCheckBox> it ( boxes );
+ TQPtrListIterator<TQCheckBox> it ( boxes );
for ( ; it.current() ; ++it )
{
if ( area == (*it)->name() // debug area code = cb's name
- || (*it)->text().find( QString::fromLatin1(area) ) != -1 ) // area name included in cb text
+ || (*it)->text().find( TQString::fromLatin1(area) ) != -1 ) // area name included in cb text
{
(*it)->setChecked( activate );
return;
diff --git a/kdebugdialog/klistdebugdialog.h b/kdebugdialog/klistdebugdialog.h
index 97ab73ce6..99c826259 100644
--- a/kdebugdialog/klistdebugdialog.h
+++ b/kdebugdialog/klistdebugdialog.h
@@ -21,9 +21,9 @@
#define KLISTDEBUGDIALOG__H
#include "kabstractdebugdialog.h"
-#include <qcheckbox.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
+#include <tqcheckbox.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
class QVBox;
class KLineEdit;
@@ -40,10 +40,10 @@ class KListDebugDialog : public KAbstractDebugDialog
Q_OBJECT
public:
- KListDebugDialog( QStringList areaList, QWidget *parent=0, const char *name=0, bool modal=true );
+ KListDebugDialog( TQStringList areaList, TQWidget *parent=0, const char *name=0, bool modal=true );
virtual ~KListDebugDialog() {}
- void activateArea( QCString area, bool activate );
+ void activateArea( TQCString area, bool activate );
virtual void save();
@@ -51,15 +51,15 @@ protected slots:
void selectAll();
void deSelectAll();
- void generateCheckBoxes( const QString& filter );
+ void generateCheckBoxes( const TQString& filter );
private:
void load();
- QPtrList<QCheckBox> boxes;
- QStringList m_areaList;
- QVBox *m_box;
+ TQPtrList<TQCheckBox> boxes;
+ TQStringList m_areaList;
+ TQVBox *m_box;
KLineEdit *m_incrSearch;
- QMap<QCString, int> m_changes;
+ TQMap<TQCString, int> m_changes;
};
#endif
diff --git a/kdebugdialog/main.cpp b/kdebugdialog/main.cpp
index dfee01db9..61d977ee8 100644
--- a/kdebugdialog/main.cpp
+++ b/kdebugdialog/main.cpp
@@ -22,31 +22,31 @@
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kstandarddirs.h>
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <klocale.h>
#include <kdebug.h>
#include <kuniqueapplication.h>
#include <kconfig.h>
-#include <qfile.h>
+#include <tqfile.h>
-QStringList readAreaList()
+TQStringList readAreaList()
{
- QStringList lst;
+ TQStringList lst;
lst.append( "0 (generic)" );
- QString confAreasFile = locate( "config", "kdebug.areas" );
- QFile file( confAreasFile );
+ TQString confAreasFile = locate( "config", "kdebug.areas" );
+ TQFile file( confAreasFile );
if (!file.open(IO_ReadOnly)) {
kdWarning() << "Couldn't open " << confAreasFile << endl;
file.close();
}
else
{
- QString data;
+ TQString data;
- QTextStream *ts = new QTextStream(&file);
- ts->setEncoding( QTextStream::Latin1 );
+ TQTextStream *ts = new TQTextStream(&file);
+ ts->setEncoding( TQTextStream::Latin1 );
while (!ts->eof()) {
data = ts->readLine().simplifyWhiteSpace();
@@ -88,7 +88,7 @@ int main(int argc, char ** argv)
KUniqueApplication app;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
- QStringList areaList ( readAreaList() );
+ TQStringList areaList ( readAreaList() );
KAbstractDebugDialog * dialog;
if (args->isSet("fullmode"))
dialog = new KDebugDialog(areaList, 0L);
@@ -113,7 +113,7 @@ int main(int argc, char ** argv)
/* Show dialog */
int nRet = dialog->exec();
- if( nRet == QDialog::Accepted )
+ if( nRet == TQDialog::Accepted )
{
dialog->save();
dialog->config()->sync();