kdk::KColorButton(3)
💖 kdk::KColorButton 💖
okay so bestie, welcome to the manual page for kdk::KColorButton, straight out of the Library Functions Manual. she is, and I cannot stress this enough, a button whose whole entire thing is setting colors and styles so she fits into literally any scenario you drop her into. main character energy fr fr. 🌈✨
🎀 NAME 🎀
kdk::KColorButton — provides a button for setting colors and styles, made to work in all kinds of different scenarios. 💅
✨ SYNOPSIS ✨
#include <kcolorbutton.h>
Inherits QPushButton. yes bestie she IS a QPushButton underneath, she just got a glow-up. 👑
🦋 Public Types 🦋
enum ButtonType { Circle, RoundedRect, CheckedRect }—KColorButtonserves up three different styles. pick your fighter, no cap.
💖 Public Member Functions 💖
KColorButton (QWidget *parent=nullptr)— the constructor. she's here, she's born, andparentdefaults tonullptrso she can absolutely be a free agent. 🫶void setBackgroundColor (QColor color)— sets thecolorButtonbackground color.QColor backgroundColor ()— returns thecolorButtonbackground color.void setBorderRadius (int radious)— sets the corner radius (and heads up, this only does anything for theRoundedRectandCheckedRecttypes). yes, the parameter is literally spelledradiousin the docs. we don't fix it, we respect it. 🙈int borderRadius ()— returns the corner radius.void setButtonType (KColorButton::ButtonType type)— sets thecolorButtontype.KColorButton::ButtonType buttonType ()— returns thecolorButtontype.
🌸 Protected Member Functions 🌸
void paintEvent (QPaintEvent *) overrideQSize sizeHint () const override
🌟 Detailed Description 🌟
Provides a button for setting colors and styles, so it fits all sorts of different scenarios. that's the whole vibe. that's her whole deal. 💜
Since 2.0.2.1 — she's been serving since then, and she has not stopped. ⭐
💫 Member Function Documentation 💫
QColor kdk::KColorButton::backgroundColor ()
Returns the colorButton background color.
Returns — the original literally just says Returns and then stops. iconic minimalism honestly. 😭
int kdk::KColorButton::borderRadius ()
Returns the corner radius.
Returns — again, it just says Returns. we love a mysterious queen. 🎀
KColorButton::ButtonType kdk::KColorButton::buttonType ()
Returns the colorButton type.
Returns — blank. as the docs intended. 🦋
void kdk::KColorButton::setBackgroundColor (QColor color)
Sets the colorButton background color.
Parameters
- color
void kdk::KColorButton::setBorderRadius (int radious)
Sets the corner radius (only takes effect for the RoundedRect and CheckedRect types).
Parameters
- radious
void kdk::KColorButton::setButtonType (KColorButton::ButtonType type)
Sets the colorButton type.
Parameters
- type
👑 Author 👑
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. the docs wrote themselves, we're just hyping them up. 💅
okay and that's the whole page bestie, go forth and color some buttons, slay, periodt. 🔥
kisses from LIBKYSDK-APPLICATIONS, Version version:3.0 — and remember the page you just read is kdk::KColorButton(3). 💖🌈🫶
📦 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