Ai
2 Star 8 Fork 0

XMuli/lfxSpeed

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
settingmodel.cpp 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
XMuli 提交于 2021-03-24 15:42 +08:00 . fix: Fixed network width display
/*
* Copyright (c) 2020 xmuli
*
* Author: xmuli(偕臧) xmulitech@gmail.com
* GitHub: https://github.com/xmuli
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* */
#include "settingmodel.h"
#include <DLabel>
DWIDGET_USE_NAMESPACE
SettingModel::SettingModel(QObject *parent)
: QObject(parent)
, m_strUpload("↑:")
, m_strDown("↓:")
, m_strCpu("CPU:")
, m_strMemory("MEM:")
, m_bUpAndDown(true)
, m_bMouseTips(true)
, m_nDecimalsNum(0)
, m_nInterval(1000)
{
}
void SettingModel::init()
{
}
const QString SettingModel::getStrUpload()
{
return m_strUpload;
}
const QString SettingModel::getStrDown()
{
return m_strDown;
}
const QString SettingModel::getStrCpu()
{
return m_strCpu;
}
const QString SettingModel::getStrMemory()
{
return m_strMemory;
}
const bool SettingModel::getUpAndDown()
{
return m_bUpAndDown;
}
const bool SettingModel::getMouseTips()
{
return m_bMouseTips;
}
const int SettingModel::getDecimalsNum()
{
return m_nDecimalsNum;
}
const int SettingModel::getInterval()
{
return m_nInterval;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/XMuli/lfxSpeed.git
git@gitee.com:XMuli/lfxSpeed.git
XMuli
lfxSpeed
lfxSpeed
master

搜索帮助