InputBoxModule(3)

NAME
InputBoxModule - InputBoxModule

SYNOPSIS

  Classes

class kdk::KPasswordEdit
密码输入框，继承于QLineEdit,支持三种不同状态显示
class kdk::KSearchLineEdit
搜索输入框，可搜索匹配条件的item

  Enumerations

enum kdk::LoginState { Ordinary, LoginSuccess, LoginFailed }
支持三种状态

  Functions

kdk::KPasswordEdit::KPasswordEdit (QWidget *parent)
void kdk::KPasswordEdit::setState (LoginState state)
设置状态
LoginState kdk::KPasswordEdit::state ()
返回状态
void kdk::KPasswordEdit::setLoading (bool flag)
设置加载状态
bool kdk::KPasswordEdit::isLoading ()
判断是否处于加载状态
QString kdk::KPasswordEdit::placeholderText ()
返回placeholderText
void kdk::KPasswordEdit::setPlaceholderText (QString &text)
设置PlaceholderText
void kdk::KPasswordEdit::setClearButtonEnabled (bool enable)
设置是否启用ClearButton
bool kdk::KPasswordEdit::isClearButtonEnabled () const
返回是否启用了ClearButton
void kdk::KPasswordEdit::setEchoModeBtnVisible (bool enable)
设置EchoModeBtn是否可见
bool kdk::KPasswordEdit::echoModeBtnVisible ()
返回EchoModeBtn是否可见
void kdk::KPasswordEdit::setClearBtnVisible (bool enable)
设置ClearBtn是否可见
bool kdk::KPasswordEdit::clearBtnVisible ()
返回ClearBtn是否可见
void kdk::KPasswordEdit::setEnabled (bool)
设置KLineEdit是否可用
void kdk::KPasswordEdit::setEchoMode (EchoMode mode)
setEchoMode
void kdk::KPasswordEdit::setUseCustomPalette (bool flag)
设置是否走默认palette
void kdk::KPasswordEdit::resizeEvent (QResizeEvent *event)
bool kdk::KPasswordEdit::eventFilter (QObject *watched, QEvent *event)
QSize kdk::KPasswordEdit::sizeHint () const override
kdk::KSearchLineEdit::KSearchLineEdit (QWidget *parent=nullptr)
void kdk::KSearchLineEdit::setEnabled (bool)
设置是否可用
bool kdk::KSearchLineEdit::isEnabled ()
返回是否可用
void kdk::KSearchLineEdit::setClearButtonEnabled (bool enable)
设置是否显示清除按钮
bool kdk::KSearchLineEdit::isClearButtonEnabled () const
返回是否显示清除按钮
QString kdk::KSearchLineEdit::placeholderText () const
返回placeholder
void kdk::KSearchLineEdit::setPlaceholderText (const QString &)
设置placeholder
Qt::Alignment kdk::KSearchLineEdit::placeholderAlignment () const
返回placeholder的对齐方式
void kdk::KSearchLineEdit::setPlaceholderAlignment (Qt::Alignment flag)
设置placeholder的对齐方式
Qt::Alignment kdk::KSearchLineEdit::alignment () const
设置输入文本的对齐方式
void kdk::KSearchLineEdit::setAlignment (Qt::Alignment flag)
设置输入文本的对齐方式返回
void kdk::KSearchLineEdit::setTranslucent (bool flag)
设置是否启用半透明效果
bool kdk::KSearchLineEdit::isTranslucent ()
获取是否启用半透明效果
void kdk::KSearchLineEdit::reloadStyle ()
重新加载style
KToolButton * kdk::KSearchLineEdit::customButton ()
获取自定义按钮
void kdk::KSearchLineEdit::setGradation (bool flag)
是否启用渐变色
void kdk::KSearchLineEdit::setCustomButtonVisible (bool flag)
设置智能语义按钮是否可见
bool kdk::KSearchLineEdit::isCustomButtonVisible ()
返回智能语义按钮是否可见
bool kdk::KSearchLineEdit::eventFilter (QObject *watched, QEvent *event)
void kdk::KSearchLineEdit::resizeEvent (QResizeEvent *event)
void kdk::KSearchLineEdit::setVisible (bool visible)
void kdk::KSearchLineEdit::paintEvent (QPaintEvent *event)
QSize kdk::KSearchLineEdit::sizeHint () const override

  Public Slots

void kdk::KSearchLineEdit::clear ()

Detailed Description

Since
    2.5.2.0 {

Enumeration Type Documentation

  enum kdk::LoginState

支持三种状态

Since
    1.0.0

Function Documentation

  Qt::Alignment kdk::KSearchLineEdit::alignment () const

设置输入文本的对齐方式

Returns

  bool kdk::KPasswordEdit::clearBtnVisible ()

返回ClearBtn是否可见

Returns

Since
    1.2.0

  KToolButton * kdk::KSearchLineEdit::customButton ()

获取自定义按钮

Returns

Since
    2.4.1.0

  bool kdk::KPasswordEdit::echoModeBtnVisible ()

返回EchoModeBtn是否可见

Returns

Since
    1.2.0

  bool kdk::KPasswordEdit::isClearButtonEnabled () const

返回是否启用了ClearButton

Returns

  bool kdk::KSearchLineEdit::isClearButtonEnabled () const

返回是否显示清除按钮

Returns

  bool kdk::KSearchLineEdit::isCustomButtonVisible ()

返回智能语义按钮是否可见

Returns
    bool

Since
    2.4.1.0

  bool kdk::KSearchLineEdit::isEnabled ()

返回是否可用

Returns

  bool kdk::KPasswordEdit::isLoading ()

判断是否处于加载状态

Returns

  bool kdk::KSearchLineEdit::isTranslucent ()

获取是否启用半透明效果

Since
    1.2.0

Returns
    flag

  Qt::Alignment kdk::KSearchLineEdit::placeholderAlignment () const

返回placeholder的对齐方式

Returns

  QString kdk::KPasswordEdit::placeholderText ()

返回placeholderText

Returns

  QString kdk::KSearchLineEdit::placeholderText () const

返回placeholder

Returns

  void kdk::KSearchLineEdit::reloadStyle ()

重新加载style

Since
    2.0.2.1

  void kdk::KSearchLineEdit::setAlignment (Qt::Alignment flag)

设置输入文本的对齐方式返回

Returns

  void kdk::KPasswordEdit::setClearBtnVisible (bool enable)

设置ClearBtn是否可见

Returns

Since
    1.2.0

  void kdk::KPasswordEdit::setClearButtonEnabled (bool enable)

设置是否启用ClearButton

Parameters
    enable

  void kdk::KSearchLineEdit::setClearButtonEnabled (bool enable)

设置是否显示清除按钮

Returns

  void kdk::KSearchLineEdit::setCustomButtonVisible (bool flag)

设置智能语义按钮是否可见

Parameters
    flag

Since
    2.4.1.0

  void kdk::KPasswordEdit::setEchoMode (EchoMode mode)

setEchoMode

Since
    1.2.0

  void kdk::KPasswordEdit::setEchoModeBtnVisible (bool enable)

设置EchoModeBtn是否可见

Returns

Since
    1.2.0

  void kdk::KPasswordEdit::setEnabled (bool)

设置KLineEdit是否可用

Returns

  void kdk::KSearchLineEdit::setGradation (bool flag)

是否启用渐变色

Parameters
    flag

Since
    2.4.1.0

  void kdk::KPasswordEdit::setLoading (bool flag)

设置加载状态

Parameters
    flag

  void kdk::KSearchLineEdit::setPlaceholderAlignment (Qt::Alignment flag)

设置placeholder的对齐方式

Returns

  void kdk::KSearchLineEdit::setPlaceholderText (const QString &)

设置placeholder

Returns

  void kdk::KPasswordEdit::setPlaceholderText (QString & text)

设置PlaceholderText

Parameters
    text

  void kdk::KPasswordEdit::setState (LoginState state)

设置状态

Parameters
    state

  void kdk::KSearchLineEdit::setTranslucent (bool flag)

设置是否启用半透明效果

Since
    1.2.0

Parameters
    flag

  void kdk::KPasswordEdit::setUseCustomPalette (bool flag)

设置是否走默认palette

Parameters
    flag

Since
    1.2.0

  LoginState kdk::KPasswordEdit::state ()

返回状态

Returns

Author

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