[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Mon Apr 4 17:33:34 CEST 2005
CVS commit by staikos:
fix the icons. This widget is pretty much done now.
M +16 -16 kstlogwidget.cpp 1.2
--- kdeextragear-2/kst/kst/kstlogwidget.cpp #1.1:1.2
@@ -141,5 +141,5 @@ void KstLogWidget::generateImages() {
QPainter painter;
- int height = 14, margin = 1, step = 1;
+ int height = 14, margin = 1, step = (height - margin * 2) / 4;
// Based on Kst code Copyright 2004 The University of British Columbia
pixmap = QPixmap(height, height);
@@ -156,6 +156,6 @@ void KstLogWidget::generateImages() {
painter.begin(&pixmap);
pointArray.putPoints(0, 3, margin, margin,
- margin + height, margin,
- margin + ( height / 2 ), margin + height);
+ height - margin, margin,
+ height / 2, height - margin);
painter.setBrush(QColor("DarkOrange"));
painter.drawPolygon(pointArray);
@@ -187,6 +187,6 @@ void KstLogWidget::generateImages() {
painter.setBrush(QColor("DeepSkyBlue"));
painter.drawRoundRect(margin, margin,
- height, height,
- height / 3, height / 3);
+ height - 2 * margin, height - 2 * margin,
+ (height - 2 * margin) / 3, (height - 2 * margin) / 3);
painter.end();
pixmap.setMask(pixmap.createHeuristicMask(true));
More information about the Kst
mailing list