This class customizes QWizardPage for ChecklistGuideWizard.
More...
#include <ChecklistGuidePage.h>
This class customizes QWizardPage for ChecklistGuideWizard.
Definition at line 19 of file ChecklistGuidePage.h.
◆ ChecklistGuidePage()
ChecklistGuidePage::ChecklistGuidePage |
( |
const QString & |
title | ) |
|
Single constructor.
Definition at line 16 of file ChecklistGuidePage.cpp.
18 m_checklineLineEditContainer (
nullptr),
19 m_checklineLineEditLayout (
nullptr)
23 m_layout =
new QGridLayout;
24 m_layout->setColumnStretch (0, 0);
25 m_layout->setColumnStretch (1, 1);
◆ addHtml()
void ChecklistGuidePage::addHtml |
( |
const QString & |
html | ) |
|
Insert html for display.
Definition at line 29 of file ChecklistGuidePage.cpp.
33 QLabel *label =
new QLabel (html);
34 label->setWordWrap (
true);
36 m_layout->addWidget (label, m_row++, 0, 1, 2, Qt::AlignTop);
#define LOG4CPP_INFO_S(logger)
log4cpp::Category * mainCat
◆ addLabelAndRadioButton()
QRadioButton * ChecklistGuidePage::addLabelAndRadioButton |
( |
const QString & |
label, |
|
|
const QString & |
whatsThis |
|
) |
| |
Insert radio button and corresponding label.
Definition at line 39 of file ChecklistGuidePage.cpp.
44 QRadioButton *button =
new QRadioButton;
45 button->setWhatsThis (whatsThis);
46 m_layout->addWidget (button, m_row, 0, 1, 1, Qt::AlignTop);
48 QLabel *lbl =
new QLabel (label);
49 lbl->setWordWrap(
true);
50 m_layout->addWidget (lbl, m_row++, 1, 1, 1, Qt::AlignTop);
#define LOG4CPP_INFO_S(logger)
log4cpp::Category * mainCat
◆ addLineEdit()
void ChecklistGuidePage::addLineEdit |
( |
ChecklistLineEdit * |
edit, |
|
|
const QString & |
whatsThis |
|
) |
| |
Insert line edit.
Definition at line 55 of file ChecklistGuidePage.cpp.
62 if (m_checklineLineEditContainer ==
nullptr) {
67 m_checklineLineEditLayout =
new QVBoxLayout;
68 m_checklineLineEditLayout->setSpacing (0);
70 m_checklineLineEditContainer =
new QWidget;
71 m_checklineLineEditContainer->setLayout (m_checklineLineEditLayout);
72 m_layout->addWidget (m_checklineLineEditContainer, m_row++, 0, 1, 2, Qt::AlignTop);
75 edit->setWhatsThis (whatsThis);
76 m_checklineLineEditLayout->addWidget (edit);
79 QString style = QString (
"QLineEdit { " 80 "border-left : 1px solid gray; " 81 "border-right: 1px solid gray; " 82 "border-top: %1px solid gray; " 83 "border-bottom:1px solid gray; }")
84 .arg (isFirst ? 1 : 0);
85 edit->setStyleSheet (style);
#define LOG4CPP_INFO_S(logger)
log4cpp::Category * mainCat
The documentation for this class was generated from the following files: