1 Star 0 Fork 0

小邓/client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
my_filemodel.cpp 451 Bytes
一键复制 编辑 原始数据 按行查看 历史
小邓 提交于 2024-06-14 01:18 +08:00 . 初步显示好友列表
#include "my_filemodel.h"
My_FileModel::My_FileModel(QObject *parent)
: QFileSystemModel{parent}
{}
QVariant My_FileModel::headerData(int section, Qt::Orientation orientation, int role) const
{
if (role == Qt::DisplayRole && orientation == Qt::Horizontal) {
if (section == 0) {
return QVariant("文件"); // 修改第一列的名称
}
}
return QFileSystemModel::headerData(section, orientation, role);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiao-deng-a/client.git
git@gitee.com:xiao-deng-a/client.git
xiao-deng-a
client
client
master

搜索帮助