small changes done during the meeting

This commit is contained in:
Paolo Cignoni cignoni 2008-02-06 11:28:10 +00:00
parent 0fa31e0750
commit d75dfe7cf4
5 changed files with 7 additions and 12 deletions

View File

@ -26,8 +26,8 @@ EqHandle::~EqHandle(void)
void EqHandle::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget /*= 0*/ )
{
Q_UNUSED(option);
Q_UNUSED(widget);
//Q_UNUSED(option);
//Q_UNUSED(widget);
//QPen pen(Qt::black);
//non sepen.setWidth(2);
painter->setPen(_color);

View File

@ -26,7 +26,7 @@ public:
int zOrder, int size);
~EqHandle(void);
QRectF boundingRect () const;
void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget);
virtual void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget);
void setSize (int size) {(size%2==0) ? _size=size+1 : _size=size;};
void setBarHeight (qreal height) {_barHeight = height;};

View File

@ -21,7 +21,7 @@ public:
// Overriding QGraphicsItem methods
QRectF boundingRect () const;
void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) = 0;
virtual void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) = 0;
protected:
void mousePressEvent (QGraphicsSceneMouseEvent *event);

View File

@ -459,6 +459,7 @@ void QualityMapperDialog::drawGammaCorrection()
//painter.drawArc(0, 0, pixmap->width(), pixmap->height(), 0, -90*16);
ui.gammaCorrectionLabel->setPixmap(*pixmap);
painter.end();
delete pixmap;
}

View File

@ -5,8 +5,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>520</width>
<height>600</height>
<width>583</width>
<height>717</height>
</rect>
</property>
<property name="minimumSize" >
@ -15,12 +15,6 @@
<height>600</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>520</width>
<height>600</height>
</size>
</property>
<property name="windowTitle" >
<string>Quality Mapper Dialog</string>
</property>