summaryrefslogtreecommitdiffstats
path: root/kicker/applets/media/mediumbutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/applets/media/mediumbutton.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/applets/media/mediumbutton.cpp')
-rw-r--r--kicker/applets/media/mediumbutton.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kicker/applets/media/mediumbutton.cpp b/kicker/applets/media/mediumbutton.cpp
index e8007a989..5be2acbab 100644
--- a/kicker/applets/media/mediumbutton.cpp
+++ b/kicker/applets/media/mediumbutton.cpp
@@ -19,13 +19,13 @@
#include "mediumbutton.h"
-#include <qapplication.h>
-#include <qclipboard.h>
-#include <qpainter.h>
-#include <qdrawutil.h>
-#include <qpopupmenu.h>
-#include <qstyle.h>
-#include <qtooltip.h>
+#include <tqapplication.h>
+#include <tqclipboard.h>
+#include <tqpainter.h>
+#include <tqdrawutil.h>
+#include <tqpopupmenu.h>
+#include <tqstyle.h>
+#include <tqtooltip.h>
#include <kmessagebox.h>
#include <kmimetype.h>
@@ -44,13 +44,13 @@
#include <konq_popupmenu.h>
#include <konq_drag.h>
-MediumButton::MediumButton(QWidget *parent, const KFileItem &fileItem)
+MediumButton::MediumButton(TQWidget *parent, const KFileItem &fileItem)
: PanelPopupButton(parent), mActions(this, this), mFileItem(fileItem)
{
- KAction *a = KStdAction::paste(this, SLOT(slotPaste()),
+ KAction *a = KStdAction::paste(this, TQT_SLOT(slotPaste()),
&mActions, "pasteto");
a->setShortcut(0);
- a = KStdAction::copy(this, SLOT(slotCopy()), &mActions, "copy");
+ a = KStdAction::copy(this, TQT_SLOT(slotCopy()), &mActions, "copy");
a->setShortcut(0);
setBackgroundOrigin(AncestorOrigin);
@@ -63,18 +63,18 @@ MediumButton::MediumButton(QWidget *parent, const KFileItem &fileItem)
refreshType();
- connect(&mOpenTimer, SIGNAL(timeout()), SLOT(slotDragOpen()));
+ connect(&mOpenTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotDragOpen()));
// Activate this code only if we find a way to have both an
// action and a popup menu for the same kicker button
- //connect(this, SIGNAL(clicked()), this, SLOT(slotClicked()));
+ //connect(this, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClicked()));
- setPopup(new QPopupMenu());
+ setPopup(new TQPopupMenu());
}
MediumButton::~MediumButton()
{
- QPopupMenu *menu = popup();
+ TQPopupMenu *menu = popup();
setPopup(0);
delete menu;
}
@@ -94,7 +94,7 @@ void MediumButton::setFileItem(const KFileItem &fileItem)
void MediumButton::initPopup()
{
- QPopupMenu *old_popup = popup();
+ TQPopupMenu *old_popup = popup();
KFileItemList items;
items.append(&mFileItem);
@@ -122,7 +122,7 @@ void MediumButton::initPopup()
void MediumButton::refreshType()
{
KMimeType::Ptr mime = mFileItem.determineMimeType();
- QToolTip::add(this, mime->comment());
+ TQToolTip::add(this, mime->comment());
setIcon(mFileItem.iconName());
}
@@ -144,10 +144,10 @@ void MediumButton::slotCopy()
{
KonqDrag * obj = KonqDrag::newDrag(mFileItem.url(), false);
- QApplication::clipboard()->setData( obj );
+ TQApplication::clipboard()->setData( obj );
}
-void MediumButton::dragEnterEvent(QDragEnterEvent* e)
+void MediumButton::dragEnterEvent(TQDragEnterEvent* e)
{
if (mFileItem.isWritable())
{
@@ -156,14 +156,14 @@ void MediumButton::dragEnterEvent(QDragEnterEvent* e)
}
}
-void MediumButton::dragLeaveEvent(QDragLeaveEvent* e)
+void MediumButton::dragLeaveEvent(TQDragLeaveEvent* e)
{
mOpenTimer.stop();
PanelPopupButton::dragLeaveEvent( e );
}
-void MediumButton::dropEvent(QDropEvent *e)
+void MediumButton::dropEvent(TQDropEvent *e)
{
mOpenTimer.stop();
@@ -175,7 +175,7 @@ void MediumButton::slotDragOpen()
mFileItem.run();
}
-QString MediumButton::tileName()
+TQString MediumButton::tileName()
{
return mFileItem.text();
}