diff options
Diffstat (limited to 'interfaces/khexedit/byteseditinterface.h')
-rw-r--r-- | interfaces/khexedit/byteseditinterface.h | 58 |
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 * |