diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kicker/applets/trash/trashbutton.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-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/trash/trashbutton.cpp')
-rw-r--r-- | kicker/applets/trash/trashbutton.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 <qpopupmenu.h> -#include <qtooltip.h> +#include <tqpopupmenu.h> +#include <tqtooltip.h> #include <klocale.h> #include <krun.h> @@ -31,7 +31,7 @@ #include <konq_operations.h> #include <konq_popupmenu.h> -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(); } |