summaryrefslogtreecommitdiffstats
path: root/ksysv/trash.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /ksysv/trash.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysv/trash.cpp')
-rw-r--r--ksysv/trash.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/ksysv/trash.cpp b/ksysv/trash.cpp
index 8420687..aab746c 100644
--- a/ksysv/trash.cpp
+++ b/ksysv/trash.cpp
@@ -14,9 +14,9 @@
// Trash Can
-#include <qtooltip.h>
-#include <qlabel.h>
-#include <qpainter.h>
+#include <tqtooltip.h>
+#include <tqlabel.h>
+#include <tqpainter.h>
#include <kapplication.h>
#include <kiconloader.h>
@@ -29,23 +29,23 @@
#include "ActionList.h"
#include "trash.h"
-KSVTrash::KSVTrash (QWidget* parent, const char* name)
- : QFrame (parent, name),
+KSVTrash::KSVTrash (TQWidget* parent, const char* name)
+ : TQFrame (parent, name),
mKIL (KGlobal::iconLoader()),
- mLabel (new QLabel(this)),
+ mLabel (new TQLabel(this)),
mOpen (false)
{
setLineWidth(1);
setMidLineWidth(0);
- setFrameStyle (QFrame::StyledPanel | QFrame::Sunken);
+ setFrameStyle (TQFrame::StyledPanel | TQFrame::Sunken);
mLabel->setPixmap(mKIL->loadIcon("trashcan_empty", KIcon::Desktop));
mPixmapWidth = mLabel->pixmap()->width();
mLabel->setGeometry(5, 7, mPixmapWidth, mPixmapWidth);
- QToolTip::add(mLabel, i18n("Drag here to remove services"));
- QToolTip::add(this, i18n("Drag here to remove services"));
+ TQToolTip::add(mLabel, i18n("Drag here to remove services"));
+ TQToolTip::add(this, i18n("Drag here to remove services"));
setMinimumSize(sizeHint());
setAcceptDrops(true);
@@ -58,7 +58,7 @@ KSVTrash::~KSVTrash()
{
}
-void KSVTrash::dropEvent (QDropEvent* e)
+void KSVTrash::dropEvent (TQDropEvent* e)
{
KSVData data;
KSVDragList* list = static_cast<KSVDragList*> (e->source());
@@ -80,12 +80,12 @@ void KSVTrash::dropEvent (QDropEvent* e)
}
}
-void KSVTrash::dragMoveEvent ( QDragMoveEvent* e )
+void KSVTrash::dragMoveEvent ( TQDragMoveEvent* e )
{
if (e->provides ("application/x-ksysv") &&
e->source() && strcmp (e->source()->name(), "Scripts"))
{
- QPainter p;
+ TQPainter p;
p.begin(mLabel);
p.drawPixmap( 0, 0, mKIL->loadIcon("trashcan_full", KIcon::Desktop) );
@@ -98,7 +98,7 @@ void KSVTrash::dragMoveEvent ( QDragMoveEvent* e )
e->ignore();
}
-void KSVTrash::dragLeaveEvent ( QDragLeaveEvent* )
+void KSVTrash::dragLeaveEvent ( TQDragLeaveEvent* )
{
if (mOpen)
{
@@ -107,22 +107,22 @@ void KSVTrash::dragLeaveEvent ( QDragLeaveEvent* )
}
}
-bool KSVTrash::eventFilter( QObject *, QEvent *e )
+bool KSVTrash::eventFilter( TQObject *, TQEvent *e )
{
switch (e->type())
{
- case QEvent::DragMove:
- dragMoveEvent ( static_cast<QDragMoveEvent*> (e) );
+ case TQEvent::DragMove:
+ dragMoveEvent ( static_cast<TQDragMoveEvent*> (e) );
return true;
break;
- case QEvent::DragLeave:
- dragLeaveEvent ( static_cast<QDragLeaveEvent*> (e) );
+ case TQEvent::DragLeave:
+ dragLeaveEvent ( static_cast<TQDragLeaveEvent*> (e) );
return true;
break;
- case QEvent::Drop:
- dropEvent ( static_cast<QDropEvent*> (e) );
+ case TQEvent::Drop:
+ dropEvent ( static_cast<TQDropEvent*> (e) );
return true;
break;
@@ -131,9 +131,9 @@ bool KSVTrash::eventFilter( QObject *, QEvent *e )
}
}
-QSize KSVTrash::sizeHint() const
+TQSize KSVTrash::sizeHint() const
{
- static QSize size = QSize (mPixmapWidth + 2 * 5, mPixmapWidth + 2 * 7);
+ static TQSize size = TQSize (mPixmapWidth + 2 * 5, mPixmapWidth + 2 * 7);
return size;
}