diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:36:53 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:36:53 -0600 |
commit | 0ed6bc56f9167e115f14d18b4bc8ce18fb7674b6 (patch) | |
tree | bbf293d0f4a7d04626e2996263f985f13921869a /src/viewarea.cpp | |
parent | 81ad3b51a1f061b0934426aaf339917f76c0cfc5 (diff) | |
download | kmplayer-0ed6bc56f9167e115f14d18b4bc8ce18fb7674b6.tar.gz kmplayer-0ed6bc56f9167e115f14d18b4bc8ce18fb7674b6.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/viewarea.cpp')
-rw-r--r-- | src/viewarea.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/viewarea.cpp b/src/viewarea.cpp index 5a42e5b..5752070 100644 --- a/src/viewarea.cpp +++ b/src/viewarea.cpp @@ -144,8 +144,8 @@ public: SurfacePtr createSurface (NodePtr owner, const SRect & rect); IRect toScreen (Single x, Single y, Single w, Single h); void resize (const SRect & rect); - void tqrepaint (); - void tqrepaint (const SRect &rect); + void repaint (); + void repaint (const SRect &rect); void video (); NodePtrW current_video; @@ -181,7 +181,7 @@ KDE_NO_EXPORT void ViewSurface::resize (const SRect &r) { #endif /*if (rect == nrect) ;//return; - SRect pr = rect.unite (nrect); // for tqrepaint + SRect pr = rect.unite (nrect); // for repaint rect = nrect;*/ } @@ -197,14 +197,14 @@ KDE_NO_EXPORT IRect ViewSurface::toScreen (Single x, Single y, Single w, Single } KDE_NO_EXPORT -void ViewSurface::tqrepaint (const SRect &r) { +void ViewSurface::repaint (const SRect &r) { markDirty (); view_widget->scheduleRepaint (toScreen (r.x (), r.y (), r.width (), r.height ())); - //kdDebug() << "Surface::tqrepaint x:" << (int)x << " y:" << (int)y << " w:" << (int)w << " h:" << (int)h << endl; + //kdDebug() << "Surface::repaint x:" << (int)x << " y:" << (int)y << " w:" << (int)w << " h:" << (int)h << endl; } KDE_NO_EXPORT -void ViewSurface::tqrepaint () { +void ViewSurface::repaint () { markDirty (); view_widget->scheduleRepaint (toScreen (0, 0, bounds.width (), bounds.height ())); } @@ -327,7 +327,7 @@ KDE_NO_EXPORT void CairoPaintVisitor::traverseRegion (SMIL::RegionBase * reg) { if (c->data) c->data->accept (this); } - // finally visit tqchildren, accounting for z-order FIXME optimize + // finally visit children, accounting for z-order FIXME optimize NodeRefList sorted; for (NodePtr n = reg->firstChild (); n; n = n->nextSibling ()) { if (n->id != SMIL::id_node_region) @@ -1378,7 +1378,7 @@ KDE_NO_EXPORT void ViewArea::fullScreen () { } m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (playlist_xpm))); } else { - m_topwindow_rect = topLevelWidget ()->tqgeometry (); + m_topwindow_rect = topLevelWidget ()->geometry (); reparent (0L, 0, tqApp->desktop()->screenGeometry(this).topLeft(), true); showFullScreen (); for (unsigned i = 0; i < m_collection->count (); ++i) @@ -1425,7 +1425,7 @@ void ViewArea::minimalMode () { m_view->setNoInfoMessages (false); m_view->controlPanel ()->button (ControlPanel::button_playlist)->setIconSet (TQIconSet (TQPixmap (playlist_xpm))); } - m_topwindow_rect = topLevelWidget ()->tqgeometry (); + m_topwindow_rect = topLevelWidget ()->geometry (); } KDE_NO_EXPORT void ViewArea::accelActivated () { @@ -1481,7 +1481,7 @@ KDE_NO_EXPORT void ViewArea::syncVisual (const IRect & rect) { if (surface->node) surface->node->accept (&visitor); #else - tqrepaint (TQRect(rect.x, rect.y, rect.w, rect.h), false); + repaint (TQRect(rect.x, rect.y, rect.w, rect.h), false); #endif if (m_repaint_timer) { killTimer (m_repaint_timer); @@ -1593,13 +1593,13 @@ void ViewArea::setAudioVideoGeometry (const IRect &rect, unsigned int * bg_color h = hfw; } } - m_av_tqgeometry = TQRect (x, y, w, h); - TQRect wrect = m_view->widgetStack ()->tqgeometry (); - if (m_av_tqgeometry != wrect && - !(m_av_tqgeometry.width() <= 0 && + m_av_geometry = TQRect (x, y, w, h); + TQRect wrect = m_view->widgetStack ()->geometry (); + if (m_av_geometry != wrect && + !(m_av_geometry.width() <= 0 && wrect.width() <= 1 && wrect.height() <= 1)) { m_view->widgetStack ()->setGeometry (x, y, w, h); - wrect.unite (m_av_tqgeometry); + wrect.unite (m_av_geometry); scheduleRepaint (IRect (wrect.x (), wrect.y (), wrect.width (), wrect.height ())); } if (bg_color) @@ -1668,7 +1668,7 @@ KDE_NO_EXPORT void ViewArea::timerEvent (TQTimerEvent * e) { } else if (e->timerId () == m_repaint_timer) { killTimer (m_repaint_timer); m_repaint_timer = 0; - //tqrepaint (m_repaint_rect, false); + //repaint (m_repaint_rect, false); syncVisual (m_repaint_rect.intersect (IRect (0, 0, width (), height ()))); } else { kdError () << "unknown timer " << e->timerId () << " " << m_repaint_timer << endl; |