summaryrefslogtreecommitdiffstats
path: root/interfaces/khexedit
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-29 00:07:20 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-29 00:07:20 +0000
commit9ee4144afedd77175dd068e60ef09399c684dcee (patch)
treeea89d4e804b738146dca0bbded08cdc06d9817dd /interfaces/khexedit
parent0d772cdcb1100285ecb0d9867fc9b795d3c8a707 (diff)
downloadtdelibs-9ee4144afedd77175dd068e60ef09399c684dcee.tar.gz
tdelibs-9ee4144afedd77175dd068e60ef09399c684dcee.zip
Restored qt_cast()
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1217837 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/khexedit')
-rw-r--r--interfaces/khexedit/byteseditinterface.h58
-rw-r--r--interfaces/khexedit/charcolumninterface.h2
-rw-r--r--interfaces/khexedit/clipboardinterface.h6
-rw-r--r--interfaces/khexedit/valuecolumninterface.h2
-rw-r--r--interfaces/khexedit/zoominterface.h2
5 files changed, 35 insertions, 35 deletions
diff --git a/interfaces/khexedit/byteseditinterface.h b/interfaces/khexedit/byteseditinterface.h
index 5acb9a259..a34e70e42 100644
--- a/interfaces/khexedit/byteseditinterface.h
+++ b/interfaces/khexedit/byteseditinterface.h
@@ -159,7 +159,7 @@ inline BytesEditInterface *bytesEditInterface( T *t )
if( !t )
return 0;
- return static_cast<BytesEditInterface*>( t->tqqt_cast("KHE::BytesEditInterface") );
+ return static_cast<BytesEditInterface*>( t->qt_cast("KHE::BytesEditInterface") );
}
/** tries to create an instance of a hexedit widget for arrays of chars (char[])
@@ -177,37 +177,37 @@ inline BytesEditInterface *bytesEditInterface( T *t )
* // is e.g. kdeutils (incl. khexedit2) installed, so a widget could be found and created?
* if( BytesEditWidget )
* {
- *   // fetch the editor interface
- *   KHE::BytesEditInterface *BytesEdit = KHE::bytesEditInterface( BytesEditWidget );
- *   Q_ASSERT( BytesEdit ); // This should not fail!
+ * � // fetch the editor interface
+ * � KHE::BytesEditInterface *BytesEdit = KHE::bytesEditInterface( BytesEditWidget );
+ * � Q_ASSERT( BytesEdit ); // This should not fail!
*
- *   // now use the editor.
- *   BytesEdit->setData( Buffer, BufferSize, -1 );
- *   BytesEdit->setMaxDataSize( BufferSize );
- *   BytesEdit->setReadOnly( false );
- *   BytesEdit->setAutoDelete( true );
+ * � // now use the editor.
+ * � BytesEdit->setData( Buffer, BufferSize, -1 );
+ * � BytesEdit->setMaxDataSize( BufferSize );
+ * � BytesEdit->setReadOnly( false );
+ * � BytesEdit->setAutoDelete( true );
*
- *   KHE::ValueColumnInterface *ValueColumn = KHE::valueColumnInterface( BytesEditWidget );
- *   if( ValueColumn )
- *   {
- *     ValueColumn->setCoding( KHE::ValueColumnInterface::BinaryCoding );
- *     ValueColumn->setByteSpacingWidth( 2 );
- *     ValueColumn->setNoOfGroupedBytes( 4 );
- *     ValueColumn->setGroupSpacingWidth( 12 );
- *   }
+ * � KHE::ValueColumnInterface *ValueColumn = KHE::valueColumnInterface( BytesEditWidget );
+ * � if( ValueColumn )
+ * � {
+ * � � ValueColumn->setCoding( KHE::ValueColumnInterface::BinaryCoding );
+ * � � ValueColumn->setByteSpacingWidth( 2 );
+ * � � ValueColumn->setNoOfGroupedBytes( 4 );
+ * � � ValueColumn->setGroupSpacingWidth( 12 );
+ * � }
*
- *   KHE::CharColumnInterface *CharColumn = KHE::charColumnInterface( BytesEditWidget );
- *   if( CharColumn )
- *   {
- *     CharColumn->setShowUnprintable( false );
- *     CharColumn->setSubstituteChar( '*' );
- *   }
- *   KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
- *   if( Clipboard )
- *   {
- *     // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
- *     connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) );
- *   }
+ * � KHE::CharColumnInterface *CharColumn = KHE::charColumnInterface( BytesEditWidget );
+ * � if( CharColumn )
+ * � {
+ * � � CharColumn->setShowUnprintable( false );
+ * � � CharColumn->setSubstituteChar( '*' );
+ * � }
+ * � KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
+ * � if( Clipboard )
+ * � {
+ * � � // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
+ * � � connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) );
+ * � }
* }
* \endcode
*
diff --git a/interfaces/khexedit/charcolumninterface.h b/interfaces/khexedit/charcolumninterface.h
index 753ff7ab1..4221de0c4 100644
--- a/interfaces/khexedit/charcolumninterface.h
+++ b/interfaces/khexedit/charcolumninterface.h
@@ -97,7 +97,7 @@ CharColumnInterface *charColumnInterface( T *t )
if( !t )
return 0;
- return static_cast<CharColumnInterface*>( t->tqqt_cast("KHE::CharColumnInterface") );
+ return static_cast<CharColumnInterface*>( t->qt_cast("KHE::CharColumnInterface") );
}
}
diff --git a/interfaces/khexedit/clipboardinterface.h b/interfaces/khexedit/clipboardinterface.h
index 0e106aa32..6b5f4fab2 100644
--- a/interfaces/khexedit/clipboardinterface.h
+++ b/interfaces/khexedit/clipboardinterface.h
@@ -34,8 +34,8 @@ namespace KHE
* KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
* if( Clipboard )
* {
- *   // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
- *   connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) );
+ * � // Yes, use BytesEditWidget, not Clipboard, because that's the TQObject, indeed hacky...
+ * � connect( BytesEditWidget, TQT_SIGNAL(copyAvailable(bool)), this, TQT_SLOT(offerCopy(bool)) );
* }
* \endcode
*
@@ -78,7 +78,7 @@ ClipboardInterface *clipboardInterface( T *t )
if( !t )
return 0;
- return static_cast<ClipboardInterface*>( t->tqqt_cast("KHE::ClipboardInterface") );
+ return static_cast<ClipboardInterface*>( t->qt_cast("KHE::ClipboardInterface") );
}
}
diff --git a/interfaces/khexedit/valuecolumninterface.h b/interfaces/khexedit/valuecolumninterface.h
index e23c91761..7dafa7d42 100644
--- a/interfaces/khexedit/valuecolumninterface.h
+++ b/interfaces/khexedit/valuecolumninterface.h
@@ -162,7 +162,7 @@ ValueColumnInterface *valueColumnInterface( T *t )
if( !t )
return 0;
- return static_cast<ValueColumnInterface*>( t->tqqt_cast("KHE::ValueColumnInterface") );
+ return static_cast<ValueColumnInterface*>( t->qt_cast("KHE::ValueColumnInterface") );
}
}
diff --git a/interfaces/khexedit/zoominterface.h b/interfaces/khexedit/zoominterface.h
index 5fdaa8c24..494fbfd86 100644
--- a/interfaces/khexedit/zoominterface.h
+++ b/interfaces/khexedit/zoominterface.h
@@ -71,7 +71,7 @@ ZoomInterface *zoomInterface( T *t )
if( !t )
return 0;
- return static_cast<ZoomInterface*>( t->tqqt_cast("KHE::ZoomInterface") );
+ return static_cast<ZoomInterface*>( t->qt_cast("KHE::ZoomInterface") );
}
}