comparison examples/widgets/analogclock/AnalogClock.d @ 5:834feae7809b

Fix include paths in CMake script. Revert wrong changes of 8 revision.
author SokoL_SD
date Wed, 13 May 2009 19:45:58 +0000
parents 0a29ce1ae854
children 1d272f0bfefa
comparison
equal deleted inserted replaced
4:0a29ce1ae854 5:834feae7809b
62 resize(200, 200); 62 resize(200, 200);
63 } 63 }
64 64
65 void paintEvent(QPaintEvent event) 65 void paintEvent(QPaintEvent event)
66 { 66 {
67 /* static const QPoint hourHand[3] = { 67 static const QPoint[3] hourHand = [
68 QPoint(7, 8), 68 QPoint(7, 8),
69 QPoint(-7, 8), 69 QPoint(-7, 8),
70 QPoint(0, -40) 70 QPoint(0, -40)
71 }; 71 ];
72 static const QPoint minuteHand[3] = { 72 static const QPoint[3] minuteHand = [
73 QPoint(7, 8), 73 QPoint(7, 8),
74 QPoint(-7, 8), 74 QPoint(-7, 8),
75 QPoint(0, -70) 75 QPoint(0, -70)
76 }; 76 ];
77 */
78 scope hourHand = new QPolygon;
79 hourHand.append(QPoint(7, 8));
80 hourHand.append(QPoint(-7, 8));
81 hourHand.append(QPoint(0, -40));
82
83 scope minuteHand = new QPolygon;
84 minuteHand.append(QPoint(7, 8));
85 minuteHand.append(QPoint(-7, 8));
86 minuteHand.append(QPoint(0, -70));
87 77
88 scope hourColor = new QColor(127, 0, 127); 78 scope hourColor = new QColor(127, 0, 127);
89 scope minuteColor = new QColor(0, 127, 127, 191); 79 scope minuteColor = new QColor(0, 127, 127, 191);
90 80
91 int side = qMin(width(), height()); 81 int side = qMin(width(), height());