diff options
author | Slávek Banko <[email protected]> | 2013-07-27 16:57:53 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-27 18:48:46 +0200 |
commit | 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch) | |
tree | 4655c7263ca5c64d23d10167cb459dd9cb253815 /src/kerrylabel.cpp | |
parent | 88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff) | |
download | tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip |
Initial TQt conversion
Diffstat (limited to 'src/kerrylabel.cpp')
-rw-r--r-- | src/kerrylabel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kerrylabel.cpp b/src/kerrylabel.cpp index 4169138..9c85025 100644 --- a/src/kerrylabel.cpp +++ b/src/kerrylabel.cpp @@ -21,7 +21,7 @@ #include "kerrylabel.h" #include "hitwidget.h" -#include <qdragobject.h> +#include <ntqdragobject.h> #include <kglobalsettings.h> #include <kurl.h> #include <krun.h> @@ -31,13 +31,13 @@ #include <knewmenu.h> */ -KerryLabel::KerryLabel (QWidget* parent, const char* name) +KerryLabel::KerryLabel (TQWidget* parent, const char* name) : KURLLabel (parent, name) { dragInfo.state = diNone; } -void KerryLabel::mousePressEvent(QMouseEvent* ev) +void KerryLabel::mousePressEvent(TQMouseEvent* ev) { if (!url().isEmpty()) { @@ -56,7 +56,7 @@ void KerryLabel::mousePressEvent(QMouseEvent* ev) KURLLabel::mousePressEvent(ev); } -void KerryLabel::mouseMoveEvent(QMouseEvent* ev) +void KerryLabel::mouseMoveEvent(TQMouseEvent* ev) { if (dragInfo.state == diPending) { int distance = KGlobalSettings::dndEventDelay(); @@ -69,7 +69,7 @@ void KerryLabel::mouseMoveEvent(QMouseEvent* ev) KURLLabel::mouseMoveEvent(ev); } -void KerryLabel::mouseReleaseEvent(QMouseEvent* ev) +void KerryLabel::mouseReleaseEvent(TQMouseEvent* ev) { if ( ev->button() == LeftButton) { @@ -82,12 +82,12 @@ void KerryLabel::doDrag() { dragInfo.state = diDragging; const KURL kuri = KURL(url()); - dragInfo.dragObject = new QTextDrag("'"+kuri.url().replace("file://",QString::null)+"'", this); + dragInfo.dragObject = new TQTextDrag("'"+kuri.url().replace("file://",TQString::null)+"'", this); dragInfo.dragObject->dragCopy(); - // Don't delete the QTextDrag object. Qt will delete it when it's done with it. + // Don't delete the TQTextDrag object. TQt will delete it when it's done with it. } -// void KerryLabel::popupMenu( const QPoint &_global ) +// void KerryLabel::popupMenu( const TQPoint &_global ) // { // KFileItem item( ((HitWidget*)parent())->uri(),((HitWidget*)parent())->mimetype(),KFileItem::Unknown); // KFileItemList _items; |