16#ifndef QGSALIGNMENTCOMBOBOX_H
17#define QGSALIGNMENTCOMBOBOX_H
115 Qt::Alignment mAlignments = Qt::AlignLeft | Qt::AlignHCenter | Qt::AlignRight;
116 bool mBlockChanged =
false;
TextVerticalAlignment
Text vertical alignment.
TextHorizontalAlignment
Text horizontal alignment.
QgsAlignmentComboBox(QWidget *parent=nullptr)
Constructor for QgsAlignmentComboBox, with the specified parent widget.
void changed()
Emitted when the alignment is changed.
Qgis::TextHorizontalAlignment horizontalAlignment() const
Returns the current alignment choice as a QGIS horizontal text alignment enum.
void setCurrentAlignment(Qt::Alignment alignment)
Sets the current alignment choice.
void customizeAlignmentDisplay(Qt::Alignment alignment, const QString &text=QString(), const QIcon &icon=QIcon())
Sets the text and icon to use for a particular alignment option, replacing the default text or icon.
Qgis::TextVerticalAlignment verticalAlignment() const
Returns the current alignment choice as a QGIS horizontal text alignment enum.
Qt::Alignment currentAlignment() const
Returns the current alignment choice.
void setAvailableAlignments(Qt::Alignment alignments)
Sets the available alignment choices shown in the combo box.