summaryrefslogtreecommitdiffstats
path: root/khexedit/hexbuffer.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /khexedit/hexbuffer.h
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khexedit/hexbuffer.h')
-rw-r--r--khexedit/hexbuffer.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/khexedit/hexbuffer.h b/khexedit/hexbuffer.h
index 755cca1..e5026de 100644
--- a/khexedit/hexbuffer.h
+++ b/khexedit/hexbuffer.h
@@ -304,38 +304,38 @@ struct SCursorConfig
bool selectOn( void )
{
- return( state & Qt::ShiftButton );
+ return( state & TQt::ShiftButton );
}
bool removeSelection( void )
{
- return( state & Qt::ShiftButton ? false : true );
+ return( state & TQt::ShiftButton ? false : true );
}
void setKeepSelection( bool val )
{
- state = val == true ? state|Qt::ShiftButton : state&~Qt::ShiftButton;
+ state = val == true ? state|TQt::ShiftButton : state&~TQt::ShiftButton;
}
bool controlButton( void )
{
- return( state & Qt::ControlButton ? true : false );
+ return( state & TQt::ControlButton ? true : false );
}
bool shiftButton( void )
{
- return( state & Qt::ShiftButton ? true : false );
+ return( state & TQt::ShiftButton ? true : false );
}
bool altButton( void )
{
- return( state & Qt::AltButton ? true : false );
+ return( state & TQt::AltButton ? true : false );
}
void emulateControlButton( bool val )
{
- state = val == true ? state|Qt::ControlButton : state&~Qt::ControlButton;
+ state = val == true ? state|TQt::ControlButton : state&~TQt::ControlButton;
}
int state;
@@ -967,7 +967,7 @@ class CHexAction
public:
enum HexAction
{
- replace
+ tqreplace
};
public:
@@ -1031,7 +1031,7 @@ typedef bool (CHexBuffer::*InputCellFunc)( unsigned char *dest, int value,
typedef void (CHexBuffer::*PrintOffsetFunc)( char *buf, uint offset );
-class CHexBuffer : public QByteArray
+class CHexBuffer : public TQByteArray
{
public:
enum EColumn
@@ -1072,7 +1072,7 @@ class CHexBuffer : public QByteArray
CHexBuffer( void );
~CHexBuffer( void );
- int setLayout( SDisplayLayout &layout );
+ int setLayout( SDisplayLayout &tqlayout );
void setColor( SDisplayColor &color );
void setInputMode( SDisplayInputMode &mode );
bool toggleEditor( void );
@@ -1082,7 +1082,7 @@ class CHexBuffer : public QByteArray
void setNonPrintChar( TQChar nonPrintChar );
void setShowCursor( bool showCursor );
void setDisableCursor( bool disableCursor );
- void setCursorShapeModifier( bool alwaysBlock, bool thickInsert );
+ void settqCursorShapeModifier( bool alwaysBlock, bool thickInsert );
void setEditMode( EEditMode editMode );
void setEditMode( EEditMode editMode, bool alwaysBlock, bool thickInsert );
void setMaximumSize( uint size );
@@ -1156,7 +1156,7 @@ class CHexBuffer : public QByteArray
inline SCursorState &cursorState( void );
inline void valueOnCursor( TQByteArray &buf, uint size );
inline SFileState &fileState( void );
- inline const SDisplayLayout &layout( void );
+ inline const SDisplayLayout &tqlayout( void );
inline const SDisplayInputMode &inputMode( void );
inline TQPtrList<SCursorOffset> &bookmarkList( void );
@@ -1417,7 +1417,7 @@ inline void CHexBuffer::valueOnCursor( TQByteArray &buf, uint size )
}
-inline const SDisplayLayout &CHexBuffer::layout( void )
+inline const SDisplayLayout &CHexBuffer::tqlayout( void )
{
return( mLayout );
}
@@ -1531,7 +1531,7 @@ inline const TQColor &CHexBuffer::foregroundColor( uint column )
{
if( column > mLayout.lineSize )
{
- return( Qt::black );
+ return( TQt::black );
}
else
{