removed call to hide toolbar for textItem

preferencesAboutTextFull
-f 11 years ago
parent d5fc130eec
commit 3254826c1a
  1. 19
      src/domain/UBGraphicsGroupContainerItem.cpp

@ -160,22 +160,9 @@ void UBGraphicsGroupContainerItem::removeFromGroup(QGraphicsItem *item)
void UBGraphicsGroupContainerItem::deselectCurrentItem() void UBGraphicsGroupContainerItem::deselectCurrentItem()
{ {
if (mCurrentItem) if (mCurrentItem && mCurrentItem->type() == UBGraphicsMediaItem::Type){
{
switch(mCurrentItem->type())
{
case UBGraphicsTextItem::Type:
{
dynamic_cast<UBGraphicsTextItem*>(mCurrentItem)->Delegate()->getToolBarItem()->hide();
}
break;
case UBGraphicsMediaItem::Type:
{
dynamic_cast<UBGraphicsMediaItem*>(mCurrentItem)->Delegate()->getToolBarItem()->hide(); dynamic_cast<UBGraphicsMediaItem*>(mCurrentItem)->Delegate()->getToolBarItem()->hide();
}
break;
}
mCurrentItem->setSelected(false); mCurrentItem->setSelected(false);
mCurrentItem = NULL; mCurrentItem = NULL;
} }
@ -185,8 +172,8 @@ QRectF UBGraphicsGroupContainerItem::boundingRect() const
{ {
return itemsBoundingRect; return itemsBoundingRect;
} }
void UBGraphicsGroupContainerItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QWidget *widget) void UBGraphicsGroupContainerItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{ {
Q_UNUSED(widget); Q_UNUSED(widget);
Q_UNUSED(painter); Q_UNUSED(painter);

Loading…
Cancel
Save