summaryrefslogtreecommitdiffstats
path: root/plugin/smb4k_konqplugin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 22:30:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 22:30:35 +0000
commited6e59662040eb15573dae9c323450e9a720ac01 (patch)
treebe17632b1c7c05f3d669eb26b5634edbcb772bb7 /plugin/smb4k_konqplugin.h
parentc0875805b54444a0740d98a6d2c8fa05cd672fef (diff)
downloadsmb4k-ed6e59662040eb15573dae9c323450e9a720ac01.tar.gz
smb4k-ed6e59662040eb15573dae9c323450e9a720ac01.zip
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
Diffstat (limited to 'plugin/smb4k_konqplugin.h')
-rw-r--r--plugin/smb4k_konqplugin.h32
1 files changed, 17 insertions, 15 deletions
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 <konqsidebarplugin.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qvbox.h>
-#include <qwidgetstack.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqvbox.h>
+#include <tqwidgetstack.h>
#include <kpopupmenu.h>
#include <ktoolbar.h>
#include <khtml_part.h>
@@ -40,11 +40,12 @@
#include <kparts/factory.h>
-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 <konqsidebarplugin.h>
void openURLRequest(const KURL &url,