summaryrefslogtreecommitdiffstats
path: root/knode/kngroupselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knode/kngroupselectdialog.cpp')
-rw-r--r--knode/kngroupselectdialog.cpp50
1 files changed, 25 insertions, 25 deletions
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 <qlayout.h>
-#include <qlabel.h>
-#include <qheader.h>
-#include <qcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqheader.h>
+#include <tqcheckbox.h>
#include <klocale.h>
#include <kmessagebox.h>
#include "utilities.h"
#include "kngroupselectdialog.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
-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();