From 9ee4144afedd77175dd068e60ef09399c684dcee Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 29 Jan 2011 00:07:20 +0000 Subject: Restored qt_cast() git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1217837 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- interfaces/khexedit/byteseditinterface.h | 58 +++++++++++++++--------------- interfaces/khexedit/charcolumninterface.h | 2 +- interfaces/khexedit/clipboardinterface.h | 6 ++-- interfaces/khexedit/valuecolumninterface.h | 2 +- interfaces/khexedit/zoominterface.h | 2 +- 5 files changed, 35 insertions(+), 35 deletions(-) (limited to 'interfaces/khexedit') 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( t->tqqt_cast("KHE::BytesEditInterface") ); + return static_cast( 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( t->tqqt_cast("KHE::CharColumnInterface") ); + return static_cast( 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( t->tqqt_cast("KHE::ClipboardInterface") ); + return static_cast( 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( t->tqqt_cast("KHE::ValueColumnInterface") ); + return static_cast( 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( t->tqqt_cast("KHE::ZoomInterface") ); + return static_cast( t->qt_cast("KHE::ZoomInterface") ); } } -- cgit v1.2.1