summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/preferencesdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbugbuster/gui/preferencesdialog.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/gui/preferencesdialog.cpp')
-rw-r--r--kbugbuster/gui/preferencesdialog.cpp100
1 files changed, 50 insertions, 50 deletions
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();
}