diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 20:16:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 20:16:47 +0000 |
commit | 495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch) | |
tree | daabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kpager/desktop.cpp | |
parent | 50001f1757f97510e80cb1990e2f2d5b00144c2a (diff) | |
download | tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpager/desktop.cpp')
-rw-r--r-- | kpager/desktop.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kpager/desktop.cpp b/kpager/desktop.cpp index 3319418a1..5b2aa73c9 100644 --- a/kpager/desktop.cpp +++ b/kpager/desktop.cpp @@ -81,7 +81,7 @@ void Desktop::mouseMoveEvent( TQMouseEvent *ev ) if ( (ev->state() & LeftButton) == 0 ) return; TQPoint p( ev->pos() - pressPos ); - if ( p.manhattanLength() >= qApp->startDragDistance() ) + if ( p.manhattanLength() >= tqApp->startDragDistance() ) startDrag( pressPos ); } @@ -120,7 +120,7 @@ void Desktop::mouseReleaseEvent( TQMouseEvent *ev ) KWin::forceActiveWindow(info->win()); // if ( static_cast<WindowDrawMode>( KPagerConfigDialog::m_windowDrawMode ) == Pixmap ) - // m_windowPixmapsDirty.replace(info->win,true); + // m_windowPixmapsDirty.tqreplace(info->win,true); } } } @@ -138,9 +138,9 @@ KWin::WindowInfo *Desktop::windowAtPosition(const TQPoint &p, TQPoint *internalp KWin::WindowInfo* info = pager()->info( *it ); if (shouldPaintWindow(info)) { - r=info->geometry(); + r=info->tqgeometry(); convertRectS2P(r); - if (r.contains(p)) + if (r.tqcontains(p)) { if (internalpos) { @@ -295,7 +295,7 @@ TQPixmap *Desktop::paintNewWindow(const KWin::WindowInfo *info) p.begin(pixmap); p.setFont(font()); - p.fillRect( r, colorGroup().brush(TQColorGroup::Dark)); + p.fillRect( r, tqcolorGroup().brush(TQColorGroup::Dark)); paintWindow(p, info, false); p.end(); @@ -425,7 +425,7 @@ void Desktop::paintEvent( TQPaintEvent * ) p.begin(&pixmap); // p.setFont(font()); -// p.fillRect(rect(), colorGroup().brush(TQColorGroup::Dark)); +// p.fillRect(rect(), tqcolorGroup().brush(TQColorGroup::Dark)); // p.setPen(Qt::black); // p.drawRect(rect()); @@ -450,7 +450,7 @@ void Desktop::paintEvent( TQPaintEvent * ) else pixmap.fill(Qt::gray); } else - p.fillRect(rect(), colorGroup().brush(TQColorGroup::Mid)); + p.fillRect(rect(), tqcolorGroup().brush(TQColorGroup::Mid)); // set in/active pen if (isCurrent()) @@ -523,8 +523,8 @@ void Desktop::paintWindowPlain(TQPainter &p, const KWin::WindowInfo *info, bool TQBrush brush; - if ( isActive ) brush=colorGroup().brush( TQColorGroup::Highlight ); - else brush=colorGroup().brush( TQColorGroup::Button ); + if ( isActive ) brush=tqcolorGroup().brush( TQColorGroup::Highlight ); + else brush=tqcolorGroup().brush( TQColorGroup::Button ); if ( m_transparentMode==AllWindows || (m_transparentMode==MaximizedWindows && ( info->state() & NET::Max )) ) @@ -532,12 +532,12 @@ void Desktop::paintWindowPlain(TQPainter &p, const KWin::WindowInfo *info, bool if ( isActive ) { - qDrawShadeRect( &p, r, colorGroup(), false, 1, 0, &brush ); + qDrawShadeRect( &p, r, tqcolorGroup(), false, 1, 0, &brush ); } else { p.fillRect( r, brush ); - qDrawShadeRect( &p, r, colorGroup(), true, 1, 0 ); + qDrawShadeRect( &p, r, tqcolorGroup(), true, 1, 0 ); } } @@ -602,8 +602,8 @@ void Desktop::paintWindowPixmap(TQPainter &p, const KWin::WindowInfo *info, nHg = rSmall.height(); } pixmap=new TQPixmap(fastScalePixmap(tmp, nWd, nHg)); - m_windowPixmaps.replace(info->win(),pixmap); - m_windowPixmapsDirty.replace(info->win(),false); + m_windowPixmaps.tqreplace(info->win(),pixmap); + m_windowPixmapsDirty.tqreplace(info->win(),false); } } @@ -669,7 +669,7 @@ void Desktop::backgroundLoaded(bool b) } else kdDebug() << "Error getting the background\n"; } -TQSize Desktop::sizeHint() const +TQSize Desktop::tqsizeHint() const { return TQSize(67,50); } |