blob: 90192568ec9a74554600f3b7a9675e9ea6f82551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/src/core-impl/podcasts/sql/PodcastSettingsDialog.cpp b/src/core-impl/podcasts/sql/PodcastSettingsDialog.cpp
index 2aaee7ac16da683e492a5789a8647b3301643d68..18f32f5276ad6c2d42110d26c3aa492a69a670a9 100644
--- a/src/core-impl/podcasts/sql/PodcastSettingsDialog.cpp
+++ b/src/core-impl/podcasts/sql/PodcastSettingsDialog.cpp
@@ -39,16 +39,13 @@ PodcastSettingsDialog::PodcastSettingsDialog( const Podcasts::SqlPodcastChannelP
setWindowTitle( i18nc("change options", "Configure %1", m_channel->title() ) );
setModal( true );
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply);
- QVBoxLayout *mainLayout = new QVBoxLayout(this);
- mainLayout->addWidget(main);
+ setButtonBox(buttonBox);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
- connect(buttonBox, &QDialogButtonBox::accepted, this, &PodcastSettingsDialog::accept);
- connect(buttonBox, &QDialogButtonBox::rejected, this, &PodcastSettingsDialog::reject);
okButton->setDefault(true);
- mainLayout->addWidget(buttonBox);
+ addPage(main, i18nc("@title", "Settings") );
init();
}
|