summaryrefslogtreecommitdiffstats
path: root/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp')
-rw-r--r--interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp b/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp
index 5db8f65d0..11fa58f27 100644
--- a/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp
+++ b/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp
@@ -1,9 +1,9 @@
#include "kfileaudiopreview.h"
-#include <qcheckbox.h>
-#include <qhbox.h>
-#include <qlayout.h>
-#include <qvgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqhbox.h>
+#include <tqlayout.h>
+#include <tqvgroupbox.h>
#include <kglobal.h>
#include <kconfig.h>
@@ -20,12 +20,12 @@
class KFileAudioPreviewFactory : public KLibFactory
{
protected:
- virtual QObject *createObject( QObject *parent, const char *name,
- const char *className, const QStringList & args)
+ virtual TQObject *createObject( TQObject *parent, const char *name,
+ const char *className, const TQStringList & args)
{
Q_UNUSED(className);
Q_UNUSED(args);
- return new KFileAudioPreview( dynamic_cast<QWidget*>( parent ), name );
+ return new KFileAudioPreview( dynamic_cast<TQWidget*>( parent ), name );
}
};
@@ -39,9 +39,9 @@ K_EXPORT_COMPONENT_FACTORY( kfileaudiopreview, KFileAudioPreviewFactory )
class KFileAudioPreview::KFileAudioPreviewPrivate
{
public:
- KFileAudioPreviewPrivate( QWidget *parent )
+ KFileAudioPreviewPrivate( TQWidget *parent )
{
- player = KParts::ComponentFactory::createInstanceFromQuery<KMediaPlayer::Player>( "KMediaPlayer/Player", QString::null, parent );
+ player = KParts::ComponentFactory::createInstanceFromQuery<KMediaPlayer::Player>( "KMediaPlayer/Player", TQString::null, parent );
}
~KFileAudioPreviewPrivate()
@@ -53,22 +53,22 @@ public:
};
-KFileAudioPreview::KFileAudioPreview( QWidget *parent, const char *name )
+KFileAudioPreview::KFileAudioPreview( TQWidget *parent, const char *name )
: KPreviewWidgetBase( parent, name )
{
KGlobal::locale()->insertCatalogue("kfileaudiopreview");
- QStringList formats = KDE::PlayObjectFactory::mimeTypes();
+ TQStringList formats = KDE::PlayObjectFactory::mimeTypes();
// ###
- QStringList::ConstIterator it = formats.begin();
+ TQStringList::ConstIterator it = formats.begin();
for ( ; it != formats.end(); ++it )
m_supportedFormats.insert( *it, (void*) 1 );
- QVGroupBox *box = new QVGroupBox( i18n("Media Player"), this );
- QVBoxLayout *layout = new QVBoxLayout( this );
+ TQVGroupBox *box = new TQVGroupBox( i18n("Media Player"), this );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
layout->addWidget( box );
- (void) new QWidget( box ); // spacer
+ (void) new TQWidget( box ); // spacer
d = new KFileAudioPreviewPrivate( 0L ); // not box -- being reparented anyway
if ( d->player ) // only if there actually is a component...
@@ -81,19 +81,19 @@ KFileAudioPreview::KFileAudioPreview( QWidget *parent, const char *name )
// So, reparent first the video widget, then the view.
if ( view->videoWidget() )
{
- QHBox *frame = new QHBox( box );
- frame->setFrameStyle( QFrame::Panel | QFrame::Sunken );
- frame->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
- view->videoWidget()->reparent( frame, QPoint(0,0) );
+ TQHBox *frame = new TQHBox( box );
+ frame->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
+ frame->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
+ view->videoWidget()->reparent( frame, TQPoint(0,0) );
}
- view->reparent( box, QPoint(0,0) );
+ view->reparent( box, TQPoint(0,0) );
}
- m_autoPlay = new QCheckBox( i18n("Play &automatically"), box );
+ m_autoPlay = new TQCheckBox( i18n("Play &automatically"), box );
KConfigGroup config( KGlobal::config(), ConfigGroup );
m_autoPlay->setChecked( config.readBoolEntry( "Autoplay sounds", true ) );
- connect( m_autoPlay, SIGNAL(toggled(bool)), SLOT(toggleAuto(bool)) );
+ connect( m_autoPlay, TQT_SIGNAL(toggled(bool)), TQT_SLOT(toggleAuto(bool)) );
}
KFileAudioPreview::~KFileAudioPreview()