|
|
|
@ -418,7 +418,6 @@ bool UBGraphicsItemDelegate::isLocked() |
|
|
|
|
|
|
|
|
|
void UBGraphicsItemDelegate::duplicate() |
|
|
|
|
{ |
|
|
|
|
// TODO UB 4.x .. rewrite .. .this is absurde ... we know what we are duplicating
|
|
|
|
|
UBApplication::boardController->duplicateItem(dynamic_cast<UBItem*>(delegated())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1190,8 +1189,6 @@ void DelegateMediaControl::positionHandles() |
|
|
|
|
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()); |
|
|
|
|
|
|
|
|
@ -1200,8 +1197,6 @@ void DelegateMediaControl::positionHandles() |
|
|
|
|
setRect(selfRect); |
|
|
|
|
|
|
|
|
|
lcdTimer->setPos(rect().width() - mLCDTimerArea.width(), 0);
|
|
|
|
|
//lcdTimer->setPos(rect().width() - mLCDTimerArea.width(), 0);
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DelegateMediaControl::update() |
|
|
|
@ -1209,7 +1204,6 @@ 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(); |
|
|
|
|
} |
|
|
|
@ -1262,7 +1256,6 @@ void DelegateMediaControl::seekToMousePos(QPointF mousePos) |
|
|
|
|
|
|
|
|
|
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)) |
|
|
|
|