Fixed behavior of Tool-Widgets.

Removed memory leak.
preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 58746c87e5
commit 0989989915
  1. 3
      src/board/UBBoardView.cpp
  2. 2
      src/gui/UBToolWidget.cpp

@ -989,7 +989,8 @@ UBBoardView::mouseReleaseEvent (QMouseEvent *event)
{
if (QGraphicsSvgItem::Type != movingItem->type() &&
UBGraphicsDelegateFrame::Type != movingItem->type() &&
UBToolWidget::Type != movingItem->type())
UBToolWidget::Type != movingItem->type() &&
QGraphicsWidget::Type != movingItem->type())
{
bReleaseIsNeed = false;
if (movingItem->isSelected() && mMultipleSelectionIsEnabled)

@ -76,7 +76,7 @@ void UBToolWidget::initialize()
if(!sUnpinPixmap)
sUnpinPixmap = new QPixmap(":/images/unpin.svg");
QGraphicsLinearLayout *graphicsLayout = new QGraphicsLinearLayout(Qt::Vertical);
QGraphicsLinearLayout *graphicsLayout = new QGraphicsLinearLayout(Qt::Vertical, this);
mFrameWidth = UBSettings::settings()->objectFrameWidth;
mContentMargin = sClosePixmap->width() / 2 + mFrameWidth;

Loading…
Cancel
Save