summaryrefslogtreecommitdiffstats
path: root/kaboodle/userinterface.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kaboodle/userinterface.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaboodle/userinterface.cpp')
-rw-r--r--kaboodle/userinterface.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kaboodle/userinterface.cpp b/kaboodle/userinterface.cpp
index eca95c75..72449fcf 100644
--- a/kaboodle/userinterface.cpp
+++ b/kaboodle/userinterface.cpp
@@ -34,10 +34,10 @@
#include <kstatusbar.h>
#include <kstdaction.h>
#include <kurldrag.h>
-#include <qdragobject.h>
-#include <qlayout.h>
-#include <qlcdnumber.h>
-#include <qvbox.h>
+#include <tqdragobject.h>
+#include <tqlayout.h>
+#include <tqlcdnumber.h>
+#include <tqvbox.h>
#include <kkeydialog.h>
#include <kvideowidget.h>
@@ -48,19 +48,19 @@
#include "view.h"
#include "userinterface.h"
-Kaboodle::UserInterface::UserInterface(QWidget *parent, const KURL &initialFile)
+Kaboodle::UserInterface::UserInterface(TQWidget *parent, const KURL &initialFile)
: KParts::MainWindow(parent)
{
setAcceptDrops(true);
setStandardToolBarMenuEnabled(true);
- KStdAction::open(this, SLOT(fileOpen()), actionCollection());
- KStdAction::quit(kapp, SLOT(quit()), actionCollection());
- KStdAction::preferences(this, SLOT(playerPreferences()), actionCollection());
- KStdAction::keyBindings( this, SLOT( slotConfigureKeys() ), actionCollection() );
+ KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
+ KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(playerPreferences()), actionCollection());
+ KStdAction::keyBindings( this, TQT_SLOT( slotConfigureKeys() ), actionCollection() );
- menubarAction = KStdAction::showMenubar(this, SLOT(showMenubar()), actionCollection());
- propertiesAction = new KAction(i18n("Properties"), 0, this, SLOT(properties()), actionCollection(), "properties");
+ menubarAction = KStdAction::showMenubar(this, TQT_SLOT(showMenubar()), actionCollection());
+ propertiesAction = new KAction(i18n("Properties"), 0, this, TQT_SLOT(properties()), actionCollection(), "properties");
propertiesAction->setEnabled(false);
part = new Player(this, "KaboodlePlayer", this, "KaboodleView");
@@ -72,8 +72,8 @@ Kaboodle::UserInterface::UserInterface(QWidget *parent, const KURL &initialFile)
statusBar()->show();
- connect(part, SIGNAL(setWindowCaption(const QString &)), this, SLOT(updateTitle(const QString &)));
- connect(part->view(), SIGNAL(adaptSize(int, int)), this, SLOT(adaptSize(int, int)));
+ connect(part, TQT_SIGNAL(setWindowCaption(const TQString &)), this, TQT_SLOT(updateTitle(const TQString &)));
+ connect(part->view(), TQT_SIGNAL(adaptSize(int, int)), this, TQT_SLOT(adaptSize(int, int)));
setIcon(SmallIcon("kaboodle"));
@@ -109,7 +109,7 @@ Kaboodle::UserInterface::~UserInterface(void)
void Kaboodle::UserInterface::fileOpen(void)
{
- KURL file(KFileDialog::getOpenURL(QString::null, KDE::PlayObjectFactory::mimeTypes().join(" "), this, i18n("Select File to Play")));
+ KURL file(KFileDialog::getOpenURL(TQString::null, KDE::PlayObjectFactory::mimeTypes().join(" "), this, i18n("Select File to Play")));
if(file.isValid())
{
part->openURL(file);
@@ -117,13 +117,13 @@ void Kaboodle::UserInterface::fileOpen(void)
}
}
-void Kaboodle::UserInterface::dragEnterEvent(QDragEnterEvent *event)
+void Kaboodle::UserInterface::dragEnterEvent(TQDragEnterEvent *event)
{
// accept uri drops only
event->accept(KURLDrag::canDecode(event));
}
-void Kaboodle::UserInterface::dropEvent(QDropEvent *event)
+void Kaboodle::UserInterface::dropEvent(TQDropEvent *event)
{
KURL::List list;
if (KURLDrag::decode(event, list))
@@ -157,7 +157,7 @@ void Kaboodle::UserInterface::showMenubar(void)
menuBar()->hide();
}
-void Kaboodle::UserInterface::updateTitle(const QString &text)
+void Kaboodle::UserInterface::updateTitle(const TQString &text)
{
setCaption(text);
statusBar()->message(text);