kdk::KDialog(3)

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

💅 kdk::KDialog — Library Functions Manual 💅

okay bestie, pull up a chair, because we're reading the kdk::KDialog(3) page together and honestly? she's kind of a big deal. she's a dialog. she's the dialog. the main character of dialogs, fr fr.


✨ NAME ✨

kdk::KDialog — 继承自 QDialog,支持响应式主题背景切换和图标主题切换、标题颜色响应窗口激活状态

(translation for the girlies: she inherits from QDialog and she does responsive theme background switching, icon theme switching, and her title color reacts to whether the window is active or not. she's responsive. she's adaptive. she's aware. 🦋)


🌸 SYNOPSIS 🌸

#include <kdialog.h>

Inherits QDialog, and ThemeController.

Inherited by kdk::KAboutDialog, kdk::KInputDialog, kdk::KMessageBox, kdk::KProgressDialog, kdk::KSecurityQuestionDialog, and kdk::KUninstallDialog.

not her being a whole ancestor to SIX other dialog classes 😭 that's mother behavior, no cap.

👑 Public Member Functions

  • KDialog(QWidget *parent=nullptr) — the constructor, the origin story, the birth of an icon 💖
  • void setWindowIcon(const QIcon &icon) — 设置对话框图标 (sets the dialog icon)
  • void setWindowIcon(const QString &iconName) — 设置对话框图标 (sets the dialog icon — yeah she takes a name too, she's flexible like that)
  • void setWindowTitle(const QString &) — 设置对话框标题名称 (sets the dialog window title name)
  • QPushButton *maximumButton() — 获取最大化按钮 (gets the maximize button)
  • QPushButton *minimumButton() — 获取最小化按钮 (gets the minimize button)
  • QPushButton *closeButton() — 获取关闭按钮 (gets the close button)
  • KMenuButton *menuButton() — 获取下拉菜单按钮 (gets the dropdown menu button)
  • QWidget *mainWidget() — 获取主内容区Widget (gets the main content area Widget)
  • KWindowButtonBar *windowButtonBar() — windowButtonBar (returns the window button bar, that's it, that's the description, she said what she said 💅)
  • KIconBar *iconBar() — iconBar (returns the icon bar. short. sweet. iconic.)

🧚 Protected Member Functions

these ones are for the inside circle only, the subclass girlies, iykyk:

  • bool eventFilter(QObject *target, QEvent *event) override — she overrides this one, she's got opinions about events
  • void changeTheme() — swaps the theme
  • void changeIconStyle() — swaps the icon style
  • QBoxLayout *mainLayout() — hands you the main layout

🌈 Detailed Description 🌈

继承自 QDialog,支持响应式主题背景切换和图标主题切换、标题颜色响应窗口激活状态

so like, picture this: a QDialog that actually keeps up. theme background switching? responsive. icon theme switching? also responsive. and the title color? it literally changes based on whether the window is active. she's got emotional intelligence, bestie. that's the whole vibe. 🫶

Since 1.0.0

she's been serving since 1.0.0. veteran behavior. respect the elders. ✨

🎀 Author 🎀

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.

not me finding out she was generated by a machine and not born 😭 still slayed though. Doxygen ate and left no crumbs.

and that's the whole page, bestie!! no notes, only vibes. she ships with LIBKYSDK-APPLICATIONS, version version:3.0, and this little manual page is dated the same. mwah. 💖✨🎀🦋

📦 where this page comes from