MailCommon::TagWidget Class
class MailCommon::TagWidgetThe TagWidget class. More...
| Header: | #include <MailCommon/TagWidget> |
| CMake: | find_package(KPim6MailCommon REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MailCommon) |
| Inherits: | QWidget |
Public Functions
| TagWidget(const QList<KActionCollection *> &actionCollections, QWidget *parent = nullptr) | |
| virtual | ~TagWidget() override |
| QCheckBox * | backgroundColorCheck() const |
| KColorCombo * | backgroundColorCombo() const |
| KIconButton * | iconButton() const |
| QCheckBox * | inToolBarCheck() const |
| KKeySequenceWidget * | keySequenceWidget() const |
| void | recordTagSettings(MailCommon::Tag::Ptr tag) |
| void | setTagBackgroundColor(const QColor &color) |
| void | setTagTextColor(const QColor &color) |
| void | setTagTextFormat(bool bold, bool italic) |
| QLineEdit * | tagNameLineEdit() const |
| QCheckBox * | textBoldCheck() const |
| QCheckBox * | textColorCheck() const |
| KColorCombo * | textColorCombo() const |
| QCheckBox * | textFontCheck() const |
| QCheckBox * | textItalicCheck() const |
Signals
| void | changed() |
| void | iconNameChanged(const QString &iconName) |
Detailed Description
Member Function Documentation
[explicit] TagWidget::TagWidget(const QList<KActionCollection *> &actionCollections, QWidget *parent = nullptr)
Constructs a tag widget for editing tag properties.
actionCollections List of action collections for keyboard shortcuts parent The parent widget
[override virtual noexcept] TagWidget::~TagWidget()
Destroys the tag widget.
QCheckBox *TagWidget::backgroundColorCheck() const
Returns the checkbox for enabling background color selection.
Returns A pointer to the background color checkbox
KColorCombo *TagWidget::backgroundColorCombo() const
Returns the color combo box for selecting background color.
Returns A pointer to the background color combo box
[signal] void TagWidget::changed()
Emitted when any tag setting has been changed.
KIconButton *TagWidget::iconButton() const
Returns the button widget for selecting the tag icon.
Returns A pointer to the icon button widget
[signal] void TagWidget::iconNameChanged(const QString &iconName)
Emitted when the tag's icon name has been changed.
iconName The new icon name
QCheckBox *TagWidget::inToolBarCheck() const
Returns the checkbox for showing the tag in the toolbar.
Returns A pointer to the toolbar checkbox
KKeySequenceWidget *TagWidget::keySequenceWidget() const
Returns the widget for selecting keyboard shortcut.
Returns A pointer to the key sequence widget
void TagWidget::recordTagSettings(MailCommon::Tag::Ptr tag)
Records the current tag settings to the given tag object.
tag The tag object to store settings in
void TagWidget::setTagBackgroundColor(const QColor &color)
Sets the background color for the tag preview.
color The color to set
void TagWidget::setTagTextColor(const QColor &color)
Sets the text color for the tag preview.
color The color to set
void TagWidget::setTagTextFormat(bool bold, bool italic)
Sets the text format (bold and italic) for the tag preview.
bold Whether the text should be bold italic Whether the text should be italic
QLineEdit *TagWidget::tagNameLineEdit() const
Returns the line edit widget for the tag name.
Returns A pointer to the tag name line edit widget
QCheckBox *TagWidget::textBoldCheck() const
Returns the checkbox for bold text formatting.
Returns A pointer to the text bold checkbox
QCheckBox *TagWidget::textColorCheck() const
Returns the checkbox for enabling text color selection.
Returns A pointer to the text color checkbox
KColorCombo *TagWidget::textColorCombo() const
Returns the color combo box for selecting text color.
Returns A pointer to the text color combo box
QCheckBox *TagWidget::textFontCheck() const
Returns the checkbox for enabling text font formatting.
Returns A pointer to the text font checkbox
QCheckBox *TagWidget::textItalicCheck() const
Returns the checkbox for italic text formatting.
Returns A pointer to the text italic checkbox