kdk::KTag(3)

📦 version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

💖 kdk::KTag 💖

okay bestie, gather round, because this one is a whole library functions manual moment and you're about to be so good at it. this is kdk::KTag(3), fresh out of the Library Functions Manual. no cap. 🎀


✨ NAME ✨

kdk::KTag — she gives you four whole styles of tag, and she responds to system theme color changes like the main character she is. 💅


🌸 SYNOPSIS 🌸

#include <ktag.h>

Inherits QPushButton. yes, she's a button girlie at heart. 🫶

🦋 Public Member Functions 🦋

  • KTag (QWidget *parent=nullptr) — the constructor. makes a KTag, optionally with a parent widget.
  • void setClosable (bool) — sets whether the close button is visible. 设置关闭按钮是否可见 💀
  • bool closable () — hands you back whether the close button is visible, as a bool.
  • void setText (const QString &) — sets the text. literally just that.
  • QString text () — gets the current text. so you can read what you wrote. iconic.
  • void setTagStyle (TagStyle) — sets the tag style. all four of them are on the menu.
  • TagStyle tagStyle () — gets the current tag style. returns a TagStyle, obviously.
  • void setBackgroundColor (QColor color) — sets the background color.
  • void setTranslucent (bool flag) — sets the translucent-ness.
  • bool translucent () — gets whether translucent is enabled. 🍓

🧚 Protected Member Functions 🧚

these are the backstage ones, the crew behind the main character energy:

  • void paintEvent (QPaintEvent *event)
  • QSize sizeHint () const override

🌈 Detailed Description 🌈

提供四种样式的标签,响应系统主题色变化 — she provides four styles of tags, and she responds to system theme color changes. like, the system flips its theme and she's already caught up. lowkey obsessed with her. ✨

Since 1.0.0


💜 Member Function Documentation 💜

bool kdk::KTag::closable ()

returns whether the close button is visible. 返回关闭按钮是否可见

Returns bool

void kdk::KTag::setBackgroundColor (QColor color)

sets the background color. 设置背景颜色

Parameters flag

Since 2.4.1.0

void kdk::KTag::setTranslucent (bool flag)

sets translucent. 设置半透明

Parameters flag

Since 2.4.1.0

TagStyle kdk::KTag::tagStyle ()

gets the current tag style. 获取当前tag样式

Returns TagStyle

QString kdk::KTag::text ()

gets the current text. 获取当前文本

Returns QString

bool kdk::KTag::translucent ()

gets whether translucent is enabled. 获取是否启用半透明

Returns bool

Since 2.4.1.0


👑 Author 👑

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. so like, Doxygen wrote it, not a person. we love an auto-generated queen. 🙈


that's the whole page bestie, no crumbs left 💅 and just so we're clear, this came from LIBKYSDK-APPLICATIONS, Version version:3.0, and it's filed under kdk::KTag(3) — periodt. 🎀💖✨

📦 where this page comes from