From dc4bb2eb454d8883eae598b640c670364d3ce0dc Mon Sep 17 00:00:00 2001 From: Aleksei Kanash Date: Thu, 16 Aug 2012 19:17:38 +0300 Subject: [PATCH] Mask was removed from AudioPresentationWidget. Border is 2px now. --- src/domain/UBGraphicsMediaItem.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/domain/UBGraphicsMediaItem.cpp b/src/domain/UBGraphicsMediaItem.cpp index 10818e56..76bbbd53 100644 --- a/src/domain/UBGraphicsMediaItem.cpp +++ b/src/domain/UBGraphicsMediaItem.cpp @@ -36,15 +36,13 @@ void UBAudioPresentationWidget::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.fillRect(rect(), QBrush(Qt::white)); - painter.drawRoundedRect(1,1, width()-2, height()-2, height()/5, height()/5); - - QImage mask_img(size(), QImage::Format_Mono); - mask_img.fill(0xff); - QPainter mask_painter(&mask_img); - mask_painter.setBrush(QBrush( QColor(0, 0, 0))); - mask_painter.drawRoundedRect(1,1, width()-2, height()-2, height()/5, height()/5); + + QPen borderPen; + borderPen.setWidth(2); + borderPen.setColor(QColor(Qt::black)); - setMask(QBitmap::fromImage(mask_img)); + painter.setPen(borderPen); + painter.drawRect(0,0, width(), height()); if (QString() != mTitle) {