-void SettingsPageDlg::loadDefaults() {
- if(!currentPage()) return;
- int ret = QMessageBox::question(this, tr("Restore Defaults"), tr("Do you like to restore the default values for this page?"),
- QMessageBox::RestoreDefaults|QMessageBox::Cancel, QMessageBox::Cancel);
- if(ret == QMessageBox::RestoreDefaults) {
- currentPage()->defaults();
- }
+
+void SettingsPageDlg::loadDefaults()
+{
+ if (!currentPage()) return;
+ int ret = QMessageBox::question(this, tr("Restore Defaults"), tr("Do you like to restore the default values for this page?"),
+ QMessageBox::RestoreDefaults|QMessageBox::Cancel, QMessageBox::Cancel);
+ if (ret == QMessageBox::RestoreDefaults) {
+ currentPage()->defaults();
+ }