Author: aschnell Date: Wed Jan 14 15:18:38 2009 New Revision: 54619 URL: http://svn.opensuse.org/viewcvs/yast?rev=54619&view=rev Log: - backup Modified: branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h Modified: branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc?rev=54619&r1=54618&r2=54619&view=diff ============================================================================== --- branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc (original) +++ branches/tmp/aschnell/graph/qt-graph/src/YQGraph.cc Wed Jan 14 15:18:38 2009 @@ -60,4 +60,25 @@ } +int +YQGraph::preferredWidth() +{ + return std::max( 640, sizeHint().width() ); +} + + +int +YQGraph::preferredHeight() +{ + return std::max( 480, sizeHint().height() ); +} + + +void +YQGraph::setSize( int newWidth, int newHeight ) +{ + resize( newWidth, newHeight ); +} + + #include "YQGraph.moc" Modified: branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h?rev=54619&r1=54618&r2=54619&view=diff ============================================================================== --- branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h (original) +++ branches/tmp/aschnell/graph/qt-graph/src/YQGraph.h Wed Jan 14 15:18:38 2009 @@ -41,6 +41,27 @@ YQGraph( YWidget * parent ); + /** + * Preferred width of the widget. + * + * Reimplemented from YWidget. + **/ + virtual int preferredWidth(); + + /** + * Preferred height of the widget. + * + * Reimplemented from YWidget. + **/ + virtual int preferredHeight(); + + /** + * Set the new size of the widget. + * + * Reimplemented from YWidget. + **/ + virtual void setSize( int newWidth, int newHeight ); + }; #endif // YQGraph_h -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org