|
|
|
@ -383,7 +383,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
|
|
|
|
|
{
|
|
|
|
|
TQPixmap pm(size());
|
|
|
|
|
TQPainter p1;
|
|
|
|
|
p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
|
|
|
|
|
p1.begin(&pm, TQT_TQOBJECT(this));
|
|
|
|
|
p1.fillRect(0, 0, size().width(), size().height(), palette().disabled().background());
|
|
|
|
|
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
|
|
|
|
|
p1.drawRect(0, 0, width(), height());
|
|
|
|
@ -405,7 +405,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
|
|
|
|
|
int asize = 24;
|
|
|
|
|
TQPixmap anim(asize, asize);
|
|
|
|
|
TQPainter p2;
|
|
|
|
|
p2.begin(TQT_TQPAINTDEVICE(&anim), TQT_TQOBJECT(this));
|
|
|
|
|
p2.begin(&anim, TQT_TQOBJECT(this));
|
|
|
|
|
p2.fillRect(0, 0, asize, asize, palette().active().background());
|
|
|
|
|
p2.translate(asize/2, asize/2);
|
|
|
|
|
|
|
|
|
@ -423,7 +423,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
|
|
|
|
|
|
|
|
|
|
TQPixmap pm(size());
|
|
|
|
|
TQPainter p1;
|
|
|
|
|
p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
|
|
|
|
|
p1.begin(&pm, TQT_TQOBJECT(this));
|
|
|
|
|
p1.fillRect(0, 0, width(), height(), palette().active().background());
|
|
|
|
|
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
|
|
|
|
|
p1.drawRect(0, 0, width(), height());
|
|
|
|
@ -447,7 +447,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
|
|
|
|
|
{
|
|
|
|
|
TQPixmap pm(size());
|
|
|
|
|
TQPainter p1;
|
|
|
|
|
p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
|
|
|
|
|
p1.begin(&pm, TQT_TQOBJECT(this));
|
|
|
|
|
p1.fillRect(0, 0, width(), height(), palette().active().background());
|
|
|
|
|
p1.setPen(TQPen(palette().active().foreground(), 1, TQt::SolidLine));
|
|
|
|
|
p1.drawRect(0, 0, width(), height());
|
|
|
|
@ -524,7 +524,7 @@ void HistogramWidget::paintEvent(TQPaintEvent*)
|
|
|
|
|
|
|
|
|
|
TQPixmap pm(size());
|
|
|
|
|
TQPainter p1;
|
|
|
|
|
p1.begin(TQT_TQPAINTDEVICE(&pm), TQT_TQOBJECT(this));
|
|
|
|
|
p1.begin(&pm, TQT_TQOBJECT(this));
|
|
|
|
|
p1.fillRect(0, 0, width(), height(), palette().active().background());
|
|
|
|
|
|
|
|
|
|
// Drawing selection or all histogram values.
|
|
|
|
|