From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kghostview/marklist.cpp | 52 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'kghostview/marklist.cpp') diff --git a/kghostview/marklist.cpp b/kghostview/marklist.cpp index 674630ed..df06bd9d 100644 --- a/kghostview/marklist.cpp +++ b/kghostview/marklist.cpp @@ -20,11 +20,11 @@ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include @@ -32,23 +32,23 @@ #include "kgv_miniwidget.h" -MarkListItem::MarkListItem(QWidget *parent, const QString &text, const QString &tip, const QColor &color, KGVMiniWidget* miniW, int pageNum) - : QWidget( parent ), +MarkListItem::MarkListItem(TQWidget *parent, const TQString &text, const TQString &tip, const TQColor &color, KGVMiniWidget* miniW, int pageNum) + : TQWidget( parent ), _miniWidget( miniW ), _pageNum( pageNum ), _requested( false ) { //kdDebug( 4500 ) << "MarkListItem::MarkListItem( _ , " << text <<" , " << tip << " , " << color << ", _ ," << pageNum << " )" << endl; - QBoxLayout *l = new QVBoxLayout( this, 5, 0 ); - _thumbnailW = new QWidget( this ); - _checkBox = new QCheckBox( text, this ); + TQBoxLayout *l = new TQVBoxLayout( this, 5, 0 ); + _thumbnailW = new TQWidget( this ); + _checkBox = new TQCheckBox( text, this ); l->addWidget( _thumbnailW, 1 ); l->addWidget( _checkBox, 0, Qt::AlignHCenter ); - QWhatsThis::add( _checkBox, i18n( "Using this checkbox you can select pages for printing." ) ); + TQWhatsThis::add( _checkBox, i18n( "Using this checkbox you can select pages for printing." ) ); setFixedHeight( 100 ); _backgroundColor = color; setPaletteBackgroundColor( _backgroundColor ); - QToolTip::add(this, tip); + TQToolTip::add(this, tip); // TODO: Put a little page number or other place-holder when there is no thumbnail to display. } @@ -67,11 +67,11 @@ void MarkListItem::setChecked( bool checked ) _checkBox->setChecked(checked); } -void MarkListItem::setPixmap( QPixmap thumbnail ) +void MarkListItem::setPixmap( TQPixmap thumbnail ) { // The line below is needed to work around certain "features" of styles such as liquid // see bug:61711 for more info (LPC, 20 Aug '03) - _thumbnailW->setBackgroundOrigin( QWidget::WidgetOrigin ); + _thumbnailW->setBackgroundOrigin( TQWidget::WidgetOrigin ); _thumbnailW->setPaletteBackgroundPixmap( thumbnail.convertToImage().smoothScale( _thumbnailW->size() ) ); _requested = false; } @@ -79,18 +79,18 @@ void MarkListItem::setPixmap( QPixmap thumbnail ) void MarkListItem::setSelected( bool selected ) { if (selected) - setPaletteBackgroundColor( QApplication::palette().active().highlight() ); + setPaletteBackgroundColor( TQApplication::palette().active().highlight() ); else setPaletteBackgroundColor( _backgroundColor ); } -void MarkListItem::resizeEvent( QResizeEvent * ) +void MarkListItem::resizeEvent( TQResizeEvent * ) { if ( _thumbnailW->paletteBackgroundPixmap() ) _thumbnailW->setPaletteBackgroundPixmap( _thumbnailW->paletteBackgroundPixmap()->convertToImage().smoothScale( _thumbnailW->size() ) ); } -void MarkListItem::paintEvent( QPaintEvent* ) +void MarkListItem::paintEvent( TQPaintEvent* ) { /* TODO: * We should cancel things which flipped into view and then flipped out. @@ -100,7 +100,7 @@ void MarkListItem::paintEvent( QPaintEvent* ) */ if ( _requested ) return; if ( !_thumbnailW->paletteBackgroundPixmap() || _thumbnailW->paletteBackgroundPixmap()->isNull() ) { - _miniWidget->getThumbnailService()->delayedGetThumbnail( _pageNum, this, SLOT( setPixmap( QPixmap ) ) ); + _miniWidget->getThumbnailService()->delayedGetThumbnail( _pageNum, this, TQT_SLOT( setPixmap( TQPixmap ) ) ); _requested = true; } } @@ -108,8 +108,8 @@ void MarkListItem::paintEvent( QPaintEvent* ) /* MarkList */ -MarkList::MarkList( QWidget* parent, const char* name, KGVMiniWidget* mini) - : QTable( parent, name ), +MarkList::MarkList( TQWidget* parent, const char* name, KGVMiniWidget* mini) + : TQTable( parent, name ), _selected ( -1 ), _miniWidget( mini ) { @@ -117,13 +117,13 @@ _miniWidget( mini ) setLeftMargin( 0 ); // we don't want the vertical header horizontalHeader()->setLabel( 0, i18n("Page") ); - connect( this, SIGNAL( currentChanged( int, int ) ), - this, SIGNAL( selected( int ) ) ); + connect( this, TQT_SIGNAL( currentChanged( int, int ) ), + this, TQT_SIGNAL( selected( int ) ) ); } -QValueList MarkList::markList() const +TQValueList MarkList::markList() const { - QValueList list; + TQValueList list; MarkListItem *_item; for(int i = 0; i < numRows(); i++) { @@ -134,7 +134,7 @@ QValueList MarkList::markList() const return list; } -void MarkList::insertItem( const QString& text, int index, const QString& tip) +void MarkList::insertItem( const TQString& text, int index, const TQString& tip) { MarkListItem *_item; _item = new MarkListItem( this, text, tip, viewport()->paletteBackgroundColor(), _miniWidget, index ); @@ -224,7 +224,7 @@ void MarkList::removeMarks() } } -void MarkList::viewportResizeEvent ( QResizeEvent * ) +void MarkList::viewportResizeEvent ( TQResizeEvent * ) { MarkListItem *_item; if( visibleWidth() != columnWidth( 0 ) ) -- cgit v1.2.1