From 395a904bff7b4d6ead445c342f7ac0c5fbf29121 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 17:00:31 +0000 Subject: TQt4 port kdeaddons This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun-plugins/oblique/menu.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'noatun-plugins/oblique/menu.cpp') diff --git a/noatun-plugins/oblique/menu.cpp b/noatun-plugins/oblique/menu.cpp index 3867f19..ae22592 100644 --- a/noatun-plugins/oblique/menu.cpp +++ b/noatun-plugins/oblique/menu.cpp @@ -7,8 +7,8 @@ #include "tree.h" -FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, File file) - : KPopupMenu(parent) +FileMenu::FileMenu(TQWidget *tqparent, Oblique *oblique, File file) + : KPopupMenu(tqparent) { if (file) mFiles.append(file); @@ -20,8 +20,8 @@ FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, File file) (new SliceListAction( i18n("&Slices"), oblique, - this, TQT_SLOT(toggleInSlice(Slice *)), - mFiles, this + TQT_TQOBJECT(this), TQT_SLOT(toggleInSlice(Slice *)), + mFiles, TQT_TQOBJECT(this) ))->plug(this); } @@ -39,8 +39,8 @@ static void addTo(TQValueList &files, TreeItem *item) } } -FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, TreeItem *items) - : KPopupMenu(parent) +FileMenu::FileMenu(TQWidget *tqparent, Oblique *oblique, TreeItem *items) + : KPopupMenu(tqparent) { addTo(mFiles, items); @@ -52,8 +52,8 @@ FileMenu::FileMenu(TQWidget *parent, Oblique *oblique, TreeItem *items) (new SliceListAction( i18n("&Slices"), oblique, - this, TQT_SLOT(toggleInSlice(Slice *)), - mFiles, this + TQT_TQOBJECT(this), TQT_SLOT(toggleInSlice(Slice *)), + mFiles,TQT_TQOBJECT(this) ))->plug(this); } @@ -67,7 +67,7 @@ void FileMenu::removeFromList() void FileMenu::properties() { - new ObliquePropertiesDialog(mFiles, parentWidget()); + new ObliquePropertiesDialog(mFiles, tqparentWidget()); } void FileMenu::toggleInSlice(Slice *slice) @@ -92,8 +92,8 @@ void FileMenu::toggleInSlice(Slice *slice) SliceListAction::SliceListAction( const TQString &text, Oblique *oblique, TQObject *reciever, const char *slot, - const TQValueList &files, TQObject *parent, const char *name - ) : KActionMenu(text, parent, name) + const TQValueList &files, TQObject *tqparent, const char *name + ) : KActionMenu(text, tqparent, name) { mFiles = files; mOblique = oblique; @@ -153,8 +153,8 @@ void SliceListAction::hit(int index) SchemaListAction::SchemaListAction( const TQString &text, TQObject *reciever, const char *slot, - TQObject *parent, const char *name - ) : KActionMenu(text, parent, name) + TQObject *tqparent, const char *name + ) : KActionMenu(text, tqparent, name) { mTree = 0; if (reciever) @@ -197,8 +197,8 @@ void SchemaListAction::hit(int index) -ObliquePropertiesDialog::ObliquePropertiesDialog(const TQValueList &files, TQWidget *parent) - : KPropertiesDialog(makeItems(files), parent), mFiles(files) +ObliquePropertiesDialog::ObliquePropertiesDialog(const TQValueList &files, TQWidget *tqparent) + : KPropertiesDialog(makeItems(files), tqparent), mFiles(files) { connect(this, TQT_SIGNAL(propertiesClosed()), TQT_SLOT(deleteLater())); connect(this, TQT_SIGNAL(applied()), TQT_SLOT(modified())); -- cgit v1.2.1