summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/drag.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kregexpeditor/drag.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-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/drag.cpp')
-rw-r--r--kregexpeditor/drag.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kregexpeditor/drag.cpp b/kregexpeditor/drag.cpp
index 11ecc63..e17973c 100644
--- a/kregexpeditor/drag.cpp
+++ b/kregexpeditor/drag.cpp
@@ -20,8 +20,8 @@
#include "regexpconverter.h"
#include "widgetfactory.h"
-RegExpWidgetDrag::RegExpWidgetDrag( RegExp* regexp, QWidget* dragSource )
- : QDragObject( dragSource ), _regexp( regexp->clone() )
+RegExpWidgetDrag::RegExpWidgetDrag( RegExp* regexp, TQWidget* dragSource )
+ : TQDragObject( dragSource ), _regexp( regexp->clone() )
{
}
@@ -31,17 +31,17 @@ RegExpWidgetDrag::~RegExpWidgetDrag()
}
-bool RegExpWidgetDrag::canDecode( QDragMoveEvent* event )
+bool RegExpWidgetDrag::canDecode( TQDragMoveEvent* event )
{
return event->provides( "KRegExpEditor/widgetdrag" );
}
-RegExpWidget* RegExpWidgetDrag::decode(QDropEvent* event, RegExpEditorWindow* window,
- QWidget* parent)
+RegExpWidget* RegExpWidgetDrag::decode(TQDropEvent* event, RegExpEditorWindow* window,
+ TQWidget* parent)
{
- QByteArray payload = event->encodedData("KRegExpEditor/widgetdrag" );
- QTextStream stream( payload, IO_ReadOnly );
- QString str = stream.read();
+ TQByteArray payload = event->encodedData("KRegExpEditor/widgetdrag" );
+ TQTextStream stream( payload, IO_ReadOnly );
+ TQString str = stream.read();
RegExp* regexp = WidgetFactory::createRegExp( str );
RegExpWidget* widget = WidgetFactory::createWidget( regexp, window, parent );
delete regexp;
@@ -58,15 +58,15 @@ const char * RegExpWidgetDrag::format ( int i ) const
return 0;
}
-QByteArray RegExpWidgetDrag::encodedData ( const char* format ) const
+TQByteArray RegExpWidgetDrag::encodedData ( const char* format ) const
{
- QByteArray data;
- QTextStream stream( data, IO_WriteOnly );
- if ( QString::fromLocal8Bit( format ).startsWith(QString::fromLocal8Bit( "KRegExpEditor/widgetdrag" ) ) ) {
- QString xml = _regexp->toXmlString();
+ TQByteArray data;
+ TQTextStream stream( data, IO_WriteOnly );
+ if ( TQString::fromLocal8Bit( format ).startsWith(TQString::fromLocal8Bit( "KRegExpEditor/widgetdrag" ) ) ) {
+ TQString xml = _regexp->toXmlString();
stream << xml;
}
- else if ( QString::fromLocal8Bit( format ).startsWith(QString::fromLocal8Bit( "text/plain" ) ) ) {
+ else if ( TQString::fromLocal8Bit( format ).startsWith(TQString::fromLocal8Bit( "text/plain" ) ) ) {
stream << RegExpConverter::current()->toStr( _regexp, false );
}
else {