diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-18 20:34:22 +0000 |
commit | b09bffed6b43262948018dfb0f11890850ddf7c1 (patch) | |
tree | 138696bfcc7ac01070d0e8ecaa1cdf94611a2bd8 /secpolicy | |
parent | 6d43944a7130b9d1b4ae3fba37b774aced8612cf (diff) | |
download | tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.tar.gz tdeadmin-b09bffed6b43262948018dfb0f11890850ddf7c1.zip |
TQt4 port kdeadmin
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1237416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'secpolicy')
-rw-r--r-- | secpolicy/pamview.cpp | 8 | ||||
-rw-r--r-- | secpolicy/pamview.h | 5 | ||||
-rw-r--r-- | secpolicy/ppitem.cpp | 4 | ||||
-rw-r--r-- | secpolicy/ppitem.h | 4 | ||||
-rw-r--r-- | secpolicy/secpolicywin.cpp | 2 |
5 files changed, 12 insertions, 11 deletions
diff --git a/secpolicy/pamview.cpp b/secpolicy/pamview.cpp index 90a804a..895ecd1 100644 --- a/secpolicy/pamview.cpp +++ b/secpolicy/pamview.cpp @@ -40,8 +40,8 @@ #include <stdlib.h> -PamView::PamView(TQWidget *parent, const char *name) - : TQWidget(parent, name) +PamView::PamView(TQWidget *tqparent, const char *name) + : TQWidget(tqparent, name) { TQHBoxLayout *topl = new TQHBoxLayout(this); @@ -85,8 +85,8 @@ void PamView::initServices() exit(1); } - const QFileInfoList *list = d.entryInfoList(); - QFileInfoListIterator it(*list); + const TQFileInfoList *list = d.entryInfoList(); + TQFileInfoListIterator it(*list); TQFileInfo *fi; while ((fi = it.current()) != 0) { servicesLB->insertItem(fi->fileName()); diff --git a/secpolicy/pamview.h b/secpolicy/pamview.h index 2ebd31c..2ce5ddc 100644 --- a/secpolicy/pamview.h +++ b/secpolicy/pamview.h @@ -30,11 +30,12 @@ class TQListBox; class TQListView; -class PamView : public QWidget +class PamView : public TQWidget { Q_OBJECT + TQ_OBJECT public: - PamView(TQWidget *parent = 0, const char *name = 0); + PamView(TQWidget *tqparent = 0, const char *name = 0); virtual ~PamView(); protected: diff --git a/secpolicy/ppitem.cpp b/secpolicy/ppitem.cpp index 30ef550..c722b3b 100644 --- a/secpolicy/ppitem.cpp +++ b/secpolicy/ppitem.cpp @@ -27,8 +27,8 @@ PamPropertiesItem::PamPropertiesItem(TQString fileName, TQStringList properties, - TQListView *parent) - : TQListViewItem(parent) + TQListView *tqparent) + : TQListViewItem(tqparent) { int i = properties.count(); if (i > 0) diff --git a/secpolicy/ppitem.h b/secpolicy/ppitem.h index d9204ae..5959212 100644 --- a/secpolicy/ppitem.h +++ b/secpolicy/ppitem.h @@ -27,11 +27,11 @@ #include <tqlistview.h> -class PamPropertiesItem : public QListViewItem +class PamPropertiesItem : public TQListViewItem { public: PamPropertiesItem(TQString fileName, TQStringList properties, - TQListView *parent); + TQListView *tqparent); private: TQString category, level, lib; diff --git a/secpolicy/secpolicywin.cpp b/secpolicy/secpolicywin.cpp index f74c4e9..1788ee1 100644 --- a/secpolicy/secpolicywin.cpp +++ b/secpolicy/secpolicywin.cpp @@ -49,7 +49,7 @@ SecPolicyWin::SecPolicyWin(const char *name) adjustSize(); // work around KTMainWindow sizing bug. - resize(sizeHint().width(), sizeHint().height() + mBar->height() + + resize(tqsizeHint().width(), tqsizeHint().height() + mBar->height() + KDialog::marginHint()); show(); } |