diff options
Diffstat (limited to 'knode/kngroupdialog.cpp')
-rw-r--r-- | knode/kngroupdialog.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/knode/kngroupdialog.cpp b/knode/kngroupdialog.cpp index b983f724a..64deea4f8 100644 --- a/knode/kngroupdialog.cpp +++ b/knode/kngroupdialog.cpp @@ -14,11 +14,11 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include <qlabel.h> -#include <qlayout.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> #include <kdebug.h> #include <kglobal.h> @@ -31,19 +31,19 @@ #include "knnntpaccount.h" #include "kngroupdialog.h" #include "knglobals.h" -#include <qpushbutton.h> +#include <tqpushbutton.h> -KNGroupDialog::KNGroupDialog(QWidget *parent, KNNntpAccount *a) : +KNGroupDialog::KNGroupDialog(TQWidget *parent, KNNntpAccount *a) : KNGroupBrowser(parent, i18n("Subscribe to Newsgroups"),a, User1 | User2, true, i18n("New &List"), i18n("New &Groups...") ) { rightLabel->setText(i18n("Current changes:")); - subView=new QListView(page); + subView=new TQListView(page); subView->addColumn(i18n("Subscribe To")); - unsubView=new QListView(page); + unsubView=new TQListView(page); unsubView->addColumn(i18n("Unsubscribe From")); - QVBoxLayout *protL=new QVBoxLayout(3); + TQVBoxLayout *protL=new TQVBoxLayout(3); listL->addLayout(protL, 1,2); protL->addWidget(subView); protL->addWidget(unsubView); @@ -51,19 +51,19 @@ KNGroupDialog::KNGroupDialog(QWidget *parent, KNNntpAccount *a) : dir1=right; dir2=left; - connect(groupView, SIGNAL(selectionChanged(QListViewItem*)), - this, SLOT(slotItemSelected(QListViewItem*))); - connect(groupView, SIGNAL(selectionChanged()), - this, SLOT(slotSelectionChanged())); - connect(subView, SIGNAL(selectionChanged(QListViewItem*)), - this, SLOT(slotItemSelected(QListViewItem*))); - connect(unsubView, SIGNAL(selectionChanged(QListViewItem*)), - this, SLOT(slotItemSelected(QListViewItem*))); + connect(groupView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQT_SLOT(slotItemSelected(TQListViewItem*))); + connect(groupView, TQT_SIGNAL(selectionChanged()), + this, TQT_SLOT(slotSelectionChanged())); + connect(subView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQT_SLOT(slotItemSelected(TQListViewItem*))); + connect(unsubView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQT_SLOT(slotItemSelected(TQListViewItem*))); - connect(arrowBtn1, SIGNAL(clicked()), this, SLOT(slotArrowBtn1())); - connect(arrowBtn2, SIGNAL(clicked()), this, SLOT(slotArrowBtn2())); + connect(arrowBtn1, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotArrowBtn1())); + connect(arrowBtn2, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotArrowBtn2())); - KNHelper::restoreWindowSize("groupDlg", this, QSize(662,393)); // optimized for 800x600 + KNHelper::restoreWindowSize("groupDlg", this, TQSize(662,393)); // optimized for 800x600 setHelp("anc-fetch-group-list"); } @@ -121,14 +121,14 @@ void KNGroupDialog::updateItemState(CheckItem *it) -void KNGroupDialog::toSubscribe(QSortedList<KNGroupInfo> *l) +void KNGroupDialog::toSubscribe(TQSortedList<KNGroupInfo> *l) { KNGroupInfo *info; l->clear(); l->setAutoDelete(true); bool moderated=false; - QListViewItemIterator it(subView); + TQListViewItemIterator it(subView); for(; it.current(); ++it) { info = new KNGroupInfo(); *info = ((static_cast<GroupItem*>(it.current()))->info); @@ -138,15 +138,15 @@ void KNGroupDialog::toSubscribe(QSortedList<KNGroupInfo> *l) } if (moderated) // warn the user KMessageBox::information(knGlobals.topWidget,i18n("You have subscribed to a moderated newsgroup.\nYour articles will not appear in the group immediately.\nThey have to go through a moderation process."), - QString::null,"subscribeModeratedWarning"); + TQString::null,"subscribeModeratedWarning"); } -void KNGroupDialog::toUnsubscribe(QStringList *l) +void KNGroupDialog::toUnsubscribe(TQStringList *l) { l->clear(); - QListViewItemIterator it(unsubView); + TQListViewItemIterator it(unsubView); for(; it.current(); ++it) l->append(((static_cast<GroupItem*>(it.current()))->info).name); } @@ -155,7 +155,7 @@ void KNGroupDialog::toUnsubscribe(QStringList *l) void KNGroupDialog::setButtonDirection(arrowButton b, arrowDirection d) { - QPushButton *btn=0; + TQPushButton *btn=0; if(b==btn1 && dir1!=d) { btn=arrowBtn1; dir1=d; @@ -175,9 +175,9 @@ void KNGroupDialog::setButtonDirection(arrowButton b, arrowDirection d) -void KNGroupDialog::slotItemSelected(QListViewItem *it) +void KNGroupDialog::slotItemSelected(TQListViewItem *it) { - const QObject *s=sender(); + const TQObject *s=sender(); if(s==subView) { @@ -281,29 +281,29 @@ void KNGroupDialog::slotUser1() // new groups void KNGroupDialog::slotUser2() { - QDate lastDate = a_ccount->lastNewFetch(); + TQDate lastDate = a_ccount->lastNewFetch(); KDialogBase *dlg = new KDialogBase( this, 0L, true, i18n("New Groups"), Ok | Cancel, Ok); - QButtonGroup *btnGrp = new QButtonGroup(i18n("Check for New Groups"),dlg); + TQButtonGroup *btnGrp = new TQButtonGroup(i18n("Check for New Groups"),dlg); dlg->setMainWidget(btnGrp); - QGridLayout *topL = new QGridLayout(btnGrp,4,2,25,10); + TQGridLayout *topL = new TQGridLayout(btnGrp,4,2,25,10); - QRadioButton *takeLast = new QRadioButton( i18n("Created since last check:"), btnGrp ); + TQRadioButton *takeLast = new TQRadioButton( i18n("Created since last check:"), btnGrp ); topL->addMultiCellWidget(takeLast, 0, 0, 0, 1); - QLabel *l = new QLabel(KGlobal::locale()->formatDate(lastDate, false),btnGrp); + TQLabel *l = new TQLabel(KGlobal::locale()->formatDate(lastDate, false),btnGrp); topL->addWidget(l, 1, 1, Qt::AlignLeft); - connect(takeLast, SIGNAL(toggled(bool)), l, SLOT(setEnabled(bool))); + connect(takeLast, TQT_SIGNAL(toggled(bool)), l, TQT_SLOT(setEnabled(bool))); - QRadioButton *takeCustom = new QRadioButton( i18n("Created since this date:"), btnGrp ); + TQRadioButton *takeCustom = new TQRadioButton( i18n("Created since this date:"), btnGrp ); topL->addMultiCellWidget(takeCustom, 2, 2, 0, 1); KDatePicker *dateSel = new KDatePicker(btnGrp, lastDate); dateSel->setMinimumSize(dateSel->sizeHint()); topL->addWidget(dateSel, 3, 1, Qt::AlignLeft); - connect(takeCustom, SIGNAL(toggled(bool)), dateSel, SLOT(setEnabled(bool))); + connect(takeCustom, TQT_SIGNAL(toggled(bool)), dateSel, TQT_SLOT(setEnabled(bool))); takeLast->setChecked(true); dateSel->setEnabled(false); @@ -314,7 +314,7 @@ void KNGroupDialog::slotUser2() if (dlg->exec()) { if (takeCustom->isChecked()) lastDate = dateSel->date(); - a_ccount->setLastNewFetch(QDate::currentDate()); + a_ccount->setLastNewFetch(TQDate::currentDate()); leftLabel->setText(i18n("Checking for new groups...")); enableButton(User1,false); enableButton(User2,false); |