From ed6e59662040eb15573dae9c323450e9a720ac01 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 22:30:35 +0000 Subject: TQt4 port smb4k This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/smb4k@1239034 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- plugin/smb4k_konqplugin.h | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'plugin/smb4k_konqplugin.h') diff --git a/plugin/smb4k_konqplugin.h b/plugin/smb4k_konqplugin.h index 7f57324..fbefb26 100644 --- a/plugin/smb4k_konqplugin.h +++ b/plugin/smb4k_konqplugin.h @@ -26,10 +26,10 @@ #endif #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -40,11 +40,12 @@ #include -class smb4kWidget : public QVBox +class smb4kWidget : public TQVBox { Q_OBJECT + TQ_OBJECT public: - smb4kWidget( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ); + smb4kWidget( TQWidget * tqparent = 0, const char * name = 0, WFlags f = 0 ); private: @@ -53,25 +54,26 @@ private: class KonqSidebar_Smb4K : public KonqSidebarPlugin { Q_OBJECT + TQ_OBJECT public: /** * Construct a @ref KonqSidebarPlugin. * * @param inst The sidebar's kinstance class. - * @param parent The sidebar internal button info class responsible for this plugin. + * @param tqparent The sidebar internal button info class responsible for this plugin. * @param widgetParent The container which will contain the plugins widget. * @param desktopName The filename of the configuration file. - * @param name A Qt object name for your plugin. + * @param name A TQt object name for your plugin. **/ - KonqSidebar_Smb4K(KInstance *inst,QObject *parent,QWidget *widgetParent, QString &desktopName, const char* name=0); + KonqSidebar_Smb4K(KInstance *inst,TQObject *tqparent,TQWidget *widgetParent, TQString &desktopName, const char* name=0); /** destructor */ ~KonqSidebar_Smb4K(); KHTMLPart* m_part; - virtual QWidget *getWidget(){ return (QWidget*)widget;} - virtual void *provides(const QString &) {return 0;} - void emitStatusBarText (const QString &) {;} + virtual TQWidget *getWidget(){ return (TQWidget*)widget;} + virtual void *provides(const TQString &) {return 0;} + void emitStatusBarText (const TQString &) {;} private: /** @@ -90,7 +92,7 @@ protected: */ smb4kWidget *widget; - QString currentKonquerorURL; + TQString currentKonquerorURL; virtual void handleURL(const KURL &url); @@ -117,7 +119,7 @@ protected slots: /** * Called from mounter when a share is mounted */ - void slotMountedShare( const QString & ); + void slotMountedShare( const TQString & ); /** * Called from the mounter just before a share is unmounted. This slot * changes the URL to the user's home so that we can unmount the share @@ -126,7 +128,7 @@ protected slots: * @param mountpoint The mount point of the share that's going to * be unmounted. */ - void slotPrepareUnmount( const QString &mounpoint ); + void slotPrepareUnmount( const TQString &mounpoint ); signals: // see void openURLRequest(const KURL &url, -- cgit v1.2.1