kdk::KToolButton(3)

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

💖 NAME 💖

kdk::KToolButton — bestie, it's a quick-access button ✨ and lowkey it does not support showing text yet (we're waiting on that feature, iykyk).

Also hi, this whole thing lives in the Library Functions Manual (section 3, the C++ / library-functions girlies), so that's the vibe check for where you found it. 🦋


🌸 SYNOPSIS 🌸

#include <ktoolbutton.h>

Inherits QToolButton. So yeah, it's giving QToolButton but with extra main character energy. 👑

📣 Signals 📣

  • void checkedChanged(bool checked) — the one and only signal, and no, the docs didn't give it a description, so we're just acknowledging its existence. Respectfully. 💅

🫶 Public Member Functions 🫶

  • KToolButton(QWidget *parent) — the constructor, aka where it all begins, your origin story. 🌱
  • KToolButtonType type() — hands you back the type. 返回类型 ✨
  • void setType(KToolButtonType type) — sets the type. 设置类型 ✨
  • void setIcon(const QIcon &icon) — sets the Icon. 设置Icon 🎀
  • void setLoading(bool flag) — flips on the "currently loading" state. ⚠️ Heads up tho: only toolbuttons without an arrow support this state. 设置正在加载状态,仅不带箭头的toolbutton支持该状态
  • bool isLoading() — tells you whether it's loading rn. 返回是否正在加载 ⏳
  • QIcon icon() — grabs you the Icon. 获取Icon 🖼️
  • void setArrow(bool flag) — decides whether the lil down arrow shows up. Default is: no arrow, she's not showing it. 设置是否显示向下箭头,默认不显示 ⬇️
  • bool hasArrow() const — returns whether the arrow is showing. 返回是否显示箭头
  • void setIconColor(bool flag, QColor color) — sets the icon color. 设置图标颜色 🎨
  • void setBorderRadius(int bottomLeft, int topLeft, int topRight, int bottomRight) — sets the border radius, corner by corner by corner by corner. The doc's own label for this one is literally just setBorderRadius, no notes, we love a minimal queen. 🫶
  • void setBackgroundColorEnabled(bool flag) — the doc label is just setBackgroundColorEnabled, and that's the whole story, periodt. 🌈
  • bool backgroundColorEnabled() — doc label: backgroundColorEnabled. Short. Sweet. Iconic. 💜

🧚 Protected Member Functions 🧚

  • bool eventFilter(QObject *watched, QEvent *event)
  • QSize sizeHint() const
  • void paintEvent(QPaintEvent *event)

No descriptions given for these three, so we're just listing them and moving on with our lives. 🙈


🌟 Detailed Description 🌟

提供了一个快速访问按钮,暂不支持显示文本 — it's a quick-access button, and bestie, it does not support displaying text yet. That's the whole detailed description. It said what it said. 💀


👑 Author 👑

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not me hand-writing lore that a robot made, but here we are. 🤖✨


And that's a wrap, babe 🎀 this lil page came to you courtesy of LIBKYSDK-APPLICATIONS, Version version:3.0 — slay, go build something cute, and don't forget to set your border radius. 💅🦋

📦 where this page comes from