From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kicker/applets/trash/trashbutton.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kicker/applets/trash/trashbutton.cpp') diff --git a/kicker/applets/trash/trashbutton.cpp b/kicker/applets/trash/trashbutton.cpp index e6934a983..eb036c119 100644 --- a/kicker/applets/trash/trashbutton.cpp +++ b/kicker/applets/trash/trashbutton.cpp @@ -19,8 +19,8 @@ #include "trashbutton.h" -#include -#include +#include +#include #include #include @@ -31,7 +31,7 @@ #include #include -TrashButton::TrashButton(QWidget *parent) +TrashButton::TrashButton(TQWidget *parent) : PanelPopupButton(parent), mActions(this, this), mFileItem(KFileItem::Unknown, KFileItem::Unknown, "trash:/") { @@ -39,7 +39,7 @@ TrashButton::TrashButton(QWidget *parent) KIO::NetAccess::stat("trash:/", entry, 0L); mFileItem.assign(KFileItem(entry, "trash:/")); - KAction *a = KStdAction::paste(this, SLOT(slotPaste()), + KAction *a = KStdAction::paste(this, TQT_SLOT(slotPaste()), &mActions, "paste"); a->setShortcut(0); @@ -53,9 +53,9 @@ TrashButton::TrashButton(QWidget *parent) // 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()); } TrashButton::~TrashButton() @@ -67,18 +67,18 @@ void TrashButton::setItemCount(int count) if (count==0) { setIcon( "trashcan_empty" ); - QToolTip::add(this, i18n("Empty")); + TQToolTip::add(this, i18n("Empty")); } else { setIcon( "trashcan_full" ); - QToolTip::add(this, i18n("One item", "%n items", count)); + TQToolTip::add(this, i18n("One item", "%n items", count)); } } void TrashButton::initPopup() { - QPopupMenu *old_popup = popup(); + TQPopupMenu *old_popup = popup(); KFileItemList items; items.append(&mFileItem); @@ -117,17 +117,17 @@ void TrashButton::slotPaste() KonqOperations::doPaste(this, mFileItem.url()); } -void TrashButton::dragEnterEvent(QDragEnterEvent* e) +void TrashButton::dragEnterEvent(TQDragEnterEvent* e) { e->accept(true); } -void TrashButton::dropEvent(QDropEvent *e) +void TrashButton::dropEvent(TQDropEvent *e) { KonqOperations::doDrop(0L, mFileItem.url(), e, this); } -QString TrashButton::tileName() +TQString TrashButton::tileName() { return mFileItem.name(); } -- cgit v1.2.1