add some doc
This commit is contained in:
parent
9a383e8743
commit
0612a6feef
|
@ -119,11 +119,7 @@ void SettingsDialog::save()
|
|||
|
||||
void SettingsDialog::setVisible(bool b)
|
||||
{
|
||||
if (b) {
|
||||
load();
|
||||
} else {
|
||||
save();
|
||||
}
|
||||
load();
|
||||
QWidget::setVisible(b);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
class QAbstractButton;
|
||||
|
||||
|
||||
namespace Snore
|
||||
{
|
||||
class PluginSettingsWidget;
|
||||
|
@ -36,20 +37,36 @@ class SettingsDialog;
|
|||
|
||||
namespace Snore
|
||||
{
|
||||
|
||||
/**
|
||||
* A QWidget providing acces to the settings of the plugins.
|
||||
* If your application does not offer a ui you might call snore-settings insetad.
|
||||
*/
|
||||
|
||||
class SNORE_EXPORT SettingsDialog : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SettingsDialog(QWidget *parent = 0);
|
||||
explicit SettingsDialog(QWidget *parent = nullptr);
|
||||
~SettingsDialog();
|
||||
|
||||
//TODO: move to private header
|
||||
/**
|
||||
* \todo move to private header or cleanup
|
||||
*/
|
||||
void initTabs();
|
||||
|
||||
public Q_SLOTS:
|
||||
void setVisible(bool b) override;
|
||||
|
||||
/**
|
||||
* Save the settings.
|
||||
*/
|
||||
void accept();
|
||||
|
||||
/**
|
||||
* Reset the settings.
|
||||
*/
|
||||
void reset();
|
||||
|
||||
private Q_SLOTS:
|
||||
|
|
Loading…
Reference in New Issue