summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/msn/webcam
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/msn/webcam')
-rw-r--r--kopete/protocols/msn/webcam/libmimic/mimic-private.h6
-rw-r--r--kopete/protocols/msn/webcam/libmimic/mimic.c6
-rw-r--r--kopete/protocols/msn/webcam/mimicwrapper.cpp2
-rw-r--r--kopete/protocols/msn/webcam/msnwebcamdialog.cpp12
-rw-r--r--kopete/protocols/msn/webcam/msnwebcamdialog.h3
5 files changed, 15 insertions, 14 deletions
diff --git a/kopete/protocols/msn/webcam/libmimic/mimic-private.h b/kopete/protocols/msn/webcam/libmimic/mimic-private.h
index adf59291..245793fb 100644
--- a/kopete/protocols/msn/webcam/libmimic/mimic-private.h
+++ b/kopete/protocols/msn/webcam/libmimic/mimic-private.h
@@ -21,9 +21,9 @@
#include "mimic.h"
#define ENCODER_BUFFER_SIZE 16384
-#define ENCODER_QUALITY_DEFAULT 0
-#define ENCODER_QUALITY_MIN 0
-#define ENCODER_QUALITY_MAX 10000
+#define ENCODER_TQUALITY_DEFAULT 0
+#define ENCODER_TQUALITY_MIN 0
+#define ENCODER_TQUALITY_MAX 10000
struct _MimCtx {
gboolean encoder_initialized;
diff --git a/kopete/protocols/msn/webcam/libmimic/mimic.c b/kopete/protocols/msn/webcam/libmimic/mimic.c
index 61abf9e8..2013022d 100644
--- a/kopete/protocols/msn/webcam/libmimic/mimic.c
+++ b/kopete/protocols/msn/webcam/libmimic/mimic.c
@@ -155,7 +155,7 @@ gboolean mimic_encoder_init(MimCtx *ctx, const MimicResEnum resolution)
mimic_init(ctx, width, height);
/* Set a default quality setting. */
- ctx->quality = ENCODER_QUALITY_DEFAULT;
+ ctx->quality = ENCODER_TQUALITY_DEFAULT;
ctx->encoder_initialized = TRUE;
@@ -300,8 +300,8 @@ gboolean mimic_set_property(MimCtx *ctx, const gchar *name, gpointer data)
if (strcmp(name, "quality") == 0) {
gint new_quality = *((gint *) data);
- if (new_quality < ENCODER_QUALITY_MIN ||
- new_quality > ENCODER_QUALITY_MAX)
+ if (new_quality < ENCODER_TQUALITY_MIN ||
+ new_quality > ENCODER_TQUALITY_MAX)
{
return FALSE;
}
diff --git a/kopete/protocols/msn/webcam/mimicwrapper.cpp b/kopete/protocols/msn/webcam/mimicwrapper.cpp
index a9d3b131..75eb52cf 100644
--- a/kopete/protocols/msn/webcam/mimicwrapper.cpp
+++ b/kopete/protocols/msn/webcam/mimicwrapper.cpp
@@ -16,7 +16,7 @@
#include "libmimic/mimic.h"
-//#include <qbytearray.h>
+//#include <tqbytearray.h>
#include <kdebug.h>
#include <tqimage.h>
diff --git a/kopete/protocols/msn/webcam/msnwebcamdialog.cpp b/kopete/protocols/msn/webcam/msnwebcamdialog.cpp
index b0540cbb..e07aaebc 100644
--- a/kopete/protocols/msn/webcam/msnwebcamdialog.cpp
+++ b/kopete/protocols/msn/webcam/msnwebcamdialog.cpp
@@ -27,9 +27,9 @@
-MSNWebcamDialog::MSNWebcamDialog( const TQString& contact, TQWidget * parent, const char * name )
- : KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).arg( contact ),
- KDialogBase::Close, KDialogBase::Close, parent, name, false, true /*seperator*/ ),
+MSNWebcamDialog::MSNWebcamDialog( const TQString& contact, TQWidget * tqparent, const char * name )
+ : KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).tqarg( contact ),
+ KDialogBase::Close, KDialogBase::Close, tqparent, name, false, true /*seperator*/ ),
m_imageContainer( this )
{
setInitialSize( TQSize(320,290), true );
@@ -48,7 +48,7 @@ MSNWebcamDialog::MSNWebcamDialog( const TQString& contact, TQWidget * parent, co
{
kdDebug(14180) << k_funcinfo << "Adding webcam image container" << endl;
//m_imageContainer.setText( i18n( "No webcam image received" ) );
- //m_imageContainer.setAlignment( Qt::AlignCenter );
+ //m_imageContainer.tqsetAlignment( TQt::AlignCenter );
m_imageContainer.setMinimumSize(320,240);
}
show();
@@ -72,8 +72,8 @@ void MSNWebcamDialog::webcamClosed( int reason )
{
kdDebug(14180) << k_funcinfo << "webcam closed with reason?? " << reason <<endl;
//m_imageContainer.clear();
- //m_imageContainer.setText( i18n( "Webcam closed with reason %1" ).arg( TQString::number( reason ) ) );
- //m_imageContainer.setAlignment( Qt::AlignCenter );
+ //m_imageContainer.setText( i18n( "Webcam closed with reason %1" ).tqarg( TQString::number( reason ) ) );
+ //m_imageContainer.tqsetAlignment( TQt::AlignCenter );
//show();
}
diff --git a/kopete/protocols/msn/webcam/msnwebcamdialog.h b/kopete/protocols/msn/webcam/msnwebcamdialog.h
index d0b0b988..292eb410 100644
--- a/kopete/protocols/msn/webcam/msnwebcamdialog.h
+++ b/kopete/protocols/msn/webcam/msnwebcamdialog.h
@@ -35,8 +35,9 @@ class MSNContact;
class KOPETE_EXPORT MSNWebcamDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- MSNWebcamDialog( const TQString& contact, TQWidget* parent = 0, const char* name = 0 );
+ MSNWebcamDialog( const TQString& contact, TQWidget* tqparent = 0, const char* name = 0 );
~MSNWebcamDialog();
public slots: