summaryrefslogtreecommitdiffstats
path: root/tools/designer/designer/listboxdnd.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-17 17:28:28 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-06-17 17:28:28 -0500
commit6dec101d43dcbd4195c47d54bd388db1a8d7230e (patch)
tree7c336cbed3a93807a34cd4df39b2f92a7d48a141 /tools/designer/designer/listboxdnd.cpp
parentf27c2533f735d53c6b555f387c6390c0690cc246 (diff)
downloadtqt3-6dec101d43dcbd4195c47d54bd388db1a8d7230e.tar.gz
tqt3-6dec101d43dcbd4195c47d54bd388db1a8d7230e.zip
Automated update from Qt3
Diffstat (limited to 'tools/designer/designer/listboxdnd.cpp')
-rw-r--r--tools/designer/designer/listboxdnd.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/designer/designer/listboxdnd.cpp b/tools/designer/designer/listboxdnd.cpp
index 11f38868..f4bf7305 100644
--- a/tools/designer/designer/listboxdnd.cpp
+++ b/tools/designer/designer/listboxdnd.cpp
@@ -195,11 +195,11 @@ ListBoxItemDrag::ListBoxItemDrag( ListBoxItemList & items, bool sendPtr, TQListB
: TQStoredDrag( "qt/listboxitem", parent, name )
{
// ### FIX!
- TQByteArray data( sizeof( Q_INT32 ) + sizeof( TQListBoxItem ) * items.count() );
+ TQByteArray data( sizeof( TQ_INT32 ) + sizeof( TQListBoxItem ) * items.count() );
TQDataStream stream( data, IO_WriteOnly );
stream << items.count();
- stream << (Q_UINT8) sendPtr; // just transfer item pointer; omit data
+ stream << (TQ_UINT8) sendPtr; // just transfer item pointer; omit data
TQListBoxItem * i = items.first();
@@ -207,7 +207,7 @@ ListBoxItemDrag::ListBoxItemDrag( ListBoxItemList & items, bool sendPtr, TQListB
while ( i ) {
- stream << (Q_ULONG) i; //###FIX: demands sizeof(ulong) >= sizeof(void*)
+ stream << (TQ_ULONG) i; //###FIX: demands sizeof(ulong) >= sizeof(void*)
i = items.next();
}
@@ -216,21 +216,21 @@ ListBoxItemDrag::ListBoxItemDrag( ListBoxItemList & items, bool sendPtr, TQListB
while ( i ) {
- Q_UINT8 b = 0;
+ TQ_UINT8 b = 0;
- b = (Q_UINT8) ( i->text() != TQString::null ); // does item have text ?
+ b = (TQ_UINT8) ( i->text() != TQString::null ); // does item have text ?
stream << b;
if ( b ) {
stream << i->text();
}
- b = (Q_UINT8) ( !!i->pixmap() ); // does item have a pixmap ?
+ b = (TQ_UINT8) ( !!i->pixmap() ); // does item have a pixmap ?
stream << b;
if ( b ) {
stream << ( *i->pixmap() );
}
- stream << (Q_UINT8) i->isSelectable();
+ stream << (TQ_UINT8) i->isSelectable();
i = items.next();
}
@@ -256,7 +256,7 @@ bool ListBoxItemDrag::decode( TQDropEvent * event, TQListBox * parent, TQListBox
int count = 0;
stream >> count;
- Q_UINT8 recievePtr = 0; // data contains just item pointers; no data
+ TQ_UINT8 recievePtr = 0; // data contains just item pointers; no data
stream >> recievePtr;
TQListBoxItem * item = 0;
@@ -265,7 +265,7 @@ bool ListBoxItemDrag::decode( TQDropEvent * event, TQListBox * parent, TQListBox
for( int i = 0; i < count; i++ ) {
- Q_ULONG p = 0; //###FIX: demands sizeof(ulong) >= sizeof(void*)
+ TQ_ULONG p = 0; //###FIX: demands sizeof(ulong) >= sizeof(void*)
stream >> p;
item = (TQListBoxItem *) p;
@@ -277,21 +277,21 @@ bool ListBoxItemDrag::decode( TQDropEvent * event, TQListBox * parent, TQListBox
for ( int i = 0; i < count; i++ ) {
- Q_UINT8 hasText = 0;
+ TQ_UINT8 hasText = 0;
TQString text;
stream >> hasText;
if ( hasText ) {
stream >> text;
}
- Q_UINT8 hasPixmap = 0;
+ TQ_UINT8 hasPixmap = 0;
TQPixmap pixmap;
stream >> hasPixmap;
if ( hasPixmap ) {
stream >> pixmap;
}
- Q_UINT8 isSelectable = 0;
+ TQ_UINT8 isSelectable = 0;
stream >> isSelectable;
if ( hasPixmap ) {