Mercurial > projects > qtd
diff demos/browser/chasewidget.d @ 74:37caa90ce503
more porting
author | mandel |
---|---|
date | Fri, 22 May 2009 23:43:58 +0000 |
parents | 7bfd46c330dc |
children | 0654fc9bac95 |
line wrap: on
line diff
--- a/demos/browser/chasewidget.d Fri May 22 10:59:00 2009 +0000 +++ b/demos/browser/chasewidget.d Fri May 22 23:43:58 2009 +0000 @@ -87,7 +87,7 @@ update(); } - void setPixmapEnabled(bool enable); + void setPixmapEnabled(bool enable) { m_pixmapEnabled = enable; } @@ -112,7 +112,7 @@ int displ = extent / 4; int ext = extent / 4 - 1; - p.setRenderHint(QPainter::Antialiasing, true); + p.setRenderHint(QPainter.Antialiasing, true); if(m_animated) p.setPen(Qt.gray); @@ -122,7 +122,7 @@ p.translate(width() / 2, height() / 2); // center for (int segment = 0; segment < segmentCount(); ++segment) { - p.rotate(QApplication::isRightToLeft() ? m_step : -m_step); + p.rotate(QApplication.isRightToLeft() ? m_step : -m_step); if(m_animated) p.setBrush(colorForSegment(segment)); else @@ -131,9 +131,9 @@ } } - void timerEvent(QTimerEvent *event) + void timerEvent(QTimerEvent event) { - if (event->timerId() == m_timerId) { + if (event.timerId() == m_timerId) { ++m_segment; update(); }