From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- secpolicy/pamview.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'secpolicy/pamview.cpp') diff --git a/secpolicy/pamview.cpp b/secpolicy/pamview.cpp index f16ac4d..963ce20 100644 --- a/secpolicy/pamview.cpp +++ b/secpolicy/pamview.cpp @@ -22,14 +22,14 @@ * */ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -40,21 +40,21 @@ #include -PamView::PamView(QWidget *parent, const char *name) - : QWidget(parent, name) +PamView::PamView(TQWidget *parent, const char *name) + : TQWidget(parent, name) { - QHBoxLayout *topl = new QHBoxLayout(this); + TQHBoxLayout *topl = new TQHBoxLayout(this); - QVBoxLayout *leftl = new QVBoxLayout; + TQVBoxLayout *leftl = new QVBoxLayout; topl->addLayout(leftl); - QLabel *label = new QLabel(i18n("Available services:"), this); + TQLabel *label = new TQLabel(i18n("Available services:"), this); leftl->addWidget(label); - servicesLB = new QListBox(this); + servicesLB = new TQListBox(this); leftl->addWidget(servicesLB); - propertiesLV = new QListView(this); + propertiesLV = new TQListView(this); propertiesLV->addColumn(i18n("Category")); propertiesLV->addColumn(i18n("Level")); propertiesLV->addColumn(i18n("Module")); @@ -75,8 +75,8 @@ void PamView::init() void PamView::initServices() { - QDir d("/etc/pam.d"); - d.setFilter(QDir::Files|QDir::Readable); + TQDir d("/etc/pam.d"); + d.setFilter(TQDir::Files|TQDir::Readable); if (!d.exists()) { KMessageBox::error(this, i18n("/etc/pam.d folder does not exist.\n" @@ -87,20 +87,20 @@ void PamView::initServices() const QFileInfoList *list = d.entryInfoList(); QFileInfoListIterator it(*list); - QFileInfo *fi; + TQFileInfo *fi; while ((fi = it.current()) != 0) { servicesLB->insertItem(fi->fileName()); - QFile f(fi->filePath()); + TQFile f(fi->filePath()); if (f.open(IO_ReadOnly)) { - QTextStream t(&f); - QString s; + TQTextStream t(&f); + TQString s; while (!t.eof()) { s = t.readLine().stripWhiteSpace(); if (s.isEmpty() || (s[0] == '#')) continue; PamPropertiesItem *item = new PamPropertiesItem(fi->filePath(), - QStringList::split(QRegExp("\\s"), s), + TQStringList::split(TQRegExp("\\s"), s), propertiesLV); propertiesLV->insertItem(item); } -- cgit v1.2.1