diff options
Diffstat (limited to 'kbugbuster/gui/preferencesdialog.cpp')
-rw-r--r-- | kbugbuster/gui/preferencesdialog.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/kbugbuster/gui/preferencesdialog.cpp b/kbugbuster/gui/preferencesdialog.cpp index 2af4879a..2b6f09ab 100644 --- a/kbugbuster/gui/preferencesdialog.cpp +++ b/kbugbuster/gui/preferencesdialog.cpp @@ -24,7 +24,7 @@ #include "preferencesdialog.h" -class ServerItem : public QListViewItem +class ServerItem : public TQListViewItem { public: ServerItem( TQListView *listView, const BugServerConfig &cfg ) @@ -48,10 +48,10 @@ class ServerItem : public QListViewItem BugServerConfig mServerConfig; }; -class ServerListView : public QListView +class ServerListView : public TQListView { public: - ServerListView( TQWidget *parent ) : TQListView( parent ) + ServerListView( TQWidget *tqparent ) : TQListView( tqparent ) { addColumn( i18n("Name") ); addColumn( i18n("Base URL") ); @@ -60,9 +60,9 @@ class ServerListView : public QListView } }; -PreferencesDialog::PreferencesDialog( TQWidget* parent, const char* name ) +PreferencesDialog::PreferencesDialog( TQWidget* tqparent, const char* name ) : KDialogBase ( IconList, i18n("Preferences"), Ok|Apply|Cancel, Ok, - parent, name, false, true ) + tqparent, name, false, true ) { setupServerPage(); setupAdvancedPage(); @@ -79,15 +79,15 @@ void PreferencesDialog::setupServerPage() TQFrame *topFrame = addPage( i18n("Servers"), 0, DesktopIcon( "gohome", KIcon::SizeMedium ) ); - TQBoxLayout *layout = new TQVBoxLayout( topFrame ); - layout->setSpacing( spacingHint() ); + TQBoxLayout *tqlayout = new TQVBoxLayout( topFrame ); + tqlayout->setSpacing( spacingHint() ); mServerList = new ServerListView( topFrame ); - layout->addWidget( mServerList ); + tqlayout->addWidget( mServerList ); TQHBox *buttonBox = new TQHBox( topFrame ); buttonBox->setSpacing( spacingHint() ); - layout->addWidget( buttonBox ); + tqlayout->addWidget( buttonBox ); TQPushButton *addButton = new TQPushButton( i18n("Add Server..."), buttonBox ); connect( addButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addServer() ) ); @@ -100,7 +100,7 @@ void PreferencesDialog::setupServerPage() TQPushButton *button = new TQPushButton( i18n("Select Server From List..."), topFrame ); - layout->addWidget( button ); + tqlayout->addWidget( button ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( selectServer() ) ); connect( mServerList, TQT_SIGNAL( doubleClicked ( TQListViewItem *)), this, TQT_SLOT( editServer())); } @@ -110,34 +110,34 @@ void PreferencesDialog::setupAdvancedPage() TQFrame *topFrame = addPage( i18n("Advanced"), 0, DesktopIcon( "misc", KIcon::SizeMedium ) ); - TQBoxLayout *layout = new TQVBoxLayout( topFrame ); - layout->setSpacing( spacingHint() ); + TQBoxLayout *tqlayout = new TQVBoxLayout( topFrame ); + tqlayout->setSpacing( spacingHint() ); - TQButtonGroup *mailGroup = new TQButtonGroup( 1, Horizontal, + TQButtonGroup *mailGroup = new TQButtonGroup( 1,Qt::Horizontal, i18n( "Mail Client" ), topFrame ); - layout->addWidget( mailGroup ); + tqlayout->addWidget( mailGroup ); mKMailButton = new TQRadioButton( i18n( "&KMail" ), mailGroup ); mDirectButton = new TQRadioButton( i18n( "D&irect" ), mailGroup ); mSendmailButton = new TQRadioButton( i18n( "&Sendmail" ), mailGroup ); mShowClosedCheckBox = new TQCheckBox( i18n( "Show closed bugs" ), topFrame ); - layout->addWidget( mShowClosedCheckBox ); + tqlayout->addWidget( mShowClosedCheckBox ); mShowWishesCheckBox = new TQCheckBox( i18n( "Show wishes" ), topFrame ); - layout->addWidget( mShowWishesCheckBox ); + tqlayout->addWidget( mShowWishesCheckBox ); mShowVotedCheckBox = new TQCheckBox( i18n( "Show bugs with number of votes greater than:" ), topFrame ); - layout->addWidget( mShowVotedCheckBox ); + tqlayout->addWidget( mShowVotedCheckBox ); mMinVotesInput = new KIntNumInput( topFrame ); mMinVotesInput->setMinValue( 0 ); connect( mShowVotedCheckBox, TQT_SIGNAL(toggled(bool)), mMinVotesInput, TQT_SLOT(setEnabled(bool)) ); - layout->addWidget( mMinVotesInput ); + tqlayout->addWidget( mMinVotesInput ); mSendBccCheckBox = new TQCheckBox( i18n( "Send BCC to myself" ), topFrame ); - layout->addWidget( mSendBccCheckBox ); + tqlayout->addWidget( mSendBccCheckBox ); } void PreferencesDialog::setDefaults() @@ -274,21 +274,21 @@ void PreferencesDialog::writeConfig() emit configChanged(); } -SelectServerDlg::SelectServerDlg(PreferencesDialog *parent, const char */*name*/ ) - :KDialogBase(parent, 0, true, i18n("Select Server"), +SelectServerDlg::SelectServerDlg(PreferencesDialog *tqparent, const char */*name*/ ) + :KDialogBase(tqparent, 0, true, i18n("Select Server"), KDialogBase::Ok | KDialogBase::Cancel) { list = new ServerListView(this ); setMainWidget( list ); - parent->createServerItem( list, "KDE", "http://bugs.kde.org", "KDE" ); - parent->createServerItem( list, "GNOME", "http://bugzilla.gnome.org", "2.10" ); - parent->createServerItem( list, "Mozilla", "http://bugzilla.mozilla.org", "2.17.1" ); - parent->createServerItem( list, "Apache", "http://nagoya.apache.org/bugzilla/", "2.14.2" ); - parent->createServerItem( list, "XFree86", "http://bugs.xfree86.org/cgi-bin/bugzilla/", "2.14.2" ); - 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" ); + tqparent->createServerItem( list, "KDE", "http://bugs.kde.org", "KDE" ); + tqparent->createServerItem( list, "GNOME", "http://bugzilla.gnome.org", "2.10" ); + tqparent->createServerItem( list, "Mozilla", "http://bugzilla.mozilla.org", "2.17.1" ); + tqparent->createServerItem( list, "Apache", "http://nagoya.apache.org/bugzilla/", "2.14.2" ); + tqparent->createServerItem( list, "XFree86", "http://bugs.xfree86.org/cgi-bin/bugzilla/", "2.14.2" ); + tqparent->createServerItem( list, "Ximian", "http://bugzilla.ximian.com", "2.10" ); + tqparent->createServerItem( list, "RedHat", "http://bugzilla.redhat.com/bugzilla/", "2.17.1" ); + tqparent->createServerItem( list, "Mandriva", "http://qa.mandriva.com/", "2.17.4" ); connect( list, TQT_SIGNAL( doubleClicked ( TQListViewItem *)), this, TQT_SLOT( slotDoubleClicked( TQListViewItem *))); } |