From 9e1c2249e03468e7a0b9d33261af39e3e1cffca0 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 17 Feb 2007 18:24:31 +0000 Subject: [PATCH] sizeHint() (dummy, but working) svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=634594 --- kdeeduplot/kplotwidget.cpp | 5 +++++ kdeeduplot/kplotwidget.h | 1 + 2 files changed, 6 insertions(+) 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. -- 2.47.3