]> Git trees. - libqmvoc.git/commitdiff
Fix in extdatetime.h: overloaded ExtDateTime::fromString() functions
authorJason Harris <kstars@30doradus.org>
Sun, 18 Dec 2005 00:34:01 +0000 (00:34 +0000)
committerJason Harris <kstars@30doradus.org>
Sun, 18 Dec 2005 00:34:01 +0000 (00:34 +0000)
were ambiguous; fixed by removing a default parameter from one of them.

KPlotWidget must be derived from QFrame rather than QWidget, otherwise
it is not usable in Qt designer.  In designer, you place a custom widget
by using the widget's baseclass, and then "promoting" it.  However,
designer does not provide a QWidget!  So, it would seem that custom
widgets cannot be derived directly from QWidget.  This may be a bug in
designer.

CCMAIL: kde-edu@kde.org
CCMAIL: kstars-devel@kde.org

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=489303

extdate/extdatetime.h
kdeeduplot/kplotwidget.cpp
kdeeduplot/kplotwidget.h

index e117cbbe206f84de2573367d7f18b8c013a62beb..3dc85d860b4805862b619f861b578ffff35de284 100644 (file)
@@ -167,7 +167,7 @@ public:
     static ExtDateTime currentDateTime( Qt::TimeSpec );
 #ifndef QT_NO_DATESTRING
     static ExtDateTime fromString( const QString& s );
-    static ExtDateTime fromString( const QString& s, Qt::DateFormat f = Qt::TextDate );
+    static ExtDateTime fromString( const QString& s, Qt::DateFormat f );
 #endif
 private:
     ExtDate  d;
index 9a1855b46f687cdb6acaec23a7236a7ee05beb00..cdb11d707a0e393ca0370456cffad767882879c0 100644 (file)
@@ -28,7 +28,7 @@
 #include "kplotobject.h"
 
 KPlotWidget::KPlotWidget( double x1, double x2, double y1, double y2, QWidget *parent )
- : QWidget( parent, Qt::WNoAutoErase ),
+ : QFrame( parent ),
    dXtick(0.0), dYtick(0.0),
    nmajX(0), nminX(0), nmajY(0), nminY(0),
    ShowTickMarks( true ), ShowTickLabels( true ), ShowGrid( false )
index 2b465765059ee64bcce6375c0195b11d27ce03a5..87bf0894c059fbc646aaedfee0f615f518bdd4ab 100644 (file)
 #ifndef KPLOTWIDGET_H
 #define KPLOTWIDGET_H
 
-#include <qcolor.h>
-#include <qrect.h>
-#include <qwidget.h>
-#include <qlist.h>
+#include <QFrame>
+#include <QList>
+
 #include "kplotaxis.h"
 
 #define BIGTICKSIZE 10
@@ -45,7 +44,7 @@ class KPlotObject;
  * @version 1.1
  */
 
-class KDE_EXPORT KPlotWidget : public QWidget {
+class KDE_EXPORT KPlotWidget : public QFrame {
        Q_OBJECT
 public:
        /**