Diffstat (limited to 'noncore/graphics/drawpad/newpagedialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/newpagedialog.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/noncore/graphics/drawpad/newpagedialog.cpp b/noncore/graphics/drawpad/newpagedialog.cpp index 0592af2..ff31aad 100644 --- a/noncore/graphics/drawpad/newpagedialog.cpp +++ b/noncore/graphics/drawpad/newpagedialog.cpp | |||
@@ -19,2 +19,3 @@ | |||
19 | #include <qlayout.h> | 19 | #include <qlayout.h> |
20 | #include <qlineedit.h> | ||
20 | #include <qradiobutton.h> | 21 | #include <qradiobutton.h> |
@@ -31,3 +32,8 @@ NewPageDialog::NewPageDialog(uint width, uint height, const QColor& penColor, | |||
31 | 32 | ||
32 | QGroupBox* sizeGroupBox = new QGroupBox(0, Qt::Vertical, tr("Page Size"), this); | 33 | QGroupBox* generalGroupBox = new QGroupBox(0, Qt::Vertical, tr("General"), this); |
34 | |||
35 | QLabel* titleLabel = new QLabel(tr("Title:"), generalGroupBox); | ||
36 | m_pTitleLineEdit = new QLineEdit(generalGroupBox); | ||
37 | |||
38 | QGroupBox* sizeGroupBox = new QGroupBox(0, Qt::Vertical, tr("Size"), this); | ||
33 | 39 | ||
@@ -51,4 +57,6 @@ NewPageDialog::NewPageDialog(uint width, uint height, const QColor& penColor, | |||
51 | QVBoxLayout* mainLayout = new QVBoxLayout(this, 4, 4); | 57 | QVBoxLayout* mainLayout = new QVBoxLayout(this, 4, 4); |
58 | generalGroupBox->layout()->setSpacing(4); | ||
52 | sizeGroupBox->layout()->setSpacing(4); | 59 | sizeGroupBox->layout()->setSpacing(4); |
53 | m_pContentButtonGroup->layout()->setSpacing(4); | 60 | m_pContentButtonGroup->layout()->setSpacing(4); |
61 | QGridLayout* generalLayout = new QGridLayout(generalGroupBox->layout(), 1, 1); | ||
54 | QGridLayout* sizeLayout = new QGridLayout(sizeGroupBox->layout(), 2, 2); | 62 | QGridLayout* sizeLayout = new QGridLayout(sizeGroupBox->layout(), 2, 2); |
@@ -56,2 +64,5 @@ NewPageDialog::NewPageDialog(uint width, uint height, const QColor& penColor, | |||
56 | 64 | ||
65 | generalLayout->addWidget(titleLabel, 0, 0); | ||
66 | generalLayout->addWidget(m_pTitleLineEdit, 0, 1); | ||
67 | |||
57 | sizeLayout->addWidget(widthLabel, 0, 0); | 68 | sizeLayout->addWidget(widthLabel, 0, 0); |
@@ -67,2 +78,3 @@ NewPageDialog::NewPageDialog(uint width, uint height, const QColor& penColor, | |||
67 | 78 | ||
79 | mainLayout->addWidget(generalGroupBox); | ||
68 | mainLayout->addWidget(sizeGroupBox); | 80 | mainLayout->addWidget(sizeGroupBox); |