Core::IOptionsPageWidget Class

class Core::IOptionsPageWidget

The IOptionsPageWidget class is used to standardize the interaction between an IOptionsPage and its widget. More...

Header: #include <coreplugin/dialogs/ioptionspage.h>
Inherits: QWidget

Public Functions

virtual void apply()
void setOnApply(const std::function<void ()> &func)

Detailed Description

Use setOnApply() and setOnFinish() to set functions that are called when the IOptionsPage is applied and finished respectively.

Member Function Documentation

[virtual] void IOptionsPageWidget::apply()

Calls the apply function, if set.

See also setOnApply.

void IOptionsPageWidget::setOnApply(const std::function<void ()> &func)

Sets the function that is called by default on apply to func.