MessageAlertModule(3)
💖 MessageAlertModule 💖
okay bestie, welcome to the MessageAlertModule(3) page 💅 this one comes straight outta the Library Functions Manual, and it's giving "widgets for showing messages" energy. Let's get into it, no cap.
✨ NAME ✨
MessageAlertModule — MessageAlertModule. That's it. That's the name. Iconic, honestly 🎀
🌸 SYNOPSIS 🌸
🧚 Classes
class kdk::KBadge—消息提醒气泡class kdk::KBallonTip—消息提示框,支持五种样式class kdk::KSecurityLevelBar—密码安全等级提示条,支持三个安全等级
🦋 Enumerations
enum kdk::TipType { Nothing, Normal, Info, Warning, Error, Variable }—支持五种样式enum kdk::SecurityLevel { Low, Medium, High }—分为三个安全等级
⭐ Functions
kdk::KBadge::KBadge (QWidget *parent)int kdk::KBadge::value ()—返回值void kdk::KBadge::setValue (int value)—设置值,最大显示数值为999,大于999显示'...'void kdk::KBadge::setValueVisiable (bool flag)—设置值是否可见bool kdk::KBadge::isValueVisiable () const—获取值是否可见QColor kdk::KBadge::color ()—获取背景色void kdk::KBadge::setColor (const QColor &color)—设置背景色int kdk::KBadge::fontSize ()—获取字体大小void kdk::KBadge::setFontSize (int size)—设置字体大小void kdk::KBadge::paintEvent (QPaintEvent *event)void kdk::KBadge::resizeEvent (QResizeEvent *event)kdk::KBallonTip::KBallonTip (QWidget *parent=nullptr)kdk::KBallonTip::KBallonTip (const QString &content, const TipType &type, QWidget *parent=nullptr)void kdk::KBallonTip::showInfo ()—显示时间完毕后消失void kdk::KBallonTip::setTipType (const TipType &type)—设置类型TipType kdk::KBallonTip::tipType ()—返回类型void kdk::KBallonTip::setText (const QString &text)—设置文本内容QString kdk::KBallonTip::text ()—textvoid kdk::KBallonTip::setContentsMargins (int left, int top, int right, int bottom)—设置内容边距void kdk::KBallonTip::setContentsMargins (const QMargins &margins)—设置内容边距void kdk::KBallonTip::setTipTime (int my_time)—设置持续时间QHBoxLayout * kdk::KBallonTip::hBoxLayout ()—获取kballontip的水平布局void kdk::KBallonTip::setVariableIcon (QIcon icon)—设置可变类型的iconQPixmap kdk::KBallonTip::variableIcon ()—获取可变类型的iconvoid kdk::KBallonTip::paintEvent (QPaintEvent *event) overridekdk::KSecurityLevelBar::KSecurityLevelBar (QWidget *parent=nullptr)void kdk::KSecurityLevelBar::setSecurityLevel (SecurityLevel level)—设置安全等级SecurityLevel kdk::KSecurityLevelBar::securityLevel ()—获取安全等级void kdk::KSecurityLevelBar::paintEvent (QPaintEvent *event)
🫶 Detailed Description 🫶
okay so. this section exists. that's all it does. there is literally nothing under it in the source, bestie, it's giving ghost town 💀 no notes, no details, we move.
💜 Enumeration Type Documentation 💜
enum kdk::SecurityLevel
分为三个安全等级
- Since —
1.0.0
enum kdk::TipType
支持五种样式
- Since —
1.0.0
🔥 Function Documentation 🔥
QColor kdk::KBadge::color ()
获取背景色
- Returns
int kdk::KBadge::fontSize ()
获取字体大小
- Returns
QHBoxLayout * kdk::KBallonTip::hBoxLayout ()
获取kballontip的水平布局
- Returns
- Since —
2.4.1.0
SecurityLevel kdk::KSecurityLevelBar::securityLevel ()
获取安全等级
- Returns
void kdk::KBadge::setColor (const QColor & color)
设置背景色
- Parameters
color
void kdk::KBallonTip::setContentsMargins (const QMargins & margins)
设置内容边距
- Parameters
margins
void kdk::KBallonTip::setContentsMargins (int left, int top, int right, int bottom)
设置内容边距
- Parameters
lefttoprightbottom
void kdk::KBadge::setFontSize (int size)
设置字体大小
- Parameters
size
void kdk::KSecurityLevelBar::setSecurityLevel (SecurityLevel level)
设置安全等级
- Parameters
level
void kdk::KBallonTip::setText (const QString & text)
设置文本内容
- Parameters
text
void kdk::KBallonTip::setTipTime (int my_time)
设置持续时间
- Since —
1.2.0
void kdk::KBallonTip::setTipType (const TipType & type)
设置类型
- Parameters
type
void kdk::KBadge::setValue (int value)
设置值,最大显示数值为999,大于999显示'...'
- Parameters
value
void kdk::KBadge::setValueVisiable (bool flag)
设置值是否可见
- Parameters
flag
void kdk::KBallonTip::setVariableIcon (QIcon icon)
设置可变类型的icon
- Parameters
icon
- Since —
2.5.2.0
void kdk::KBallonTip::showInfo ()
显示时间完毕后消失
- Since —
1.2.0
QString kdk::KBallonTip::text ()
text
- Returns
TipType kdk::KBallonTip::tipType ()
返回类型
- Returns
int kdk::KBadge::value ()
返回值
- Returns
QPixmap kdk::KBallonTip::variableIcon ()
获取可变类型的icon
- Returns
- Since —
2.5.2.0
👑 Author 👑
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.
and that's the whole page, bestie!! 🎀✨ this one shipped under LIBKYSDK-APPLICATIONS, Version version:3.0 — go forth and alert your messages, you absolute icon 💅🫶
📦 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