summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Chornoivan <[email protected]>2015-03-15 15:19:03 +0200
committerYuri Chornoivan <[email protected]>2015-03-15 15:19:03 +0200
commit43184ec98284c6b24dce84f1070fc831b4f4910d (patch)
tree92b7f0bf5f1524bb7648ca93b041f3d657911e79
parente02cc6131158fcf18cd5afed836085078e5b8806 (diff)
Fix EBN issues
-rw-r--r--kmplot/maindlg.h2
-rw-r--r--kmplot/view.cpp2
-rw-r--r--kmplot/view.h1
3 files changed, 2 insertions, 3 deletions
diff --git a/kmplot/maindlg.h b/kmplot/maindlg.h
index 2f7598d..1ba99d2 100644
--- a/kmplot/maindlg.h
+++ b/kmplot/maindlg.h
@@ -74,7 +74,7 @@ class MainDlg : public KParts::ReadWritePart
Q_OBJECT
public:
- /** Constuctor.
+ /** Constructor.
* @param parentWidget parent widget for this part
* @param parent parent object
*/
diff --git a/kmplot/view.cpp b/kmplot/view.cpp
index f7d53c8..538e69c 100644
--- a/kmplot/view.cpp
+++ b/kmplot/view.cpp
@@ -2747,7 +2747,7 @@ void View::paintEvent(QPaintEvent *)
// draw tangent
double tangent_scale = 1.2; // make the tangent look better
- p.drawLine( QLineF( -1/k, -qMax( 1/k, 15. ) * tangent_scale, -1/k, qMax( 1/k, 15. ) * tangent_scale ) );
+ p.drawLine( QLineF( -1/k, -qMax( 1/k, qreal(15.) ) * tangent_scale, -1/k, qMax( 1/k, qreal(15.) ) * tangent_scale ) );
// draw perpendicular symbol
QPolygonF perp(3);
diff --git a/kmplot/view.h b/kmplot/view.h
index 5a38a02..503d4a2 100644
--- a/kmplot/view.h
+++ b/kmplot/view.h
@@ -35,7 +35,6 @@
#include <QResizeEvent>
#include <QKeyEvent>
#include <QEvent>
-#include <QEvent>
#include <ktoggleaction.h>
// KDE includes