mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-01-12 17:00:32 +08:00
NEW: added variant of JKQTBasePlotter::setWidgetSize() which accepts QSize
This commit is contained in:
parent
d44316c8e3
commit
3a789250be
@ -506,6 +506,11 @@ void JKQTBasePlotter::setWidgetSize(int wid, int heigh) {
|
|||||||
redrawPlot();
|
redrawPlot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JKQTBasePlotter::setWidgetSize(QSize size)
|
||||||
|
{
|
||||||
|
setWidgetSize(size.width(), size.height());
|
||||||
|
}
|
||||||
|
|
||||||
int JKQTBasePlotter::getWidth() {
|
int JKQTBasePlotter::getWidth() {
|
||||||
return widgetWidth;
|
return widgetWidth;
|
||||||
}
|
}
|
||||||
|
@ -1535,6 +1535,13 @@ class JKQTPLOTTER_LIB_EXPORT JKQTBasePlotter: public QObject {
|
|||||||
* \see \ref jkqtplotter_base_plotsize
|
* \see \ref jkqtplotter_base_plotsize
|
||||||
*/
|
*/
|
||||||
void setWidgetSize(int width, int height);
|
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
|
/** \brief sets the width of the plot widget
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user