kdk::KBadge(3)
🎀 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 is999, and literally anything over999just gets displayed as'...'😭 so don't come for her about big numbersvoid setValueVisiable (bool flag)— sets whether the value is visible (设置值是否可见) — yes the spelling isVisiable, 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
- arch rolling: libkysdk-applications 3.0.1.2-1 · BSD-3-Clause AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND MIT AND MulanPSL-2.0
- ubuntu resolute: libkysdk-applications-dev 3.0.1.1-1 · LGPL-3.0-or-later
- ubuntu stonking: libkysdk-applications-dev 3.0.1.2-1build2 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms