From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/plugins/motionautoaway/COPYING.motion | 4 +- kopete/plugins/motionautoaway/motionawayplugin.cpp | 8 ++-- kopete/plugins/motionautoaway/motionawayplugin.h | 3 +- .../motionautoaway/motionawaypreferences.cpp | 4 +- .../plugins/motionautoaway/motionawaypreferences.h | 3 +- kopete/plugins/motionautoaway/motionawayprefs.ui | 48 +++++++++++----------- 6 files changed, 36 insertions(+), 34 deletions(-) (limited to 'kopete/plugins/motionautoaway') diff --git a/kopete/plugins/motionautoaway/COPYING.motion b/kopete/plugins/motionautoaway/COPYING.motion index 0b84a43f..0a56ad07 100644 --- a/kopete/plugins/motionautoaway/COPYING.motion +++ b/kopete/plugins/motionautoaway/COPYING.motion @@ -59,7 +59,7 @@ modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - 0. This License applies to any program or other work which contains + 0. This License applies to any program or other work which tqcontains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" @@ -154,7 +154,7 @@ Sections 1 and 2 above provided that you also do one of the following: The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any +code means all the source code for all modules it tqcontains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include diff --git a/kopete/plugins/motionautoaway/motionawayplugin.cpp b/kopete/plugins/motionautoaway/motionawayplugin.cpp index 8dbd8853..da4e5431 100644 --- a/kopete/plugins/motionautoaway/motionawayplugin.cpp +++ b/kopete/plugins/motionautoaway/motionawayplugin.cpp @@ -79,7 +79,7 @@ typedef __signed__ long long __s64; #define DEF_WIDTH 352 #define DEF_HEIGHT 288 -#define DEF_QUALITY 50 +#define DEF_TQUALITY 50 #define DEF_CHANGES 5000 #define DEF_POLL_INTERVAL 1500 @@ -92,14 +92,14 @@ typedef __signed__ long long __s64; typedef KGenericFactory MotionAwayPluginFactory; K_EXPORT_COMPONENT_FACTORY( kopete_motionaway, MotionAwayPluginFactory( "kopete_motionaway" ) ) -MotionAwayPlugin::MotionAwayPlugin( TQObject *parent, const char *name, const TQStringList & /* args */ ) -: Kopete::Plugin( MotionAwayPluginFactory::instance(), parent, name ) +MotionAwayPlugin::MotionAwayPlugin( TQObject *tqparent, const char *name, const TQStringList & /* args */ ) +: Kopete::Plugin( MotionAwayPluginFactory::instance(), tqparent, name ) { kdDebug(14305) << k_funcinfo << "Called." << endl; /* This should be read from config someday may be */ m_width = DEF_WIDTH; m_height = DEF_HEIGHT; - m_quality = DEF_QUALITY; + m_quality = DEF_TQUALITY; m_maxChanges = DEF_CHANGES; m_gap = DEF_GAP; diff --git a/kopete/plugins/motionautoaway/motionawayplugin.h b/kopete/plugins/motionautoaway/motionawayplugin.h index c15caa3a..c966b832 100644 --- a/kopete/plugins/motionautoaway/motionawayplugin.h +++ b/kopete/plugins/motionautoaway/motionawayplugin.h @@ -36,9 +36,10 @@ class TQTimer; class MotionAwayPlugin : public Kopete::Plugin { Q_OBJECT + TQ_OBJECT public: - MotionAwayPlugin( TQObject *parent, const char *name, const TQStringList &args ); + MotionAwayPlugin( TQObject *tqparent, const char *name, const TQStringList &args ); ~MotionAwayPlugin(); public slots: diff --git a/kopete/plugins/motionautoaway/motionawaypreferences.cpp b/kopete/plugins/motionautoaway/motionawaypreferences.cpp index 889d4d30..46697051 100644 --- a/kopete/plugins/motionautoaway/motionawaypreferences.cpp +++ b/kopete/plugins/motionautoaway/motionawaypreferences.cpp @@ -30,8 +30,8 @@ typedef KGenericFactory MotionAwayPreferencesFactory; K_EXPORT_COMPONENT_FACTORY( kcm_kopete_motionaway, MotionAwayPreferencesFactory("kcm_kopete_motionaway")) -MotionAwayPreferences::MotionAwayPreferences(TQWidget *parent, const char* /*name*/, const TQStringList &args) - : KCModule(MotionAwayPreferencesFactory::instance(), parent, args) +MotionAwayPreferences::MotionAwayPreferences(TQWidget *tqparent, const char* /*name*/, const TQStringList &args) + : KCModule(MotionAwayPreferencesFactory::instance(), tqparent, args) { // Add actuall widget generated from ui file. ( new TQVBoxLayout( this ) )->setAutoAdd( true ); diff --git a/kopete/plugins/motionautoaway/motionawaypreferences.h b/kopete/plugins/motionautoaway/motionawaypreferences.h index c93784d3..246541d5 100644 --- a/kopete/plugins/motionautoaway/motionawaypreferences.h +++ b/kopete/plugins/motionautoaway/motionawaypreferences.h @@ -29,8 +29,9 @@ class motionawayPrefsUI; class MotionAwayPreferences : public KCModule { Q_OBJECT + TQ_OBJECT public: - MotionAwayPreferences(TQWidget *parent = 0, const char *name = 0, const TQStringList &args = TQStringList()); + MotionAwayPreferences(TQWidget *tqparent = 0, const char *name = 0, const TQStringList &args = TQStringList()); virtual void save(); virtual void load(); diff --git a/kopete/plugins/motionautoaway/motionawayprefs.ui b/kopete/plugins/motionautoaway/motionawayprefs.ui index 134f939a..e43ae524 100644 --- a/kopete/plugins/motionautoaway/motionawayprefs.ui +++ b/kopete/plugins/motionautoaway/motionawayprefs.ui @@ -1,7 +1,7 @@ motionawayPrefsUI Duncan Mac-Vicar P. - + motionawayPrefsUI @@ -25,7 +25,7 @@ unnamed - + textLabel1 @@ -47,7 +47,7 @@ Horizontal - + groupBox2 @@ -58,15 +58,15 @@ unnamed - + - layout21 + tqlayout21 unnamed - + TextLabel2_2 @@ -87,7 +87,7 @@ Expanding - + 95 20 @@ -114,7 +114,7 @@ Fixed - + 20 20 @@ -123,7 +123,7 @@ - + groupBox1 @@ -134,15 +134,15 @@ unnamed - + - layout5 + tqlayout5 unnamed - + BecomeAvailableWithActivity @@ -163,7 +163,7 @@ Expanding - + 30 20 @@ -172,15 +172,15 @@ - + - layout6 + tqlayout6 unnamed - + TextLabel2 @@ -201,7 +201,7 @@ Expanding - + 20 20 @@ -210,9 +210,9 @@ - + - layout16 + tqlayout16 @@ -223,7 +223,7 @@ AwayTimeout - + textLabel2 @@ -241,7 +241,7 @@ Expanding - + 180 20 @@ -260,7 +260,7 @@ Fixed - + 20 20 @@ -279,7 +279,7 @@ Fixed - + 20 20 @@ -288,7 +288,7 @@ - + klineedit.h knuminput.h -- cgit v1.2.1