Resolved cache issue 339

preferencesAboutTextFull
shibakaneki 13 years ago
parent bc9a6693aa
commit 0b449cc407
  1. 2
      src/gui/UBCachePropertiesWidget.cpp
  2. 2
      src/tools/UBGraphicsCache.cpp

@ -92,7 +92,7 @@ UBCachePropertiesWidget::UBCachePropertiesWidget(QWidget *parent, const char *na
mpSizeLabel = new QLabel(tr("Size:"), mpProperties); mpSizeLabel = new QLabel(tr("Size:"), mpProperties);
mpSizeSlider = new QSlider(Qt::Horizontal, mpProperties); mpSizeSlider = new QSlider(Qt::Horizontal, mpProperties);
mpSizeSlider->setMinimumHeight(20); mpSizeSlider->setMinimumHeight(20);
mpSizeSlider->setMinimum(0); mpSizeSlider->setMinimum(50);
mpSizeSlider->setMaximum(MAX_SHAPE_WIDTH); mpSizeSlider->setMaximum(MAX_SHAPE_WIDTH);
mpSizeLayout->addWidget(mpSizeLabel, 0); mpSizeLayout->addWidget(mpSizeLabel, 0);
mpSizeLayout->addWidget(mpSizeSlider, 1); mpSizeLayout->addWidget(mpSizeSlider, 1);

@ -105,7 +105,7 @@ void UBGraphicsCache::paint(QPainter *painter, const QStyleOptionGraphicsItem *o
} }
else if(eMaskShap_Rectangle == mMaskShape) else if(eMaskShap_Rectangle == mMaskShape)
{ {
path.addRect(mShapePos.x() - mShapeWidth / 2, mShapePos.y() - mShapeWidth / 2, mShapeWidth, mShapeWidth); path.addRect(mShapePos.x() - mShapeWidth, mShapePos.y() - mShapeWidth, 2*mShapeWidth, 2*mShapeWidth);
} }
path.setFillRule(Qt::OddEvenFill); path.setFillRule(Qt::OddEvenFill);
} }

Loading…
Cancel
Save