1 Star 0 Fork 9

fuyb/linux_feiq

forked from uenigma/linux_feiq 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
searchfellowdlg.h 849 Bytes
一键复制 编辑 原始数据 按行查看 历史
lpx 提交于 2021-12-16 21:35 +08:00 . 格式化代码
#ifndef SEARCHFELLOWDLG_H
#define SEARCHFELLOWDLG_H
#include "feiqlib/fellow.h"
#include <QDialog>
#include <functional>
#include <vector>
using namespace std;
namespace Ui
{
class SearchFellowDlg;
}
class SearchFellowDlg : public QDialog
{
Q_OBJECT
public:
explicit SearchFellowDlg(QWidget *parent = 0);
~SearchFellowDlg();
void setSearchDriver(function<vector<const Fellow *>(const QString &)> driver);
signals:
void onFellowSelected(const Fellow *fellow);
public slots:
void search(const QString &text);
void searchDone();
protected:
virtual void showEvent(QShowEvent *) override;
private:
void loadAllFellows();
private:
Ui::SearchFellowDlg *ui;
function<vector<const Fellow *>(const QString &text)> mSearchDriver;
vector<const Fellow *> mCurResult;
};
#endif // SEARCHFELLOWDLG_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HALOBING/linux_feiq.git
git@gitee.com:HALOBING/linux_feiq.git
HALOBING
linux_feiq
linux_feiq
master

搜索帮助