Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/libpaintop/kis_pressure_mirror_option_widget.cpp
Context not available. | |||||
23 | #include <QCheckBox> | 23 | #include <QCheckBox> | ||
---|---|---|---|---|---|
24 | #include <QHBoxLayout> | 24 | #include <QHBoxLayout> | ||
25 | #include <QVBoxLayout> | 25 | #include <QVBoxLayout> | ||
26 | #include <QLabel> | ||||
26 | 27 | | |||
27 | #include <klocalizedstring.h> | 28 | #include <klocalizedstring.h> | ||
28 | 29 | | |||
Context not available. | |||||
34 | setObjectName("KisPressureMirrorOptionWidget"); | 35 | setObjectName("KisPressureMirrorOptionWidget"); | ||
35 | 36 | | |||
36 | QWidget* w = new QWidget; | 37 | QWidget* w = new QWidget; | ||
37 | m_horizontalMirror = new QCheckBox(i18n("Horizontally")); | 38 | m_horizontalMirror = new QCheckBox(i18n("Horizontal")); | ||
38 | m_horizontalMirror->setChecked(false); | 39 | m_horizontalMirror->setChecked(false); | ||
39 | m_verticalMirror = new QCheckBox(i18n("Vertically")); | 40 | m_verticalMirror = new QCheckBox(i18n("Vertical")); | ||
40 | m_verticalMirror->setChecked(false); | 41 | m_verticalMirror->setChecked(false); | ||
41 | 42 | | |||
42 | connect(m_horizontalMirror, SIGNAL(toggled(bool)), SLOT(horizontalMirrorChanged(bool))); | 43 | connect(m_horizontalMirror, SIGNAL(toggled(bool)), SLOT(horizontalMirrorChanged(bool))); | ||
43 | connect(m_verticalMirror, SIGNAL(toggled(bool)), SLOT(verticalMirrorChanged(bool))); | 44 | connect(m_verticalMirror, SIGNAL(toggled(bool)), SLOT(verticalMirrorChanged(bool))); | ||
44 | 45 | | |||
46 | QLabel* directionLabel = new QLabel(i18n("Direction: ")); | ||||
47 | | ||||
45 | QHBoxLayout* hl = new QHBoxLayout; | 48 | QHBoxLayout* hl = new QHBoxLayout; | ||
49 | hl->setContentsMargins(9,9,9,0); // no bottom spacing | ||||
50 | | ||||
51 | hl->addWidget(directionLabel); | ||||
46 | hl->addWidget(m_horizontalMirror); | 52 | hl->addWidget(m_horizontalMirror); | ||
47 | hl->addWidget(m_verticalMirror); | 53 | hl->addWidget(m_verticalMirror); | ||
54 | hl->addStretch(1); | ||||
55 | | ||||
56 | | ||||
48 | 57 | | |||
49 | QVBoxLayout* vl = new QVBoxLayout; | 58 | QVBoxLayout* vl = new QVBoxLayout; | ||
50 | vl->setMargin(0); | 59 | vl->setMargin(0); | ||
Context not available. |