diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /secpolicy/pamview.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'secpolicy/pamview.cpp')
-rw-r--r-- | secpolicy/pamview.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
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 <qlayout.h> -#include <qlistbox.h> -#include <qlistview.h> -#include <qlabel.h> -#include <qdir.h> -#include <qtextstream.h> -#include <qfile.h> -#include <qregexp.h> +#include <tqlayout.h> +#include <tqlistbox.h> +#include <tqlistview.h> +#include <tqlabel.h> +#include <tqdir.h> +#include <tqtextstream.h> +#include <tqfile.h> +#include <tqregexp.h> #include <kmessagebox.h> #include <kglobal.h> @@ -40,21 +40,21 @@ #include <stdlib.h> -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); } |