From 6dec101d43dcbd4195c47d54bd388db1a8d7230e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 17 Jun 2012 17:28:28 -0500 Subject: Automated update from Qt3 --- tools/designer/designer/listboxdnd.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tools/designer/designer/listboxdnd.cpp') 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 ) { -- cgit v1.2.3