myXMode( 0 ), myYMode( 0 ), mySecondY( false )
{
/* Plot 2d View */
- QGridLayout* aLayout = new QGridLayout( this );
+ QVBoxLayout* aLayout = new QVBoxLayout( this );
myPlot = new Plot2d_Plot2d( this );
- aLayout->addWidget( myPlot, 0, 0);
+ aLayout->addWidget( myPlot );
// createActions();
*/
}
+QSizePolicy Plot2d_Plot2d::sizePolicy() const
+{
+ return QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
+}
+
+QSize Plot2d_Plot2d::sizeHint() const
+{
+ return QwtPlot::minimumSizeHint();
+}
+
/*!
return minimum size for qwt plot
*/
QSize Plot2d_Plot2d::minimumSizeHint() const
{
- QSize aSize = QwtPlot::minimumSizeHint();
- return QSize(aSize.width()*3/4, aSize.height());
+ return QSize( 0, 0 );
+// QSize aSize = QwtPlot::minimumSizeHint();
+// return QSize(aSize.width()*3/4, aSize.height());
}
/*!
Checks if marker belongs to any enitity
return legend(); /* mpv: porting to the Qwt 4.2.0 */
#endif
}
- virtual QSize minimumSizeHint() const;
+ virtual QSize sizeHint() const;
+ virtual QSizePolicy sizePolicy() const;
+ virtual QSize minimumSizeHint() const;
protected:
bool existMarker( const QwtSymbol::Style typeMarker, const QColor& color, const Qt::PenStyle typeLine );