From: Pino Toscano Date: Fri, 16 Feb 2007 18:41:08 +0000 (+0000) Subject: give it a sane background color and a default size so it's a bit better within design... X-Git-Tag: v3.80.3~49 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=b20b90686e101697ddf1cd4c49e3f8843075a242;p=libqmvoc.git give it a sane background color and a default size so it's a bit better within designer :) svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634265 --- diff --git a/kdeeduplot/kplotwidget.cpp b/kdeeduplot/kplotwidget.cpp index 013719e..e4a1e4d 100644 --- a/kdeeduplot/kplotwidget.cpp +++ b/kdeeduplot/kplotwidget.cpp @@ -44,7 +44,7 @@ class KPlotWidget::Private public: Private( KPlotWidget *qq ) : q( qq ), - cBackground( Qt::white ), cForeground( Qt::white ), cGrid( Qt::gray ), + cBackground( Qt::black ), cForeground( Qt::white ), cGrid( Qt::gray ), showGrid( false ), showObjectToolTips( true ), useAntialias( false ) { // create the axes and setting their default properties @@ -89,6 +89,7 @@ KPlotWidget::KPlotWidget( QWidget *parent, double x1, double x2, double y1, doub setDefaultPaddings(); setMinimumSize( 150, 150 ); + resize( minimumSizeHint() ); } KPlotWidget::KPlotWidget( QWidget * parent ) @@ -103,6 +104,7 @@ KPlotWidget::KPlotWidget( QWidget * parent ) setDefaultPaddings(); setMinimumSize( 150, 150 ); + resize( minimumSizeHint() ); } KPlotWidget::~KPlotWidget()