kdk::KBadge(3)

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

🎀 NAME 🎀

kdk::KBadge — the 消息提醒气泡, aka your little unread-count bubble bestie that sits on your widget and screams "hey look at me 💅" whenever there's something new.


✨ SYNOPSIS ✨

#include <kbadge.h>

Inherits QWidget. Yes bestie, it's a widget. It's always been a widget. 👑

🌸 Public Member Functions 🌸

  • KBadge (QWidget *parent) — the constructor, she gets built and takes a parent widget with her 🫶
  • int value () — hands you back the value (返回值, the number, the tea ☕)
  • void setValue (int value) — sets the value! but heads up, the biggest number she'll actually show is 999, and literally anything over 999 just gets displayed as '...' 😭 so don't come for her about big numbers
  • void setValueVisiable (bool flag) — sets whether the value is visible (设置值是否可见) — yes the spelling is Visiable, that's canon, we don't touch it 🙈
  • bool isValueVisiable () const — tells you whether the value is currently visible or not 👀
  • QColor color () — gets the background colour 🎨
  • void setColor (const QColor &color) — sets the background colour, glow-up time ✨
  • int fontSize () — gets the font size 🔤
  • void setFontSize (int size) — sets the font size, make it cute or make it loud 📏

🦋 Protected Member Functions 🦋

  • void paintEvent (QPaintEvent *event) — the painting moment, protected, so only the family gets to call her 🎀
  • void resizeEvent (QResizeEvent *event) — the resizing moment, also protected, she's adjusting her fit 💅

💖 DESCRIPTION 💖

消息提醒气泡. It's a message reminder bubble. She exists to hold a little number and a colour and a font size and look adorable doing it. That's the whole vibe. Periodt. 🔥

⭐ Detailed Description ⭐

消息提醒气泡 — again, the notification bubble, the main character of this whole page 🌈

🌟 Since

1.0.0 — she's been here since the beginning, an icon, a legend 🫶

🎀 Examples

testbadge/widget.h — go peek at it, it's literally right there, iykyk 💜


👑 Author 👑

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human, not a girlboss, just a doc generator doing its thing 🤖💅


okay that's the whole page bestie, no cap, nothing skipped 💖

this was brought to you by LIBKYSDK-APPLICATIONS, Version version:3.0 — stay slay, read your man pages, drink water 🌸✨

📦 where this page comes from