66 Qt::WindowFlags
const flags)
71 QHBoxLayout *
const mainLayout =
new QHBoxLayout(
this);
82 auto *
const pageLayout =
new QVBoxLayout;
84 mainLayout->addLayout(pageLayout);
90 m_pageWidget->setSizePolicy(QSizePolicy::MinimumExpanding,
91 QSizePolicy::MinimumExpanding);
95 buttonBoxRuler->setGeometry(QRect(1, 1, 1, 3));
96 buttonBoxRuler->setFrameShape(QFrame::HLine);
97 buttonBoxRuler->setFrameShadow(QFrame::Sunken);
98 buttonBoxRuler->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
99 pageLayout->addWidget(buttonBoxRuler);
102 auto *
const bbox =
new QDialogButtonBox(
this);
103 BT_CONNECT(bbox->addButton(QDialogButtonBox::Ok),
104 &QPushButton::clicked,
105 [
this] { save(); close(); });
106 BT_CONNECT(bbox->addButton(QDialogButtonBox::Apply),
107 &QPushButton::clicked,
109 BT_CONNECT(bbox->addButton(QDialogButtonBox::Cancel),
110 &QPushButton::clicked,
113 pageLayout->addWidget(bbox);
bool m_ownsListWidgetItem
void setHeaderText(QString const &headerText)
QListWidgetItem *const m_listWidgetItem
Page(QIcon const &icon, QWidget *const parent=nullptr)
~Page() noexcept override