NEW: added variant of JKQTBasePlotter::setWidgetSize() which accepts QSize

This commit is contained in:
jkriege2 2023-07-21 22:58:01 +02:00
parent d44316c8e3
commit 3a789250be
2 changed files with 12 additions and 0 deletions

View File

@ -506,6 +506,11 @@ void JKQTBasePlotter::setWidgetSize(int wid, int heigh) {
redrawPlot();
}
void JKQTBasePlotter::setWidgetSize(QSize size)
{
setWidgetSize(size.width(), size.height());
}
int JKQTBasePlotter::getWidth() {
return widgetWidth;
}

View File

@ -1535,6 +1535,13 @@ class JKQTPLOTTER_LIB_EXPORT JKQTBasePlotter: public QObject {
* \see \ref jkqtplotter_base_plotsize
*/
void setWidgetSize(int width, int height);
/** \brief resize the plot
*
* \image html plot_widget_orientation.png
*
* \see \ref jkqtplotter_base_plotsize
*/
void setWidgetSize(QSize size);
/** \brief sets the width of the plot widget
*