summaryrefslogtreecommitdiffstats
path: root/interfaces/khexedit/byteseditinterface.h
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/byteseditinterface.h
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/byteseditinterface.h')
-rw-r--r--interfaces/khexedit/byteseditinterface.h58
1 files changed, 29 insertions, 29 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
*