logplus/Workflow/WFCrystal/Crystal/include/SmartCompleter.h

41 lines
972 B
C
Raw Normal View History

2026-01-16 17:18:41 +08:00
/**
* @file SmartCompleter.h
* @brief Completer类
* @date 2015-04-30
*/
#ifndef PAI_FRAME_CRYSTAL_SMARTCOMPLETER_H
#define PAI_FRAME_CRYSTAL_SMARTCOMPLETER_H
#include "Turtle.h"
#include <QCompleter>
#include <QStringListModel>
namespace pai
{
/**
* @class SmartCompleter
* @brief PAI系统定制Completer类
*/
class PAI_CRYSTAL_EXPORT SmartCompleter: public QCompleter
{
public:
/**
* @brief
* @param[in] pModel
* @param[in] pParent
*/
SmartCompleter(QStringListModel *pModel, QObject * pParent);
/**
* @brief m_model
* @param[in] word
*/
void Update(const QString& word);
private:
QStringListModel m_model; ///< completer当前的字符串模型
QStringListModel* m_pBaseModel; ///< 基础字符串模型
};
}
#endif ///< PAI_FRAME_CRYSTAL_SMARTCOMPLETER_H