summaryrefslogtreecommitdiffstats
path: root/kdeprint/posterpreview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
commitbab40890696ec68c337dc290880423a0602b83c7 (patch)
tree6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/posterpreview.cpp
parentf7e71d47719ab6094cf4a9fafffa5ea351973522 (diff)
downloadtdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz
tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip
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
Diffstat (limited to 'kdeprint/posterpreview.cpp')
-rw-r--r--kdeprint/posterpreview.cpp8
1 files changed, 4 insertions, 4 deletions
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();