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

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

Protected Functions

virtual void apply()

Detailed Description

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

Member Function Documentation

[virtual protected] 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.