From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- knode/kngroupselectdialog.cpp | 50 +++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'knode/kngroupselectdialog.cpp') diff --git a/knode/kngroupselectdialog.cpp b/knode/kngroupselectdialog.cpp index e9ac3a2dd..2cb024011 100644 --- a/knode/kngroupselectdialog.cpp +++ b/knode/kngroupselectdialog.cpp @@ -14,46 +14,46 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US */ -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include "utilities.h" #include "kngroupselectdialog.h" -#include +#include -KNGroupSelectDialog::KNGroupSelectDialog(QWidget *parent, KNNntpAccount *a, const QString &act) : +KNGroupSelectDialog::KNGroupSelectDialog(TQWidget *parent, KNNntpAccount *a, const TQString &act) : KNGroupBrowser(parent, i18n("Select Destinations"), a) { - selView=new QListView(page); - selView->addColumn(QString::null); + selView=new TQListView(page); + selView->addColumn(TQString::null); selView->header()->hide(); listL->addWidget(selView, 1,2); rightLabel->setText(i18n("Groups for this article:")); subCB->setChecked(true); KNGroupInfo info; - QStringList actGroups = QStringList::split(',',act); - for ( QStringList::Iterator it = actGroups.begin(); it != actGroups.end(); ++it ) { + TQStringList actGroups = TQStringList::split(',',act); + for ( TQStringList::Iterator it = actGroups.begin(); it != actGroups.end(); ++it ) { info.name = *it; new GroupItem(selView, info); } - connect(selView, SIGNAL(selectionChanged(QListViewItem*)), - this, SLOT(slotItemSelected(QListViewItem*))); - connect(groupView, SIGNAL(selectionChanged(QListViewItem*)), - this, SLOT(slotItemSelected(QListViewItem*))); - connect(groupView, SIGNAL(selectionChanged()), - this, SLOT(slotSelectionChanged())); - connect(arrowBtn1, SIGNAL(clicked()), this, SLOT(slotArrowBtn1())); - connect(arrowBtn2, SIGNAL(clicked()), this, SLOT(slotArrowBtn2())); + connect(selView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQT_SLOT(slotItemSelected(TQListViewItem*))); + connect(groupView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQT_SLOT(slotItemSelected(TQListViewItem*))); + connect(groupView, TQT_SIGNAL(selectionChanged()), + this, TQT_SLOT(slotSelectionChanged())); + connect(arrowBtn1, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotArrowBtn1())); + connect(arrowBtn2, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotArrowBtn2())); - KNHelper::restoreWindowSize("groupSelDlg", this, QSize(659,364)); // optimized for 800x600 + KNHelper::restoreWindowSize("groupSelDlg", this, TQSize(659,364)); // optimized for 800x600 } @@ -85,10 +85,10 @@ void KNGroupSelectDialog::updateItemState(CheckItem *it) -QString KNGroupSelectDialog::selectedGroups()const +TQString KNGroupSelectDialog::selectedGroups()const { - QString ret; - QListViewItemIterator it(selView); + TQString ret; + TQListViewItemIterator it(selView); bool moderated=false; int count=0; bool isFirst=true; @@ -105,16 +105,16 @@ QString KNGroupSelectDialog::selectedGroups()const if (moderated && (count>=2)) // warn the user KMessageBox::information(parentWidget(),i18n("You are crossposting to a moderated newsgroup.\nPlease be aware that your article will not appear in any group\nuntil it has been approved by the moderators of the moderated group."), - QString::null,"crosspostModeratedWarning"); + TQString::null,"crosspostModeratedWarning"); return ret; } -void KNGroupSelectDialog::slotItemSelected(QListViewItem *it) +void KNGroupSelectDialog::slotItemSelected(TQListViewItem *it) { - const QObject *s=sender(); + const TQObject *s=sender(); if(s==groupView) { selView->clearSelection(); -- cgit v1.2.1