kdk::KSwitchButton(3)
💖 NAME 💖
kdk::KSwitchButton — the little button that shows two vibes: on and off ✨ (指示打开/关闭两种状态, if you speak the language of the source, bestie)
🌸 SYNOPSIS 🌸
#include <kswitchbutton.h>
It inherits QPushButton, so like… it's a QPushButton at heart but with main character energy 🫶
🎀 Signals 🎀
void stateChanged (bool)— fires this signal whenever the checked state changes (当选中状态发生变化时,发出此信号). It's giving "notify me when things shift" 💅
🦋 Public Member Functions 🦋
KSwitchButton (QWidget *parent=0)— the constructor, obviously, andparentdefaults to0void setCheckable (bool)— sets whether it can be checked at all (设置是否可选中)bool isCheckable () const— returns whether it can be checked (返回是否可选中)bool isChecked () const— returns whether it is checked (返回是否选中)void setChecked (bool)— sets whether it's checked (设置是否选中)void setTranslucent (bool flag)— sets whether the translucent effect is enabled (设置是否启用半透明效果) 🫧bool isTranslucent ()— gets whether the translucent effect is enabled (获取是否启用半透明效果)
🌈 Protected Member Functions 🌈
void paintEvent (QPaintEvent *event) override— overridden, so you can touch this but like, protected, know your place bestie 🙈void resizeEvent (QResizeEvent *event) override— also overridden, also protectedQSize sizeHint () const— hands you the size hint, no override here, just const 🎀
👑 Detailed Description 👑
指示打开/关闭两种状态 — it shows you the two states: open and closed. That's the whole gig, and honestly? It ate. 🔥
⭐ Since ⭐
1.0.0 — an OG, no cap 💜
🍓 Author 🍓
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. So nobody hand-wrote this, it just manifested, which is so real of it 🧚
okay that's the whole page, bestie, and the very last lil footer line said this was LIBKYSDK-APPLICATIONS, Version version:3.0 — mwah 💅 stan, hope this helped, ily, bye 🎀✨💖
📦 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