summaryrefslogtreecommitdiffstats
path: root/interfaces/khexedit
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /interfaces/khexedit
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/khexedit')
-rw-r--r--interfaces/khexedit/byteseditinterface.h16
-rw-r--r--interfaces/khexedit/charcolumninterface.h6
-rw-r--r--interfaces/khexedit/clipboardinterface.h6
3 files changed, 14 insertions, 14 deletions
diff --git a/interfaces/khexedit/byteseditinterface.h b/interfaces/khexedit/byteseditinterface.h
index dbc4c96bd..dc0a9dca5 100644
--- a/interfaces/khexedit/byteseditinterface.h
+++ b/interfaces/khexedit/byteseditinterface.h
@@ -21,7 +21,7 @@
// kde specific
#include <kparts/componentfactory.h>
-#include <qwidget.h>
+#include <tqwidget.h>
/**
* @short KHE (short for KHexEdit) is KDE's namespace for all things related
@@ -64,7 +64,7 @@ namespace KHE
* \code
* BytesEdit->setMaxDataSize( MaxDataSize );
* ...
- * QByteArray BA;
+ * TQByteArray BA;
* BA.setRawData( BytesEdit->data(), BytesEdit->dataSize() );
* \endcode
* </ul>
@@ -173,7 +173,7 @@ inline BytesEditInterface *bytesEditInterface( T *t )
* #include <khexedit/clipboardinterface.h>
* ...
*
- * QWidget *BytesEditWidget = KHE::createBytesEditWidget( this, "BytesEditWidget" );
+ * TQWidget *BytesEditWidget = KHE::createBytesEditWidget( this, "BytesEditWidget" );
* // is e.g. kdeutils (incl. khexedit2) installed, so a widget could be found and created?
* if( BytesEditWidget )
* {
@@ -205,8 +205,8 @@ inline BytesEditInterface *bytesEditInterface( T *t )
*   KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
*   if( Clipboard )
*   {
- *     // Yes, use BytesEditWidget, not Clipboard, because that's the QObject, indeed hacky...
- *     connect( BytesEditWidget, SIGNAL(copyAvailable(bool)), this, 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
@@ -218,10 +218,10 @@ inline BytesEditInterface *bytesEditInterface( T *t )
* @see BytesEditInterface, ValueColumnInterface, CharColumnInterface, ZoomInterface, ClipboardInterface
* @since 3.2
*/
-inline QWidget *createBytesEditWidget( QWidget *Parent = 0, const char *Name = 0 )
+inline TQWidget *createBytesEditWidget( TQWidget *Parent = 0, const char *Name = 0 )
{
- return KParts::ComponentFactory::createInstanceFromQuery<QWidget>
- ( QString::fromLatin1("KHexEdit/KBytesEdit"), QString::null, Parent, Name );
+ return KParts::ComponentFactory::createInstanceFromQuery<TQWidget>
+ ( TQString::fromLatin1("KHexEdit/KBytesEdit"), TQString::null, Parent, Name );
}
}
diff --git a/interfaces/khexedit/charcolumninterface.h b/interfaces/khexedit/charcolumninterface.h
index aef282fdc..4221de0c4 100644
--- a/interfaces/khexedit/charcolumninterface.h
+++ b/interfaces/khexedit/charcolumninterface.h
@@ -18,7 +18,7 @@
#ifndef CHARCOLUMNINTERFACE_H
#define CHARCOLUMNINTERFACE_H
-#include <qstring.h>
+#include <tqstring.h>
namespace KHE
{
@@ -59,7 +59,7 @@ class CharColumnInterface
* @param SC new character
* @see substituteChar()
*/
- virtual void setSubstituteChar( QChar SC ) = 0;
+ virtual void setSubstituteChar( TQChar SC ) = 0;
/** sets the encoding of the text column.
* If the encoding is not available the format will not be changed.
* Default is @c LocalEncoding.
@@ -78,7 +78,7 @@ class CharColumnInterface
/** @return the currently used substitute character for "unprintable" chars.
* @see setSubstituteChar()
*/
- virtual QChar substituteChar() const = 0;
+ virtual TQChar substituteChar() const = 0;
/** @return the currently used encoding
* @see setEncoding()
*/
diff --git a/interfaces/khexedit/clipboardinterface.h b/interfaces/khexedit/clipboardinterface.h
index 9edab8521..eeaf9d391 100644
--- a/interfaces/khexedit/clipboardinterface.h
+++ b/interfaces/khexedit/clipboardinterface.h
@@ -26,7 +26,7 @@ namespace KHE
*
* This interface enables the interaction with the clipboard. It relies on the
* possibilities of signal/slot so a class B that implements this interface
- * should be derived from QObject. When connecting to a signal or a slot
+ * should be derived from TQObject. When connecting to a signal or a slot
* the class B has to be used, not the interface.
* <p>
* Example:
@@ -34,8 +34,8 @@ namespace KHE
* KHE::ClipboardInterface *Clipboard = KHE::clipboardInterface( BytesEditWidget );
* if( Clipboard )
* {
- *   // Yes, use BytesEditWidget, not Clipboard, because that's the QObject, indeed hacky...
- *   connect( BytesEditWidget, SIGNAL(copyAvailable(bool)), this, 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
*