diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:52:55 +0000 |
commit | 5f5ee2367157176ed223b86343eb0a9e4022e020 (patch) | |
tree | 6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/KMultiFormListBox/ccp.cpp | |
parent | 4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff) | |
download | tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/KMultiFormListBox/ccp.cpp')
-rw-r--r-- | kregexpeditor/KMultiFormListBox/ccp.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kregexpeditor/KMultiFormListBox/ccp.cpp b/kregexpeditor/KMultiFormListBox/ccp.cpp index d64a3b2..d868591 100644 --- a/kregexpeditor/KMultiFormListBox/ccp.cpp +++ b/kregexpeditor/KMultiFormListBox/ccp.cpp @@ -21,28 +21,28 @@ #include "kmultiformlistbox-multivisible.h" #include "ccp.h" -#include <qobjectlist.h> -#include <qpopupmenu.h> +#include <tqobjectlist.h> +#include <tqpopupmenu.h> #ifdef QT_ONLY #include "compat.h" #else #include <klocale.h> #endif -CCP::CCP(KMultiFormListBoxMultiVisible *ee_, KMultiFormListBoxEntry *eee_) : QObject() { +CCP::CCP(KMultiFormListBoxMultiVisible *ee_, KMultiFormListBoxEntry *eee_) : TQObject() { ee = ee_; eee = eee_; install(eee); } -void CCP::install(QObject *elm) +void CCP::install(TQObject *elm) { elm->installEventFilter(this); - const QObjectList *children = elm->children(); + const TQObjectList *children = elm->children(); if (children) { - QObjectListIt it = QObjectListIt(*children); + TQObjectListIt it = TQObjectListIt(*children); - while (QObject *child=it.current()) { + while (TQObject *child=it.current()) { if (child->inherits("KMultiFormListBoxMultiVisible")) { // Stop if the widget is an KMultiFormListBox, as this widget has its own cut/copy/paste } @@ -55,17 +55,17 @@ void CCP::install(QObject *elm) } // This function post the Cut/Copy/Paste menu -bool CCP::eventFilter(QObject *, QEvent *event) +bool CCP::eventFilter(TQObject *, TQEvent *event) { - if (event->type() != QEvent::MouseButtonPress || - ((QMouseEvent *) event)->button() != RightButton || - ((QMouseEvent *) event)->state() != QEvent::ControlButton) { + if (event->type() != TQEvent::MouseButtonPress || + ((TQMouseEvent *) event)->button() != RightButton || + ((TQMouseEvent *) event)->state() != TQEvent::ControlButton) { return false; } - QPoint pos = ((QMouseEvent *) event)->globalPos(); + TQPoint pos = ((TQMouseEvent *) event)->globalPos(); - QPopupMenu *menu = new QPopupMenu(); + TQPopupMenu *menu = new TQPopupMenu(); menu->insertItem(i18n("Cut"),1); menu->insertItem(i18n("Copy"),2); menu->insertItem(i18n("Paste"),3); |