From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmlibrarybrowser.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'kpovmodeler/pmlibrarybrowser.h') diff --git a/kpovmodeler/pmlibrarybrowser.h b/kpovmodeler/pmlibrarybrowser.h index b7a2d881..7c8a1899 100644 --- a/kpovmodeler/pmlibrarybrowser.h +++ b/kpovmodeler/pmlibrarybrowser.h @@ -40,7 +40,7 @@ class PMLibraryHandle; class PMPart; namespace KIO{ class Job; } -typedef TQDict QStringDict; +typedef TQDict TQStringDict; /** * Wrapper class for the treeview/dock widget @@ -48,11 +48,12 @@ typedef TQDict QStringDict; class PMLibraryBrowserView : public PMViewBase { Q_OBJECT + TQ_OBJECT public: /** * Default constructor */ - PMLibraryBrowserView( PMPart* part, TQWidget* parent, const char* name = 0 ); + PMLibraryBrowserView( PMPart* part, TQWidget* tqparent, const char* name = 0 ); /** */ virtual TQString viewType( ) const { return TQString( "librarybrowserview" ); } @@ -63,11 +64,12 @@ public: /** * This class provides a non-modal dialog to browse the available libraries. */ -class PMLibraryBrowserViewWidget: public QWidget +class PMLibraryBrowserViewWidget: public TQWidget { Q_OBJECT + TQ_OBJECT public: - PMLibraryBrowserViewWidget( TQWidget *parent, const char* name = NULL ); + PMLibraryBrowserViewWidget( TQWidget *tqparent, const char* name = NULL ); private slots: void resizeEvent( TQResizeEvent* ev ); @@ -110,9 +112,9 @@ public: virtual TQString viewType( ) const { return TQString( "librarybrowserview" ); } virtual TQString description( ) const; virtual TQString iconName( ) const { return TQString( "pmlibrarybrowserview" ); } - virtual PMViewBase* newInstance( TQWidget* parent, PMPart* part ) const + virtual PMViewBase* newInstance( TQWidget* tqparent, PMPart* part ) const { - return new PMLibraryBrowserView( part, parent ); + return new PMLibraryBrowserView( part, tqparent ); } }; -- cgit v1.2.1