From d598a49a3e1cadea0d72be28d147d219686413e7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 11:31:17 -0500 Subject: Convert to TDE R14 API --- src/scanstack.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/scanstack.cpp') diff --git a/src/scanstack.cpp b/src/scanstack.cpp index 7a49900..f3fbdce 100644 --- a/src/scanstack.cpp +++ b/src/scanstack.cpp @@ -20,10 +20,10 @@ * * ***************************************************************************/ -#include +#include #include -#include +#include #include "htmlwidget.h" #include "scanstack.h" @@ -32,12 +32,12 @@ // constructor // =========== -ScanStack::ScanStack( QWidget* parent, const char* name ) -: QWidgetStack( parent, name ), +ScanStack::ScanStack( TQWidget* parent, const char* name ) +: TQWidgetStack( parent, name ), m_dictSize( 29 ), m_firstScanWidget( NULL ), m_widgetId( 1 ) -{ m_scanWidgetDict = new QDict( m_dictSize ); +{ m_scanWidgetDict = new TQDict( m_dictSize ); m_scanWidgetDict->setAutoDelete( true ); } @@ -59,7 +59,7 @@ void ScanStack::appendAndRaiseWidget( ScanWidget* scanWidget ) m_scanWidgetDict->resize( m_dictSize ); } - m_scanWidgetDict->insert( QString::number( index ), scanWidget ); + m_scanWidgetDict->insert( TQString::number( index ), scanWidget ); } // appendHTMLWidget @@ -67,7 +67,7 @@ void ScanStack::appendAndRaiseWidget( ScanWidget* scanWidget ) void ScanStack::appendHTMLWidget( HTMLWidget* htmlWidget ) { ASSERT( m_widgetId == 1 ); - addWidget( (QWidget*) htmlWidget, m_widgetId++ ); + addWidget( (TQWidget*) htmlWidget, m_widgetId++ ); } // findScanWidget @@ -127,20 +127,20 @@ ScanWidget* ScanStack::moveScanWidget( const ushort fromIndex ) if( toIndex < 0 ) return NULL; - ScanWidget* scanWidget = m_scanWidgetDict->take( QString::number( fromIndex )); + ScanWidget* scanWidget = m_scanWidgetDict->take( TQString::number( fromIndex )); if( fromIndex < toIndex ) for( ushort index = fromIndex + 1; index <= toIndex; index++ ) - { ScanWidget* scanWidget = m_scanWidgetDict->take( QString::number( index )); - m_scanWidgetDict->insert( QString::number( index - 1 ), scanWidget ); + { ScanWidget* scanWidget = m_scanWidgetDict->take( TQString::number( index )); + m_scanWidgetDict->insert( TQString::number( index - 1 ), scanWidget ); } else for( short index = fromIndex - 1; index >= toIndex; index-- ) - { ScanWidget* scanWidget = m_scanWidgetDict->take( QString::number( index )); - m_scanWidgetDict->insert( QString::number( index + 1 ), scanWidget ); + { ScanWidget* scanWidget = m_scanWidgetDict->take( TQString::number( index )); + m_scanWidgetDict->insert( TQString::number( index + 1 ), scanWidget ); } - m_scanWidgetDict->insert( QString::number( toIndex ), scanWidget ); + m_scanWidgetDict->insert( TQString::number( toIndex ), scanWidget ); return scanWidget; } @@ -160,11 +160,11 @@ void ScanStack::removeScanWidget( ScanWidget* scanWidgetToRemove ) return; } - m_scanWidgetDict->remove( QString::number( index )); + m_scanWidgetDict->remove( TQString::number( index )); for( ushort i = index + 1; i < n; i++ ) - { ScanWidget* scanWidget = m_scanWidgetDict->take( QString::number( i )); - m_scanWidgetDict->insert( QString::number( i - 1 ), scanWidget ); + { ScanWidget* scanWidget = m_scanWidgetDict->take( TQString::number( i )); + m_scanWidgetDict->insert( TQString::number( i - 1 ), scanWidget ); } if( index >=short( m_scanWidgetDict->count( ))) @@ -180,7 +180,7 @@ void ScanStack::removeScanWidget( ScanWidget* scanWidgetToRemove ) // ============= ScanWidget* ScanStack::visibleWidget( ) -{ return (ScanWidget*) QWidgetStack::visibleWidget( ); +{ return (ScanWidget*) TQWidgetStack::visibleWidget( ); } // wrapText -- cgit v1.2.1