From bab40890696ec68c337dc290880423a0602b83c7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 16 Jan 2011 02:40:35 +0000 Subject: Finished remaining porting to new TQt API git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeprint/posterpreview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kdeprint/posterpreview.cpp') diff --git a/kdeprint/posterpreview.cpp b/kdeprint/posterpreview.cpp index f3535de25..c4685f719 100644 --- a/kdeprint/posterpreview.cpp +++ b/kdeprint/posterpreview.cpp @@ -61,7 +61,7 @@ void PosterPreview::init() m_dirty = false; setDirty(); setMouseTracking( true ); - setBackgroundMode( Qt::NoBackground ); + setBackgroundMode( TQt::NoBackground ); } void PosterPreview::parseBuffer() @@ -144,7 +144,7 @@ void PosterPreview::drawContents( TQPainter *painter ) p->drawRect( x, y, m_pw, m_ph ); if ( pw > 0 && ph > 0 ) p->fillRect( x+m_mw+px, y+m_mh+py, QMIN( pw, m_pw-2*m_mw-px ), QMIN( ph, m_ph-2*m_mh-py ), - ( selected ? KGlobalSettings::highlightColor().dark( 160 ) : lightGray ) ); + ( selected ? TQColor(KGlobalSettings::highlightColor().dark( 160 )) : lightGray ) ); p->setPen( Qt::DotLine ); p->drawRect( x+m_mw, y+m_mh, m_pw-2*m_mw, m_ph-2*m_mh ); p->setPen( Qt::SolidLine ); @@ -188,9 +188,9 @@ void PosterPreview::mousePressEvent( TQMouseEvent *e ) int pagenum = ( r-1 )*m_cols+c; if ( m_selectedpages.tqfind( pagenum ) == m_selectedpages.end() || - !( e->state() & Qt::ShiftButton ) ) + !( e->state() & TQt::ShiftButton ) ) { - if ( !( e->state() & Qt::ShiftButton ) ) + if ( !( e->state() & TQt::ShiftButton ) ) m_selectedpages.clear(); m_selectedpages.append( pagenum ); update(); -- cgit v1.2.1