Skip to content

Commit 011f543

Browse files
author
David Navrkal
committed
Removed debug messages and debug window in Windows.
1 parent dcb5d0b commit 011f543

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

RegularConvertor/RegularConvertor.pro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
#
55
#-------------------------------------------------
66

7-
QT += core gui widgets opengl testlib
7+
QT += core gui widgets opengl
88

99
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
1010

1111
TARGET = RegularConvertor
1212
TEMPLATE = app
1313

1414
unix {
15-
LIBS += -lGL
15+
LIBS += -lGL
16+
QT += testlib
1617
}
1718

1819
win32 {

RegularConvertor/finite_machine/arrow.cpp

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ QWidget *)
218218
else
219219
{
220220
QRectF text_rect = recalculateTextSpace();
221-
qDebug() << getStartItemPos() << getEndItemPos();
221+
// qDebug() << getStartItemPos() << getEndItemPos();
222222
QLineF centerLine(getStartItemPos(), getEndItemPos());
223223

224224
QPointF center_point = centerLine.pointAt(0.5);
@@ -581,40 +581,24 @@ t=-------------------
581581
QPoint intersect1 = QPoint(x1+(x2-x1)*t1,y1+(y2-y1)*t1);
582582
qreal t2 = (-B - qSqrt(D))/(2*A);
583583
QPoint intersect2 = QPoint(x1+(x2-x1)*t2,y1+(y2-y1)*t2);
584-
qDebug() <<"p1: " << p1;
585-
qDebug() <<"p2: " << p2;
586-
qDebug() << "Intersect: " <<intersect1;
587584
if((t1 >=0 && t1 <= 1 ) || (t2 >= 0 && t2 <= 1) )
588585
{
589586
if((t1 >=0 && t1 <= 1 ) && (t2 >= 0 && t2 <= 1))
590587
return (t1 < t2) ? intersect1 : intersect2;
591588
else if(t1 >=0 && t1 <= 1)
592589
{
593-
qDebug() <<"t1: " << t1;
594-
qDebug() <<"t2: " << t2;
595-
qDebug() << "Intersect: " <<intersect1;
596590
return intersect1;
597591
}
598592
else
599593
{
600-
qDebug() <<"t1: " << t1;
601-
qDebug() <<"t2: "<< t2;
602-
qDebug() <<"Intersect: " << intersect2;
603594
return intersect2;
604595
}
605596

606597
}
607598
else
608599
{
609600
qDebug() << "Fatal eroor: No intersect, returning point [0,0]";
610-
qDebug() << "Max qreal: " << std::numeric_limits<qreal>::max();
611-
qDebug() << t1;
612-
qDebug() << t2;
613-
qDebug() << intersect1;
614-
qDebug() << intersect2;
615-
qDebug() << p1;
616-
qDebug() << p2;
617-
return p1;
601+
return QPoint();
618602
}
619603

620604
}

0 commit comments

Comments
 (0)