summaryrefslogtreecommitdiffstats
path: root/secpolicy
diff options
context:
space:
mode:
Diffstat (limited to 'secpolicy')
-rw-r--r--secpolicy/pamview.cpp44
-rw-r--r--secpolicy/pamview.h8
-rw-r--r--secpolicy/ppitem.cpp10
-rw-r--r--secpolicy/ppitem.h8
-rw-r--r--secpolicy/secpolicywin.cpp10
-rw-r--r--secpolicy/secpolicywin.h2
6 files changed, 41 insertions, 41 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);
}
diff --git a/secpolicy/pamview.h b/secpolicy/pamview.h
index ea41634..c2a6084 100644
--- a/secpolicy/pamview.h
+++ b/secpolicy/pamview.h
@@ -25,7 +25,7 @@
#ifndef _PAMVIEW_H
#define _PAMVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
class QListBox;
class QListView;
@@ -34,7 +34,7 @@ class PamView : public QWidget
{
Q_OBJECT
public:
- PamView(QWidget *parent = 0, const char *name = 0);
+ PamView(TQWidget *parent = 0, const char *name = 0);
virtual ~PamView();
protected:
@@ -42,8 +42,8 @@ protected:
void initServices();
private:
- QListBox *servicesLB;
- QListView *propertiesLV;
+ TQListBox *servicesLB;
+ TQListView *propertiesLV;
};
#endif
diff --git a/secpolicy/ppitem.cpp b/secpolicy/ppitem.cpp
index 05fb358..30ef550 100644
--- a/secpolicy/ppitem.cpp
+++ b/secpolicy/ppitem.cpp
@@ -22,13 +22,13 @@
*
*/
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "ppitem.h"
-PamPropertiesItem::PamPropertiesItem(QString fileName,
- QStringList properties,
- QListView *parent)
- : QListViewItem(parent)
+PamPropertiesItem::PamPropertiesItem(TQString fileName,
+ TQStringList properties,
+ TQListView *parent)
+ : TQListViewItem(parent)
{
int i = properties.count();
if (i > 0)
diff --git a/secpolicy/ppitem.h b/secpolicy/ppitem.h
index 591d729..d9204ae 100644
--- a/secpolicy/ppitem.h
+++ b/secpolicy/ppitem.h
@@ -25,16 +25,16 @@
#ifndef _PPITEM_H
#define _PPITEM_H
-#include <qlistview.h>
+#include <tqlistview.h>
class PamPropertiesItem : public QListViewItem
{
public:
- PamPropertiesItem(QString fileName, QStringList properties,
- QListView *parent);
+ PamPropertiesItem(TQString fileName, TQStringList properties,
+ TQListView *parent);
private:
- QString category, level, lib;
+ TQString category, level, lib;
};
#endif
diff --git a/secpolicy/secpolicywin.cpp b/secpolicy/secpolicywin.cpp
index 64a454d..f74c4e9 100644
--- a/secpolicy/secpolicywin.cpp
+++ b/secpolicy/secpolicywin.cpp
@@ -28,7 +28,7 @@
#include <kmenubar.h>
#include <kdialog.h>
#include <dcopclient.h>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include <kstdaccel.h>
#include "pamview.h"
@@ -41,11 +41,11 @@ SecPolicyWin::SecPolicyWin(const char *name)
setCentralWidget(view);
KMenuBar *mBar = menuBar();
- QPopupMenu *fileMenu = new QPopupMenu(this);
- fileMenu->insertItem(i18n("&Quit"), kapp, SLOT(closeAllWindows()), KStdAccel::shortcut(KStdAccel::Quit));
+ TQPopupMenu *fileMenu = new TQPopupMenu(this);
+ fileMenu->insertItem(i18n("&Quit"), kapp, TQT_SLOT(closeAllWindows()), KStdAccel::shortcut(KStdAccel::Quit));
mBar->insertItem(i18n("&File"), fileMenu);
- connect(kapp, SIGNAL(lastWindowClosed()), kapp, SLOT(quit()));
+ connect(kapp, TQT_SIGNAL(lastWindowClosed()), kapp, TQT_SLOT(quit()));
adjustSize();
// work around KTMainWindow sizing bug.
@@ -58,7 +58,7 @@ SecPolicyWin::~SecPolicyWin()
{
}
-void SecPolicyWin::closeEvent(QCloseEvent *e)
+void SecPolicyWin::closeEvent(TQCloseEvent *e)
{
e->accept();
}
diff --git a/secpolicy/secpolicywin.h b/secpolicy/secpolicywin.h
index a58b8a6..078fafa 100644
--- a/secpolicy/secpolicywin.h
+++ b/secpolicy/secpolicywin.h
@@ -36,7 +36,7 @@ public:
~SecPolicyWin();
protected:
- virtual void closeEvent(QCloseEvent *);
+ virtual void closeEvent(TQCloseEvent *);
private:
PamView *view;