#include <KoAnchorSelectionWidget.h>
Definition at line 21 of file KoAnchorSelectionWidget.cpp.
◆ KoAnchorSelectionWidget()
| KoAnchorSelectionWidget::KoAnchorSelectionWidget |
( |
QWidget * | parent = 0 | ) |
|
|
explicit |
Definition at line 27 of file KoAnchorSelectionWidget.cpp.
28 : QWidget(parent),
30{
32
37 icons << QIcon();
42 icons << QIcon();
43
44 QGridLayout *gridLayout = new QGridLayout(this);
45 gridLayout->setSpacing(0);
46 gridLayout->setContentsMargins(0,0,0,0);
47
48 m_d->buttonGroup =
new QButtonGroup(
this);
49
51 QToolButton *
button =
new QToolButton(
this);
52 button->setCheckable(
true);
53
54 button->setAutoExclusive(
true);
56 button->setFocusPolicy(Qt::NoFocus);
57 button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
58
60 gridLayout->addWidget(
button, i / 3, i % 3, Qt::AlignCenter);
61 } else {
63 }
64
67 }
68
70}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
QString button(const QWheelEvent &ev)
QIcon loadIcon(const QString &name)
References button(), connect(), KisIconUtils::loadIcon(), m_d, KoFlake::NoAnchor, KoFlake::NumAnchorPositions, and slotGroupClicked().
◆ ~KoAnchorSelectionWidget()
| KoAnchorSelectionWidget::~KoAnchorSelectionWidget |
( |
| ) |
|
|
override |
◆ minimumSizeHint()
| QSize KoAnchorSelectionWidget::minimumSizeHint |
( |
| ) |
const |
|
override |
Definition at line 112 of file KoAnchorSelectionWidget.cpp.
113{
114 QFontMetrics metrics(this->font());
115 const int minHeight = 3 * (metrics.height() + 5);
116 return QSize(minHeight, minHeight);
117}
◆ setValue()
◆ sizeHint()
| QSize KoAnchorSelectionWidget::sizeHint |
( |
| ) |
const |
|
override |
◆ slotGroupClicked
| void KoAnchorSelectionWidget::slotGroupClicked |
( |
int | id | ) |
|
|
slot |
◆ value() [1/2]
◆ value() [2/2]
| QPointF KoAnchorSelectionWidget::value |
( |
const QRectF | rect, |
|
|
bool * | valid ) const |
Definition at line 81 of file KoAnchorSelectionWidget.cpp.
82{
85}
KRITAFLAKE_EXPORT QPointF anchorToPoint(AnchorPosition anchor, const QRectF rect, bool *valid=0)
References value().
◆ valueChanged
◆ buttonGroup
| QButtonGroup* KoAnchorSelectionWidget::buttonGroup |
◆ buttons
◆ m_d
| QScopedPointer<Private> KoAnchorSelectionWidget::m_d |
|
private |
The documentation for this class was generated from the following files: