]> Git trees. - libqmvoc.git/commitdiff
messages to console don't need to be i18n'ed; remove unneeded #include's
authorPino Toscano <pino@kde.org>
Sat, 17 Feb 2007 00:02:31 +0000 (00:02 +0000)
committerPino Toscano <pino@kde.org>
Sat, 17 Feb 2007 00:02:31 +0000 (00:02 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634354

kdeeduplot/kplotwidget.cpp

index a8c957c2bd8e09e591dc0f4a2d2865a2f19fcc86..727e96b1d8040d1c8afa4e5ad82ac9e872ff005e 100644 (file)
 #include <QHash>
 #include <QPainter>
 #include <QPixmap>
-#include <QPolygon>
 #include <QToolTip>
 #include <QtAlgorithms>
-#include <klocale.h>
 
 #include "kplotwidget.h"
 #include "kplotwidget.moc"
@@ -128,13 +126,11 @@ void KPlotWidget::setLimits( double x1, double x2, double y1, double y2 ) {
        else { YA1=y1; YA2=y2; }
 
        if ( XA2 == XA1 ) {
-               kWarning() << k_funcinfo << ": " <<
-                       i18n("x1 and x2 cannot be equal.  Setting x2 = x1 + 1.0") << endl;
+               kWarning() << k_funcinfo << "x1 and x2 cannot be equal. Setting x2 = x1 + 1.0" << endl;
                XA2 = XA1 + 1.0;
        }
        if ( YA2 == YA1 ) {
-               kWarning() << k_funcinfo << ": " << 
-                       i18n("y1 and y2 cannot be equal.  Setting y2 = y1 + 1.0") << endl;
+               kWarning() << k_funcinfo << "y1 and y2 cannot be equal. Setting y2 = y1 + 1.0" << endl;
                YA2 = YA1 + 1.0;
        }
        d->dataRect = QRectF( XA1, YA1, XA2-XA1, YA2-YA1 );
@@ -158,13 +154,11 @@ void KPlotWidget::setSecondaryLimits( double x1, double x2, double y1, double y2
        else { YA1=y1; YA2=y2; }
 
        if ( XA2 == XA1 ) {
-               kWarning() << k_funcinfo << ": " <<
-                       i18n("x1 and x2 cannot be equal.  Setting x2 = x1 + 1.0") << endl;
+               kWarning() << k_funcinfo << "x1 and x2 cannot be equal. Setting x2 = x1 + 1.0" << endl;
                XA2 = XA1 + 1.0;
        }
        if ( YA2 == YA1 ) {
-               kWarning() << k_funcinfo << ": " << 
-                       i18n("y1 and y2 cannot be equal.  Setting y2 = y1 + 1.0") << endl;
+               kWarning() << k_funcinfo << "y1 and y2 cannot be equal. Setting y2 = y1 + 1.0" << endl;
                YA2 = YA1 + 1.0;
        }
        d->secondDataRect = QRectF( XA1, YA1, XA2-XA1, YA2-YA1 );