/***************************************************************************
* This file is part of the Lime Report project *
* Copyright (C) 2015 by Alexander Arin *
* arin_a@bk.ru *
* *
** GNU General Public License Usage **
* *
* This library is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
** GNU Lesser General Public License **
* *
* This library is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of the *
* License, or (at your option) any later version. *
* You should have received a copy of the GNU Lesser General Public *
* License along with this library. *
* If not, see <http://www.gnu.org/licenses/>. *
* *
* This library is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
****************************************************************************/
#include <QString>
#include <QDebug>
#include "lrglobal.h"
namespace LimeReport {
QString extractClassName(QString className)
{
int startPos=className.lastIndexOf("::");
if(startPos==-1) startPos=0;
else startPos+=2;
return className.right(className.length()-startPos);
}
bool ReportSettings::suppressAbsentFieldsAndVarsWarnings() const
{
return m_suppressAbsentFieldsAndVarsWarnings;
}
void ReportSettings::setSuppressAbsentFieldsAndVarsWarnings(bool suppressAbsentFieldsAndVarsWarnings)
{
m_suppressAbsentFieldsAndVarsWarnings = suppressAbsentFieldsAndVarsWarnings;
}
QString escapeSimbols(const QString &value)
{
QString result = value;
result.replace("\"","\\\"");
result.replace('\n',"\\n");
return result;
}
QString replaceHTMLSymbols(const QString &value)
{
QString result = value;
result.replace("<","<");
result.replace(">",">");
return result;
}
QVector<QString> normalizeCaptures(const QRegExp& reg){
QVector<QString> result;
foreach (QString cap, reg.capturedTexts()) {
if (!cap.isEmpty())
result.append(cap);
}
return result;
}
bool isColorDark(QColor color){
qreal darkness = 1-(0.299*color.red() + 0.587*color.green() + 0.114*color.blue())/255;
if(darkness<0.5){
return false;
} else {
return true;
}
}
} //namespace LimeReport
没有合适的资源?快使用搜索试试~ 我知道了~
Qt开源报表limereport demo
共59个文件
h:22个
cpp:4个
exp:4个
1星 需积分: 0 37 下载量 158 浏览量
2022-02-15
09:44:45
上传
评论 1
收藏 16.16MB ZIP 举报
温馨提示
Qt开源报表limereport demo
资源推荐
资源详情
资源评论
收起资源包目录
testReport.zip (59个子文件)
testReport.pro.user 24KB
Makefile.Debug 60KB
testReport.pro 2KB
.qmake.stash 1KB
librelease
QtZint.dll 618KB
limereport.exp 47KB
limereport.prl 907B
limereport.lib 78KB
include
lrreportdesignwindowintrerface.h 662B
lrglobal.h 7KB
LRDataManager 37B
lrglobal.cpp 4KB
LimeReport 28B
LRCallbackDS 37B
lrdatasourcemanagerintf.h 4KB
lrreportengine.h 10KB
lrpreparedpagesintf.h 597B
lrscriptenginemanagerintf.h 4KB
LRScriptManager 38B
lrrenderengine.h 3KB
lrdatasourceintf.h 2KB
lrpreviewreportwidget.h 3KB
lrcallbackdatasourceintf.h 595B
QtZint.lib 14KB
limereport.dll 3.05MB
QtZint.exp 8KB
Makefile.Release 60KB
ui_mainwindow.h 2KB
main.cpp 183B
mainwindow.ui 1KB
mainwindow.cpp 971B
mainwindow.h 748B
lib
QtZintd.dll 983KB
limereportd.pdb 39.42MB
QtZintd.lib 14KB
limereportd.dll 7.74MB
limereportd.prl 900B
include
lrreportdesignwindowintrerface.h 662B
lrglobal.h 7KB
LRDataManager 37B
lrglobal.cpp 4KB
LimeReport 28B
LRCallbackDS 37B
lrdatasourcemanagerintf.h 4KB
lrreportengine.h 10KB
lrpreparedpagesintf.h 597B
lrscriptenginemanagerintf.h 4KB
LRScriptManager 38B
lrrenderengine.h 3KB
lrdatasourceintf.h 2KB
lrpreviewreportwidget.h 3KB
lrcallbackdatasourceintf.h 595B
QtZintd.pdb 1.69MB
QtZintd.exp 8KB
QtZintd.ilk 749KB
limereportd.exp 47KB
limereportd.lib 78KB
limereportd.ilk 26.98MB
Makefile 30KB
共 59 条
- 1
资源评论
- CDHZXZ2023-05-09垃圾,抄官方demo做个删减就是你的程序了,瞎搞 #毫无价值时至未归2023-07-10抱歉,本意是上传编辑好的报表,给大家做参考的,不知道这个居然不设置也要积分
时至未归
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功