summaryrefslogtreecommitdiffstats
path: root/src/scanstack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanstack.cpp')
-rw-r--r--src/scanstack.cpp34
1 files changed, 17 insertions, 17 deletions
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 <qdict.h>
+#include <ntqdict.h>
#include <kdebug.h>
-#include <klocale.h>
+#include <tdelocale.h>
#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<ScanWidget>( m_dictSize );
+{ m_scanWidgetDict = new TQDict<ScanWidget>( 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