diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-03-20 03:29:30 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-03-20 03:29:30 +0100 |
commit | 6bc07bf321fb946fdc8e620d5565ca8070acf149 (patch) | |
tree | aa52679e6a5efb48d094c3d5e6d8f95696497788 /qfunctionconfigurator/qfunctionconfigurator.cpp | |
parent | bac29155c895377d63646ad0819d25fc6139d6a5 (diff) |
qfc: remove some nonsense
The code didn't do anything sensible.
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index 1c90cd6f..431f56d4 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -167,12 +167,6 @@ void QFunctionConfigurator::paintEvent(QPaintEvent *e) drawLine(&p, prev, tmp, pen); prev = tmp; } - pen.setWidth(1); - pen.setColor( Qt::white ); - pen.setStyle( Qt::DashLine ); - QPointF pixel_pos = point_to_pixel(points[moving_control_point_idx]); - drawLine(&p, QPoint(pixel_bounds.left(), pixel_pos.y()), QPoint(pixel_pos.x(), pixel_pos.y()), pen); - drawLine(&p, QPoint(pixel_pos.x(), pixel_pos.y()), QPoint(pixel_pos.x(), pixel_bounds.height() + pixel_bounds.top()), pen); } // If the Tracker is active, the 'Last Point' it requested is recorded. @@ -182,12 +176,6 @@ void QFunctionConfigurator::paintEvent(QPaintEvent *e) if (_config->getLastPoint(last)) { QPointF pixel_pos = point_to_pixel( QPointF(fabs(last.x()), fabs(last.y())) ); drawPoint(&p, pixel_pos, QColor(255, 0, 0, 120)); - - pen.setWidth(1); - pen.setColor( Qt::black ); - pen.setStyle( Qt::SolidLine ); - drawLine(&p, QPoint(pixel_bounds.left(), pixel_pos.y()), QPoint(pixel_pos.x(), pixel_pos.y()), pen); - drawLine(&p, QPoint(pixel_pos.x(), pixel_pos.y()), QPoint(pixel_pos.x(), pixel_bounds.width()), pen); } } } |