- connect(page, SIGNAL(changed(bool)), this, SLOT(setButtonStates()));
- connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *)));
- page->load();
- setButtonStates();
+ // make it look more native under Mac OS X:
+ setWindowFlags(Qt::Sheet);
+
+ ui.pageTitle->setText(page->title());
+ setWindowTitle(tr("Configure %1").arg(page->title()));
+ setWindowIcon(icon::get("configure"));
+
+ // make the scrollarea behave sanely
+ ui.settingsFrame->setWidgetResizable(true);
+ ui.settingsFrame->setWidget(page);
+
+ updateGeometry();
+
+ connect(page, SIGNAL(changed(bool)), this, SLOT(setButtonStates()));
+ connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *)));
+ page->load();
+ setButtonStates();