diff --git a/src/wrtembed/KReportDetailGroupSectionDialog.h b/src/wrtembed/KReportDetailGroupSectionDialog.h --- a/src/wrtembed/KReportDetailGroupSectionDialog.h +++ b/src/wrtembed/KReportDetailGroupSectionDialog.h @@ -20,6 +20,7 @@ #define DETAILGROUPSECTIONDIALOG_H #include +#include #include @@ -30,6 +31,7 @@ public: explicit KReportDetailGroupSectionDialog(QWidget* parent = nullptr); ~KReportDetailGroupSectionDialog() override; + }; #endif // DETAILGROUPSECTIONDIALOG_H diff --git a/src/wrtembed/KReportDetailGroupSectionDialog.cpp b/src/wrtembed/KReportDetailGroupSectionDialog.cpp --- a/src/wrtembed/KReportDetailGroupSectionDialog.cpp +++ b/src/wrtembed/KReportDetailGroupSectionDialog.cpp @@ -27,12 +27,12 @@ KReportDetailGroupSectionDialog::KReportDetailGroupSectionDialog(QWidget* parent) : QDialog(parent) { - QWidget *widget = new QWidget(this); - setupUi(widget); - //! @todo setMainWidget(widget); + setupUi(this); - //! @todo setButtons(Ok | Cancel); - //! @todo setCaption(tr("Group Section Editor")); + connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); + connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); + + setWindowTitle(tr("Group Section Editor")); } /* diff --git a/src/wrtembed/KReportDetailGroupSectionDialog.ui b/src/wrtembed/KReportDetailGroupSectionDialog.ui --- a/src/wrtembed/KReportDetailGroupSectionDialog.ui +++ b/src/wrtembed/KReportDetailGroupSectionDialog.ui @@ -19,8 +19,25 @@ * License along with this library. If not, see http://www.gnu.org/licenses/. DetailGroupSectionDialog + + + 0 + 0 + 269 + 115 + + - + + 0 + + + 0 + + + 0 + + 0 @@ -105,6 +122,13 @@ + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + @@ -114,12 +138,32 @@ toggled(bool) breakAfterFooter setEnabled(bool) + + + 20 + 20 + + + 20 + 20 + + cbFoot toggled(bool) breakAfterFooterLabel setEnabled(bool) + + + 20 + 20 + + + 20 + 20 + +