mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-24 17:41:39 +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();
|
||||
}
|
||||
|
||||
void JKQTBasePlotter::setWidgetSize(QSize size)
|
||||
{
|
||||
setWidgetSize(size.width(), size.height());
|
||||
}
|
||||
|
||||
int JKQTBasePlotter::getWidth() {
|
||||
return widgetWidth;
|
||||
}
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user