kdk::KSecu...tionDialog(3)
🎀 NAME 🎀
kdk::KSecurityQuestionDialog — it's a security question dialog, bestie, and it inherits from KDialog. That's it, that's the whole identity. This page is from the Library Functions Manual, section 3, so it's a C++ library thing, not a command you type into a shell. iykyk 💅
✨ SYNOPSIS ✨
#include <ksecurityquestiondialog.h>
Inherits kdk::KDialog.
🌸 Public Member Functions
KSecurityQuestionDialog (QWidget *parent=nullptr)— the constructor, bestie. makes the dialog.void setTitleText (const QString &text)— sets the dialog title 🎀void addSecurityQuestionItem (const int count, bool mutex)— adds security question widgets:Label,combox,Label,lineedit,tipsLabel. no cap.void addSecurityQuestionItem (const int count, bool mutex, bool isVerify)— adds security question widgets:Label,combox/lineedit,Label,lineedit,tipsLabel.void initQustionCombox (const QStringList &questionlist)— adds the list of dropdown options. (yes the name has a typo, we don't talk about it 🙈)QLabel * questionLabel (const int questionIndex)— gets theLabelsitting on the left of the dropdown.QComboBox * questionCombox (const int questionIndex)— gets thecombox.QLabel * answerLabel (const int answerIndex)— gets thelabelon the left of thelineedit.QLineEdit * answerLineedit (const int answerIndex)— gets thelineedit.QLabel * tipsLabel (const int index)— gets the tipslabel.KPushButton * cancelButton ()— gets the cancel button.KPushButton * confirmButton ()— gets the confirm button.
🦋 Public Member Functions inherited from kdk::KDialog
KDialog (QWidget *parent=nullptr)— the parent dialog constructor.void setWindowIcon (const QIcon &icon)— sets the dialog icon.void setWindowIcon (const QString &iconName)— sets the dialog icon.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 ()— gets the main content areaWidget.KWindowButtonBar * windowButtonBar ()—windowButtonBar.KIconBar * iconBar ()—iconBar.
💅 Protected Member Functions
void keyPressEvent (QKeyEvent *)— protected, so it's for the class itself, not for you to poke at from outside.
🌈 Protected Member Functions inherited from kdk::KDialog
bool eventFilter (QObject *target, QEvent *event) override— overrides the base one.void changeTheme ()void changeIconStyle ()QBoxLayout * mainLayout ()
💫 Detailed Description 💫
It inherits from KDialog. Iconic lineage, honestly. 👑
Since
2.4.1.0
🔥 Member Function Documentation 🔥
void kdk::KSecurityQuestionDialog::addSecurityQuestionItem (const int count, bool mutex)
adds security question widgets: Label, combox, Label, lineedit, tipsLabel.
Parameters
count— how many widgets you want, bestie.mutex— whether to turn on the dropdown mutual-exclusion check. if it's on, anything that's already been picked gets greyed out in the other dropdowns. so no double-dipping, periodt.
void kdk::KSecurityQuestionDialog::addSecurityQuestionItem (const int count, bool mutex, bool isVerify)
adds security question widgets: Label, combox/lineedit, Label, lineedit, tipsLabel.
Parameters
count— how many widgets.mutex— whether to turn on the dropdown mutual-exclusion check. if it's on, anything that's already been picked gets greyed out in the other dropdowns.isVerify— whether this is a verification window.
QLabel * kdk::KSecurityQuestionDialog::answerLabel (const int answerIndex)
gets the label on the left of the lineedit.
Parameters
answerIndex— the item index, range[0,count).
Returns
a QLabel, the label left of the lineedit. if it can't get one, it hands you nullptr.
QLineEdit * kdk::KSecurityQuestionDialog::answerLineedit (const int answerIndex)
gets the lineedit.
Parameters
answerIndex— the item index, range[0,count).
Returns
a QLineEdit, the lineedit. if it can't get one, it hands you nullptr.
KPushButton * kdk::KSecurityQuestionDialog::cancelButton ()
gets the cancel button.
Returns
a KPushButton.
KPushButton * kdk::KSecurityQuestionDialog::confirmButton ()
gets the confirm button.
Returns
a KPushButton.
void kdk::KSecurityQuestionDialog::initQustionCombox (const QStringList &questionlist)
adds the dropdown option list.
Parameters
questionlist— the list of questions to fill that dropdown with.
QComboBox * kdk::KSecurityQuestionDialog::questionCombox (const int questionIndex)
gets the combox.
Parameters
questionIndex— the item index, range[0,count).
Returns
a QComboBox, the dropdown. if it can't get one, it hands you nullptr.
QLabel * kdk::KSecurityQuestionDialog::questionLabel (const int questionIndex)
gets the Label on the left of the dropdown.
Parameters
questionIndex— the item index, range[0,count).
Returns
a QLabel, the Label left of the dropdown. if it can't get one, it hands you nullptr.
void kdk::KSecurityQuestionDialog::setTitleText (const QString & text)
sets the dialog title.
Parameters
text— the title. that's the vibe you're setting. ✨
QLabel * kdk::KSecurityQuestionDialog::tipsLabel (const int index)
gets the tips label.
Parameters
index— the item index, range[0,count).
Returns
a QLabel, the tips label. if it can't get one, it hands you nullptr.
👑 Author 👑
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. it literally wrote itself, main character energy fr fr 💖
and that's the whole page, bestie 🫶 no cap, every flag, index, nullptr and range made it in. slay.
kisses from the Library Functions Manual, section 3 — this whole thing ships with LIBKYSDK-APPLICATIONS, Version version:3.0 💜 bye mwah 🎀✨
📦 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