kdk::KSearchLineEdit(3)

NAME
kdk::KSearchLineEdit - 搜索输入框，可搜索匹配条件的item

SYNOPSIS

#include <ksearchlineedit.h>

Inherits QLineEdit.

  Public Slots
void clear ()

  Public Member Functions
KSearchLineEdit (QWidget *parent=nullptr)
void setEnabled (bool)
设置是否可用
bool isEnabled ()
返回是否可用
void setClearButtonEnabled (bool enable)
设置是否显示清除按钮
bool isClearButtonEnabled () const
返回是否显示清除按钮
QString placeholderText () const
返回placeholder
void setPlaceholderText (const QString &)
设置placeholder
Qt::Alignment placeholderAlignment () const
返回placeholder的对齐方式
void setPlaceholderAlignment (Qt::Alignment flag)
设置placeholder的对齐方式
Qt::Alignment alignment () const
设置输入文本的对齐方式
void setAlignment (Qt::Alignment flag)
设置输入文本的对齐方式返回
void setTranslucent (bool flag)
设置是否启用半透明效果
bool isTranslucent ()
获取是否启用半透明效果
void reloadStyle ()
重新加载style
KToolButton * customButton ()
获取自定义按钮
void setGradation (bool flag)
是否启用渐变色
void setCustomButtonVisible (bool flag)
设置智能语义按钮是否可见
bool isCustomButtonVisible ()
返回智能语义按钮是否可见

  Protected Member Functions
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

Since
    1.0.0

Examples
testsearchlinedit/widget.h.

Author

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