diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-04 19:54:24 +0000 |
commit | d7633c195a464e4d344ada9eea61afd10110598a (patch) | |
tree | 1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/kdesvn_part.h | |
parent | 3fa7eb804f67b2789f128075cc2522f398640250 (diff) | |
download | tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip |
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kdesvn_part.h')
-rw-r--r-- | src/kdesvn_part.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/kdesvn_part.h b/src/kdesvn_part.h index 44dce7a..c07c375 100644 --- a/src/kdesvn_part.h +++ b/src/kdesvn_part.h @@ -30,7 +30,7 @@ #include <kparts/browserextension.h> class kdesvnView; -class QPainter; +class TQPainter; class KURL; class KdesvnBrowserExtension; class KAboutApplication; @@ -46,15 +46,16 @@ class KAboutApplication; class KDESVN_EXPORT kdesvnPart : public KParts::ReadOnlyPart { Q_OBJECT + TQ_OBJECT public: /** * Default constructor */ - kdesvnPart(QWidget *parentWidget, const char *widgetName, - QObject *parent, const char *name, const QStringList&); + kdesvnPart(TQWidget *tqparentWidget, const char *widgetName, + TQObject *tqparent, const char *name, const TQStringList&); - kdesvnPart(QWidget *parentWidget, const char *widgetName, - QObject *parent, const char *name,bool ownapp, const QStringList&); + kdesvnPart(TQWidget *tqparentWidget, const char *widgetName, + TQObject *tqparent, const char *name,bool ownapp, const TQStringList&); /** * Destructor @@ -68,7 +69,7 @@ signals: void settingsChanged(); public slots: - virtual void slotDispPopup(const QString&,QWidget**target); + virtual void slotDispPopup(const TQString&,TQWidget**target); virtual void slotFileProperties(); virtual bool openURL(const KURL&); virtual void slotSshAdd(); @@ -81,13 +82,13 @@ protected: virtual void setupActions(); KAboutApplication* m_aboutDlg; - void init(QWidget *parentWidget, const char *widgetName,bool full); + void init(TQWidget *tqparentWidget, const char *widgetName,bool full); protected slots: virtual void slotLogFollowNodes(bool); virtual void slotDisplayIgnored(bool); virtual void slotDisplayUnkown(bool); - virtual void slotUrlChanged(const QString&); + virtual void slotUrlChanged(const TQString&); void reportBug(); void showAboutApplication(); void appHelpActivated(); @@ -96,7 +97,7 @@ protected slots: private: kdesvnView *m_view; KdesvnBrowserExtension*m_browserExt; - static QString m_Extratext; + static TQString m_Extratext; protected slots: void slotSettingsChanged(); protected slots: @@ -111,16 +112,17 @@ class KCmdLineArgs; class KDESVN_EXPORT cFactory : public KParts::Factory { Q_OBJECT + TQ_OBJECT public: cFactory():KParts::Factory(){} virtual ~cFactory(); - virtual KParts::Part* createPartObject( QWidget *parentWidget, const char *widgetName, - QObject *parent, const char *name, - const char *classname, const QStringList &args ); - virtual KParts::Part* createAppPart( QWidget *parentWidget, const char *widgetName, - QObject *parent, const char *name, - const char *classname, const QStringList &args ); - virtual commandline_part*createCommandIf(QObject*parent,const char*name, KCmdLineArgs *args); + virtual KParts::Part* createPartObject( TQWidget *tqparentWidget, const char *widgetName, + TQObject *tqparent, const char *name, + const char *classname, const TQStringList &args ); + virtual KParts::Part* createAppPart( TQWidget *tqparentWidget, const char *widgetName, + TQObject *tqparent, const char *name, + const char *classname, const TQStringList &args ); + virtual commandline_part*createCommandIf(TQObject*tqparent,const char*name, KCmdLineArgs *args); static KInstance* instance(); private: @@ -134,6 +136,7 @@ typedef cFactory kdesvnPartFactory; class KPARTS_EXPORT KdesvnBrowserExtension : public KParts::BrowserExtension { Q_OBJECT + TQ_OBJECT public: KdesvnBrowserExtension( kdesvnPart * ); virtual ~KdesvnBrowserExtension(); |