From bda4b918716d38912948652accc2963ae8e595eb Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 9 Aug 2012 11:34:06 +0200 Subject: [PATCH] second bad fix --- src/domain/UBGraphicsItemDelegate.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index 816636c1..dc59bb35 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -1128,8 +1128,9 @@ DelegateMediaControl::DelegateMediaControl(UBGraphicsMediaItem* pDelegated, QGra setPen(Qt::NoPen); setData(UBGraphicsItemData::ItemLayerType, QVariant(UBItemLayerType::Control)); - lcdTimer = new MediaTimer(this); - lcdTimer->init(); + lcdTimer = 0; + //lcdTimer = new MediaTimer(this); + //lcdTimer->init(); update(); } @@ -1180,8 +1181,8 @@ void DelegateMediaControl::positionHandles() { mLCDTimerArea.setWidth(parentItem()->boundingRect().height()); mLCDTimerArea.setHeight(parentItem()->boundingRect().height()); - lcdTimer->setRect(mLCDTimerArea); - lcdTimer->setPos(mSeecArea.width()-mLCDTimerArea.width(),0); + //lcdTimer->setRect(mLCDTimerArea); + //lcdTimer->setPos(mSeecArea.width()-mLCDTimerArea.width(),0); mSeecArea.setWidth(rect().width()-mLCDTimerArea.width()); @@ -1189,7 +1190,7 @@ void DelegateMediaControl::positionHandles() selfRect.setHeight(parentItem()->boundingRect().height()); setRect(selfRect); - lcdTimer->setPos(rect().width() - mLCDTimerArea.width(), 0); + //lcdTimer->setPos(rect().width() - mLCDTimerArea.width(), 0); } @@ -1197,7 +1198,7 @@ void DelegateMediaControl::update() { QTime t; t = t.addMSecs(mCurrentTimeInMs < 0 ? 0 : mCurrentTimeInMs); - lcdTimer->display(t.toString("m:ss")); + //lcdTimer->display(t.toString("m:ss")); QGraphicsRectItem::update(); } @@ -1249,7 +1250,7 @@ void DelegateMediaControl::seekToMousePos(QPointF mousePos) qreal frameWidth = rect().height() / 2; minX = frameWidth; - length = mSeecArea.width() - lcdTimer->rect().width(); + length = mSeecArea.width() /*- lcdTimer->rect().width()*/; qreal mouseX = mousePos.x(); if (mouseX >= (mSeecArea.width() - mSeecArea.height()/2))