setMinimumSize( 150, 150 );
}
+KPlotWidget::KPlotWidget( QWidget * parent )
+ : QFrame( parent ), d( new Private( this ) )
+{
+ setAttribute( Qt::WA_NoBackground, true );
+
+ // sets the default limits
+ setLimits( 0.0, 1.0, 0.0, 1.0 );
+ SecondDataRect = QRect(); //default: no secondary data rect
+
+ setDefaultPaddings();
+
+ setMinimumSize( 150, 150 );
+}
+
KPlotWidget::~KPlotWidget()
{
qDeleteAll( ObjectList );
Q_PROPERTY(bool objectToolTip READ areObjectToolTipsShown WRITE setShowObjectToolTips)
public:
/**
- * @short Constructor. Sets the primary x and y limits in data units.
- * @param parent the parent widget
- * @param x1 the minimum X value in data units
- * @param x2 the maximum X value in data units
- * @param y1 the minimum Y value in data units
- * @param y2 the maximum Y value in data units
+ * @deprecated use the normal constructor and setLimits()
*/
- KPlotWidget( QWidget *parent=0, double x1=0.0, double x2=1.0, double y1=0.0, double y2=1.0 );
+ KDE_DEPRECATED KPlotWidget( QWidget *parent, double x1, double x2, double y1, double y2 );
+
+ /**
+ * Constructor.
+ * @param parent the parent widget
+ */
+ explicit KPlotWidget( QWidget * parent = 0 );
/**
* Destructor.
ToolTip=A plot widget (KDE-Edu)
WhatsThis=A widget for easily making 2-dimensional plots
Group=Plot (KDE-Edu)
-ConstructorArgs=(parent, 0.0, 1.0, 0.0, 1.0)
[ExtDateEdit]
ToolTip=spinbox-based extended date editor (KDE-Edu)