首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

QtTreePropertyBrowser -Qt5

后端 96.36KB 4 需要积分: 1
立即下载

资源介绍:

qtpropertybrowser Qt5 sources
// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #include "qtpropertymanager.h" #include "qtpropertybrowserutils_p.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined(Q_CC_MSVC) # pragma warning(disable: 4786) /* MS VS 6: truncating debug info after 255 characters */ #endif QT_BEGIN_NAMESPACE template static void setSimpleMinimumData(PrivateData *data, const Value &minVal) { data->minVal = minVal; if (data->maxVal < data->minVal) data->maxVal = data->minVal; if (data->val < data->minVal) data->val = data->minVal; } template static void setSimpleMaximumData(PrivateData *data, const Value &maxVal) { data->maxVal = maxVal; if (data->minVal > data->maxVal) data->minVal = data->maxVal; if (data->val > data->maxVal) data->val = data->maxVal; } template static void setSizeMinimumData(PrivateData *data, const Value &newMinVal) { data->minVal = newMinVal; if (data->maxVal.width() < data->minVal.width()) data->maxVal.setWidth(data->minVal.width()); if (data->maxVal.height() < data->minVal.height()) data->maxVal.setHeight(data->minVal.height()); if (data->val.width() < data->minVal.width()) data->val.setWidth(data->minVal.width()); if (data->val.height() < data->minVal.height()) data->val.setHeight(data->minVal.height()); } template static void setSizeMaximumData(PrivateData *data, const Value &newMaxVal) { data->maxVal = newMaxVal; if (data->minVal.width() > data->maxVal.width()) data->minVal.setWidth(data->maxVal.width()); if (data->minVal.height() > data->maxVal.height()) data->minVal.setHeight(data->maxVal.height()); if (data->val.width() > data->maxVal.width()) data->val.setWidth(data->maxVal.width()); if (data->val.height() > data->maxVal.height()) data->val.setHeight(data->maxVal.height()); } template static SizeValue qBoundSize(const SizeValue &minVal, const SizeValue &val, const SizeValue &maxVal) { SizeValue croppedVal = val; if (minVal.width() > val.width()) croppedVal.setWidth(minVal.width()); else if (maxVal.width() < val.width()) croppedVal.setWidth(maxVal.width()); if (minVal.height() > val.height()) croppedVal.setHeight(minVal.height()); else if (maxVal.height() < val.height()) croppedVal.setHeight(maxVal.height()); return croppedVal; } // Match the exact signature of qBound for VS 6. QSize qBound(QSize minVal, QSize val, QSize maxVal) { return qBoundSize(minVal, val, maxVal); } QSizeF qBound(QSizeF minVal, QSizeF val, QSizeF maxVal) { return qBoundSize(minVal, val, maxVal); } namespace { namespace { template void orderBorders(Value &minVal, Value &maxVal) { if (minVal > maxVal) qSwap(minVal, maxVal); } template static void orderSizeBorders(Value &minVal, Value &maxVal) { Value fromSize = minVal; Value toSize = maxVal; if (fromSize.width() > toSize.width()) { fromSize.setWidth(maxVal.width()); toSize.setWidth(minVal.width()); } if (fromSize.height() > toSize.height()) { fromSize.setHeight(maxVal.height()); toSize.setHeight(minVal.height()); } minVal = fromSize; maxVal = toSize; } void orderBorders(QSize &minVal, QSize &maxVal) { orderSizeBorders(minVal, maxVal); } void orderBorders(QSizeF &minVal, QSizeF &maxVal) { orderSizeBorders(minVal, maxVal); } } } //////// template static Value getData(const QHash &propertyMap, Value PrivateData::*data, const QtProperty *property, const Value &defaultValue = Value()) { const auto it = propertyMap.constFind(property); if (it == propertyMap.constEnd()) return defaultValue; return it.value().*data; } template static Value getValue(const QHash &propertyMap, const QtProperty *property, const Value &defaultValue = Value()) { return getData(propertyMap, &PrivateData::val, property, defaultValue); } template static Value getMinimum(const QHash &propertyMap, const QtProperty *property, const Value &defaultValue = Value()) { return getData(propertyMap, &PrivateData::minVal, property, defaultValue); } template static Value getMaximum(const QHash &propertyMap, const QtProperty *property, const Value &defaultValue = Value()) { return getData(propertyMap, &PrivateData::maxVal, property, defaultValue); } template static void setSimpleValue(QHash &propertyMap, PropertyManager *manager, void (PropertyManager::*propertyChangedSignal)(QtProperty *), void (PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), QtProperty *property, const Value &val) { const auto it = propertyMap.find(property); if (it == propertyMap.end()) return; if (it.value() == val) return; it.value() = val; emit (manager->*propertyChangedSignal)(property); emit (manager->*valueChangedSignal)(property, val); } template static void setValueInRange(PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void (PropertyManager::*propertyChangedSignal)(QtProperty *), void (PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), QtProperty *property, const Value &val, void (PropertyManagerPrivate::*setSubPropertyValue)(QtProperty *, ValueChangeParameter)) { const auto it = managerPrivate->m_values.find(property); if (it == managerPrivate->m_values.end()) return; auto &data = it.value(); if (data.val == val) return; const Value oldVal = data.val; data.val = qBound(data.minVal, val, data.maxVal); if (data.val == oldVal) return; if (setSubPropertyValue) (managerPrivate->*setSubPropertyValue)(property, data.val); emit (manager->*propertyChangedSignal)(property); emit (manager->*valueChangedSignal)(property, data.val); } template static void setBorderValues(PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void (PropertyManager::*propertyChangedSignal)(QtProperty *), void (PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void (PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, ValueChangeParameter minVal, ValueChangeParameter maxVal, void (Prop

资源文件列表:

qtpropertybrowser.zip 大约有43个文件
  1. images/
  2. images/cursor-arrow.png 171B
  3. images/cursor-busy.png 201B
  4. images/cursor-closedhand.png 147B
  5. images/cursor-cross.png 130B
  6. images/cursor-forbidden.png 199B
  7. images/cursor-hand.png 159B
  8. images/cursor-hsplit.png 155B
  9. images/cursor-ibeam.png 124B
  10. images/cursor-openhand.png 160B
  11. images/cursor-sizeall.png 174B
  12. images/cursor-sizeb.png 161B
  13. images/cursor-sizef.png 161B
  14. images/cursor-sizeh.png 145B
  15. images/cursor-sizev.png 141B
  16. images/cursor-uparrow.png 132B
  17. images/cursor-vsplit.png 161B
  18. images/cursor-wait.png 172B
  19. images/cursor-whatsthis.png 191B
  20. qtbuttonpropertybrowser.cpp 18.01KB
  21. qtbuttonpropertybrowser.h 1.08KB
  22. qtbuttonpropertybrowser_p.h 1.28KB
  23. qteditorfactory.cpp 75.84KB
  24. qteditorfactory.h 10.22KB
  25. qteditorfactory_p.h 10.17KB
  26. qtgroupboxpropertybrowser.cpp 14.92KB
  27. qtgroupboxpropertybrowser.h 914B
  28. qtgroupboxpropertybrowser_p.h 1.1KB
  29. qtpropertybrowser.cpp 60.86KB
  30. qtpropertybrowser.h 8.3KB
  31. qtpropertybrowser.pri 1.19KB
  32. qtpropertybrowser_p.h 8.28KB
  33. qtpropertybrowserutils.cpp 9.99KB
  34. qtpropertybrowserutils_p.h 2.43KB
  35. qtpropertymanager.cpp 206.28KB
  36. qtpropertymanager.h 23.2KB
  37. qtpropertymanager_p.h 22.63KB
  38. qttreepropertybrowser.cpp 33.18KB
  39. qttreepropertybrowser.h 2.74KB
  40. qttreepropertybrowser_p.h 2.89KB
  41. qtvariantproperty.cpp 95.78KB
  42. qtvariantproperty.h 3.51KB
  43. qtvariantproperty_p.h 3.66KB
0评论
提交 加载更多评论
其他资源 -图书管理系统后端源码
采用JavaEE编写图书管理系统
Discuz淘宝客网站模板,迪恩淘宝客购物风格商业版模板
Discuz淘宝客网站模板,迪恩淘宝客购物风格商业版模板。 版本支持:discuzx3.0版本,discuzx3.1版本,discuzx3.2版本。 包括网站首页,论坛首页,论坛列表页,论坛内容页,论坛瀑布流,频道列表页,频道内容页(支持多个)。 模板论坛首页,列表页,内容页,以及文章页面数据采用DIY数据读取, 方便新手老手运营以及后期维护,时尚大气简洁。模板添加了不少处动画效果,增加用户体验和粘度。 模板有很多细节都有体现,同时对官方模板文件结构和功能位置做了更为优化的设计处理,
AD实验图及参考资料.zip
AD实验图及参考资料.zip
苹果CMS广告插件,提升网站广告质量,苹果CMS防投诉广告插件,确保广告合规性避免投诉问题
苹果cms防投诉广告插件,防止被恶意投诉 只允许蜘蛛访问原内容,其他访客直接显示广告
onnx2ncnnGUI
onnx转ncnn可视化软件
onnx2ncnnGUI
一些好用的桌面时钟,自留
一些好用的桌面时钟,自留
交换机自动化获取诊断信息(H3C)
​ 当前文件夹中除去介绍文件共有3个文件一个文件夹 “capture.txt”文件用于存放从交换机获取到的数据 “diagnostic.txt”文件用于直接参考代码 “diagnostic.py”文件作为自动化获取巡检信息的代码 “diagnosis”文件夹则用于存取从交换机下载的诊断信息文件 代码修改     USERNAME = "h3c"  # 交换机登录用户     PASSWORD = "huawei@123"  # 交换机登录密码     # 添加你的交换机IP地址     hosts = ["172.16.1.1"]  # 替换为你实际的交换机IP 通过修改代码的122、123、127行将交换机信息修改为想要获取诊断信息的账号密码和IP print("诊断收集中,需等待40秒...") # 输入确认并等待40秒 ssh_shell.send('y\n') # 输入 'y' 并回车确认保存诊断信息 time.sleep(1) # 使用动态生成的文件名保存到交换机 ssh_shell.send(f"flash:/{self.diagnostic_file}\n")
查立得PHP+mysql通用已有数据表查询系统2024版19查搜模式合1 V2.0
一般网站站长/程序员/计算机熟练者自用,快速用于已有数据表的查询或搜索。 或者自己会数据库导入mysql的用户一次性导入后使用本系统;或计算机爱好者学习。 单文件不压缩不到20KB实现19查搜模式,每个模式均通用Mysql单表(灵活字段和查询条件)。 可以多输入框都数对,一个输入框查多列,选择条件之一查单列,多输入框输过的都符合... 支持等于/包含/开头/结尾/空格分开多关键词。可自定义验证码和网页主色。 支持指定输入框输入提示功能(注意非必要不开启);查询结果指定字段排序。 不保证绝对安全,如果正式用途请自行加入安全代码或开启网络防火墙等。 支持隐藏指定多列;支持查询结果指定字段排序;支持分页与页码设置;支持最大页数限定。 支持字段别名设置;极小页面让你低带宽实现高并发;代码量极小方便二开与安全分析。 推荐环境:宝塔/护卫神/主流虚拟主机 PHP5.4-7.3/mysql5.6 环境 性能优化:查询条件字段索引(不优化则适合30万以内数据查搜);开启opcache缓存 输入提示功能:高频查询不建议开启;非等于输入内容模式 或 万用查分模式不建议开启;