1 Star 0 Fork 142

撸码小分队/DS

forked from Vanishi/DS 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
TaskBrowserMenu.cpp 856 Bytes
一键复制 编辑 原始数据 按行查看 历史
sun-th 提交于 2023-04-08 18:39 +08:00 . V1.5 新增图片下载功能&优化代码结构
#include "TaskBrowserMenu.h"
#include <QHBoxLayout>
#include <QLabel>
TaskBrowserMenu::TaskBrowserMenu(QWidget *parent) : QWidget(parent)
{
setAttribute(Qt::WA_StyledBackground,true);
setStyleSheet(".TaskBrowserMenu{background-color:rgb(238,248,255);border-style: solid;border-width: 1px; border-radius: 2px;border-color:rgb(2,91,222);padding: 1px;}");
QHBoxLayout *boxLayout = new QHBoxLayout(this);
boxLayout->setContentsMargins(0,0,0,0);
QLabel *tipLabel = new QLabel(this);
tipLabel->setStyleSheet(".QLabel {color:rgb(2,91,222);font-family:Microsoft YaHei;font-size:12px;}");
tipLabel->setText(tr("您当前处于浏览模式,可以像在浏览器中一样正常点击操作网页,如需编辑规则,请切回。"));
boxLayout->addSpacing(20);
boxLayout->addWidget(tipLabel);
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/coderanks/DS.git
git@gitee.com:coderanks/DS.git
coderanks
DS
DS
master

搜索帮助