You can define the function as:
public slots:
void setValue
(QString value
="1.0");
public slots:
void setValue(QString value ="1.0");
To copy to clipboard, switch view to plain text mode
this will actually create two slots.
You can then connnect with the line
public slots:
connect(ui.pushButtonResetZoom, SIGNAL(pressed()), ui.doubleSpinBoxZoomFactor, SLOT(setValue()));
public slots:
connect(ui.pushButtonResetZoom, SIGNAL(pressed()), ui.doubleSpinBoxZoomFactor, SLOT(setValue()));
To copy to clipboard, switch view to plain text mode
Bookmarks