From: <j-...@us...> - 2008-06-09 20:17:02
|
Revision: 2240 http://kdenlive.svn.sourceforge.net/kdenlive/?rev=2240&view=rev Author: j-b-m Date: 2008-06-09 13:17:05 -0700 (Mon, 09 Jun 2008) Log Message: ----------- optimize painting Modified Paths: -------------- branches/KDE4/src/clipitem.cpp branches/KDE4/src/customtrackview.cpp Modified: branches/KDE4/src/clipitem.cpp =================================================================== --- branches/KDE4/src/clipitem.cpp 2008-06-09 19:58:48 UTC (rev 2239) +++ branches/KDE4/src/clipitem.cpp 2008-06-09 20:17:05 UTC (rev 2240) @@ -244,7 +244,7 @@ } // draw audio thumbnails - if (KdenliveSettings::audiothumbnails() && ((m_clipType == AV && option->exposedRect.height() > br.height() / 2) || m_clipType == AUDIO) && audioThumbReady) { + if (KdenliveSettings::audiothumbnails() && ((m_clipType == AV && option->exposedRect.bottom() > br.height() / 2) || m_clipType == AUDIO) && audioThumbReady) { QPainterPath path = m_clipType == AV ? roundRectPathLower : resultClipPath; if (m_clipType == AV) painter->fillPath(path, QBrush(QColor(200, 200, 200, 140))); @@ -293,7 +293,6 @@ pen.setStyle(Qt::SolidLine); painter->setPen(pen); - // draw start / end fades QBrush fades; if (isSelected()) { Modified: branches/KDE4/src/customtrackview.cpp =================================================================== --- branches/KDE4/src/customtrackview.cpp 2008-06-09 19:58:48 UTC (rev 2239) +++ branches/KDE4/src/customtrackview.cpp 2008-06-09 20:17:05 UTC (rev 2240) @@ -419,10 +419,12 @@ // select item if (!item->isSelected()) { QList<QGraphicsItem *> itemList = items(); - for (int i = 0; i < itemList.count(); i++) + for (int i = 0; i < itemList.count(); i++) { itemList.at(i)->setSelected(false); + itemList.at(i)->update(); + } item->setSelected(true); - update(); + item->update(); } m_dragItem = (AbstractClipItem *) item; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |