kdk::KSearchLineEdit(3)

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

✨ NAME ✨

kdk::KSearchLineEdit — 搜索输入框,可搜索匹配条件的item — bestie, that's a search input box that can search for items matching your conditions 🫶 it's giving "type and it finds stuff" and honestly? iconic.


🌸 SYNOPSIS 🌸

#include <ksearchlineedit.h>

Inherits QLineEdit. Yeah, it's a glow-up of QLineEdit, not a from-scratch girlie 💅

🎀 Public Slots 🎀

  • void clear () — wipes the whole thing, clean slate energy ✨

🦋 Public Member Functions 🦋

  • KSearchLineEdit (QWidget *parent=nullptr) — the constructor, and yes the default parent is literally nullptr, no cap
  • void setEnabled (bool) — 设置是否可用 — turns the "is it usable" switch on or off
  • bool isEnabled () — 返回是否可用 — tells you whether it's usable rn
  • void setClearButtonEnabled (bool enable) — 设置是否显示清除按钮 — decides if the lil clear button shows up
  • bool isClearButtonEnabled () const — 返回是否显示清除按钮 — tells you if that clear button is showing
  • QString placeholderText () const — 返回placeholder — hands you back the placeholder
  • void setPlaceholderText (const QString &) — 设置placeholder — you set the placeholder
  • Qt::Alignment placeholderAlignment () const — 返回placeholder的对齐方式 — returns how the placeholder is aligned
  • void setPlaceholderAlignment (Qt::Alignment flag) — 设置placeholder的对齐方式 — sets how the placeholder is aligned
  • Qt::Alignment alignment () const — 设置输入文本的对齐方式 — okay the docs say "set" here even though it's a getter, lowkey a typo moment, but that's the input text alignment vibe
  • void setAlignment (Qt::Alignment flag) — 设置输入文本的对齐方式返回 — sets the input text alignment (and yes the original description ends with 返回, we love a mystery 🕵️)
  • void setTranslucent (bool flag) — 设置是否启用半透明效果 — turns the semi-transparent see-through glow on or off
  • bool isTranslucent () — 获取是否启用半透明效果 — fetches whether that semi-transparent effect is on
  • void reloadStyle () — 重新加载style — reloads the style, a little refresh, a little self-care 🧖
  • KToolButton * customButton () — 获取自定义按钮 — grabs you the custom button
  • void setGradation (bool flag) — 是否启用渐变色 — whether to enable gradient colours 🌈
  • void setCustomButtonVisible (bool flag) — 设置智能语义按钮是否可见 — sets whether the smart semantic button is visible
  • bool isCustomButtonVisible () — 返回智能语义按钮是否可见 — returns whether that smart semantic button is visible

💜 Protected Member Functions 💜

These are the backstage ones, iykyk — not for just anyone to call:

  • bool eventFilter (QObject *watched, QEvent *event)
  • void resizeEvent (QResizeEvent *event)
  • void setVisible (bool visible)
  • void paintEvent (QPaintEvent *event)
  • QSize sizeHint () const override

🌟 Detailed Description 🌟

搜索输入框,可搜索匹配条件的item — it's the search input box that searches for items matching your conditions. Main character energy for real.

⭐ Since

1.0.0 — been here since the beginning, a true OG 👑

💀 Examples

testsearchlinedit/widget.h. — go look at it, it's right there, no gatekeeping fr fr

🌈 Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human author, just Doxygen doing its lil autopilot thing 🙈


Heads up bestie: this page is auto-generated, so a couple of the descriptions are a bit scrambled (we're looking at you, alignment ()). Copy the signatures exactly as written and you're golden 💖

okay bye ily, this was LIBKYSDK-APPLICATIONS, Version version:3.0, kdk::KSearchLineEdit(3) — slay, periodt 🎀✨

📦 where this page comes from