From: Pino Toscano Date: Sat, 17 Feb 2007 18:24:31 +0000 (+0000) Subject: sizeHint() (dummy, but working) X-Git-Tag: v3.80.3~22 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=9e1c2249e03468e7a0b9d33261af39e3e1cffca0;p=libqmvoc.git sizeHint() (dummy, but working) svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634594 --- diff --git a/kdeeduplot/kplotwidget.cpp b/kdeeduplot/kplotwidget.cpp index 7c7b264..f2d8f51 100644 --- a/kdeeduplot/kplotwidget.cpp +++ b/kdeeduplot/kplotwidget.cpp @@ -122,6 +122,11 @@ QSize KPlotWidget::minimumSizeHint() const return QSize( 150, 150 ); } +QSize KPlotWidget::sizeHint() const +{ + return size(); +} + void KPlotWidget::setLimits( double x1, double x2, double y1, double y2 ) { d->calcDataRectLimits( x1, x2, y1, y2 ); diff --git a/kdeeduplot/kplotwidget.h b/kdeeduplot/kplotwidget.h index 82c93c8..a2cdf43 100644 --- a/kdeeduplot/kplotwidget.h +++ b/kdeeduplot/kplotwidget.h @@ -111,6 +111,7 @@ public: *@return suggested size for widget */ virtual QSize minimumSizeHint() const; + virtual QSize sizeHint() const; /** * Set new data limits for the plot.