Change in equidistant.
This commit is contained in:
parent
fb99e19f27
commit
2edb62eb9b
|
@ -1,12 +1,6 @@
|
|||
#include "calculator.h"
|
||||
#include <cmath>
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Weffc++"
|
||||
#pragma GCC diagnostic ignored "-Wconversion"
|
||||
#pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
|
||||
#include <QDebug>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#define DELIMITER 1
|
||||
#define VARIABLE 2
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
#ifndef CALCULATOR_H
|
||||
#define CALCULATOR_H
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Weffc++"
|
||||
#pragma GCC diagnostic ignored "-Wconversion"
|
||||
#pragma GCC diagnostic ignored "-Wsign-conversion"
|
||||
#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
|
||||
#include <QtGlobal>
|
||||
#include <QString>
|
||||
#include <QMap>
|
||||
#include <QLineF>
|
||||
#include <QPointF>
|
||||
#pragma GCC diagnostic pop
|
||||
#include "vcontainer.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -354,11 +354,15 @@ QVector<QPointF> VContainer::EkvPoint(const QLineF &line1, const QLineF &line2,
|
|||
break;
|
||||
case(QLineF::UnboundedIntersection):{
|
||||
QLineF line( line1.p2(), CrosPoint );
|
||||
if(line.length() > width + toPixel(3)){
|
||||
points.append(bigLine1.p2());
|
||||
line.setLength( width );
|
||||
points.append(line.p2() );
|
||||
points.append(bigLine2.p1());
|
||||
if(line.length() > width + toPixel(8)){
|
||||
QLineF l;
|
||||
l = QLineF(bigLine1.p2(), CrosPoint);
|
||||
l.setLength(width);
|
||||
points.append(l.p2());
|
||||
|
||||
l = QLineF(bigLine2.p1(), CrosPoint);
|
||||
l.setLength(width);
|
||||
points.append(l.p2());
|
||||
} else {
|
||||
points.append(CrosPoint);
|
||||
return points;
|
||||
|
|
Loading…
Reference in New Issue
Block a user