0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 00:54:39 +03:00

Merge tag '1.5.45' into develop

Finish 1.5.45
This commit is contained in:
Arin Alexander 2020-03-24 23:49:18 +03:00
commit 26be19b190
6 changed files with 44 additions and 35 deletions

View File

@ -46,6 +46,7 @@ matrix:
- qt51base - qt51base
- qt51script - qt51script
- qt51tools - qt51tools
- qt51svg
script: script:
- source /opt/qt51/bin/qt51-env.sh - source /opt/qt51/bin/qt51-env.sh
@ -67,6 +68,7 @@ matrix:
- qt51base - qt51base
- qt51script - qt51script
- qt51tools - qt51tools
- qt51svg
script: script:
- source /opt/qt51/bin/qt51-env.sh - source /opt/qt51/bin/qt51-env.sh
@ -88,6 +90,7 @@ matrix:
- qt52base - qt52base
- qt52script - qt52script
- qt52tools - qt52tools
- qt52svg
script: script:
- source /opt/qt52/bin/qt52-env.sh - source /opt/qt52/bin/qt52-env.sh
@ -109,6 +112,7 @@ matrix:
- qt52base - qt52base
- qt52script - qt52script
- qt52tools - qt52tools
- qt52svg
script: script:
- source /opt/qt52/bin/qt52-env.sh - source /opt/qt52/bin/qt52-env.sh
@ -130,6 +134,7 @@ matrix:
- qt53base - qt53base
- qt53script - qt53script
- qt53tools - qt53tools
- qt53svg
script: script:
- source /opt/qt53/bin/qt53-env.sh - source /opt/qt53/bin/qt53-env.sh
@ -151,6 +156,7 @@ matrix:
- qt53base - qt53base
- qt53script - qt53script
- qt53tools - qt53tools
- qt53svg
script: script:
- source /opt/qt53/bin/qt53-env.sh - source /opt/qt53/bin/qt53-env.sh
@ -172,6 +178,7 @@ matrix:
- qt54base - qt54base
- qt54script - qt54script
- qt54tools - qt54tools
- qt54svg
script: script:
- source /opt/qt54/bin/qt54-env.sh - source /opt/qt54/bin/qt54-env.sh
@ -193,6 +200,7 @@ matrix:
- qt54base - qt54base
- qt54script - qt54script
- qt54tools - qt54tools
- qt54svg
script: script:
- source /opt/qt54/bin/qt54-env.sh - source /opt/qt54/bin/qt54-env.sh
@ -214,6 +222,7 @@ matrix:
- qt55base - qt55base
- qt55script - qt55script
- qt55tools - qt55tools
- qt55svg
script: script:
- source /opt/qt55/bin/qt55-env.sh - source /opt/qt55/bin/qt55-env.sh
@ -235,6 +244,7 @@ matrix:
- qt55base - qt55base
- qt55script - qt55script
- qt55tools - qt55tools
- qt55svg
script: script:
- source /opt/qt55/bin/qt55-env.sh - source /opt/qt55/bin/qt55-env.sh
@ -256,6 +266,7 @@ matrix:
- qt56base - qt56base
- qt56script - qt56script
- qt56tools - qt56tools
- qt56svg
script: script:
- source /opt/qt56/bin/qt56-env.sh - source /opt/qt56/bin/qt56-env.sh
@ -277,6 +288,7 @@ matrix:
- qt56base - qt56base
- qt56script - qt56script
- qt56tools - qt56tools
- qt56svg
script: script:
- source /opt/qt56/bin/qt56-env.sh - source /opt/qt56/bin/qt56-env.sh
@ -298,6 +310,7 @@ matrix:
- qt57base - qt57base
- qt57script - qt57script
- qt57tools - qt57tools
- qt57svg
script: script:
- source /opt/qt57/bin/qt57-env.sh - source /opt/qt57/bin/qt57-env.sh
@ -319,6 +332,7 @@ matrix:
- qt57base - qt57base
- qt57script - qt57script
- qt57tools - qt57tools
- qt57svg
script: script:
- source /opt/qt57/bin/qt57-env.sh - source /opt/qt57/bin/qt57-env.sh
@ -340,6 +354,7 @@ matrix:
- qt58base - qt58base
- qt58script - qt58script
- qt58tools - qt58tools
- qt58svg
script: script:
- source /opt/qt58/bin/qt58-env.sh - source /opt/qt58/bin/qt58-env.sh
@ -361,6 +376,7 @@ matrix:
- qt58base - qt58base
- qt58script - qt58script
- qt58tools - qt58tools
- qt58svg
script: script:
- source /opt/qt58/bin/qt58-env.sh - source /opt/qt58/bin/qt58-env.sh
@ -382,6 +398,7 @@ matrix:
- qt59base - qt59base
- qt59script - qt59script
- qt59tools - qt59tools
- qt59svg
script: script:
- source /opt/qt59/bin/qt59-env.sh - source /opt/qt59/bin/qt59-env.sh
@ -403,6 +420,7 @@ matrix:
- qt59base - qt59base
- qt59script - qt59script
- qt59tools - qt59tools
- qt59svg
script: script:
- source /opt/qt59/bin/qt59-env.sh - source /opt/qt59/bin/qt59-env.sh
@ -424,6 +442,7 @@ matrix:
- qt510base - qt510base
- qt510script - qt510script
- qt510tools - qt510tools
- qt510svg
script: script:
- source /opt/qt510/bin/qt510-env.sh - source /opt/qt510/bin/qt510-env.sh
@ -445,6 +464,7 @@ matrix:
- qt510base - qt510base
- qt510script - qt510script
- qt510tools - qt510tools
- qt510svg
script: script:
- source /opt/qt510/bin/qt510-env.sh - source /opt/qt510/bin/qt510-env.sh
@ -466,6 +486,7 @@ matrix:
- qt511base - qt511base
- qt511script - qt511script
- qt511tools - qt511tools
- qt511svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev
@ -489,6 +510,7 @@ matrix:
- qt511base - qt511base
- qt511script - qt511script
- qt511tools - qt511tools
- qt511svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev
@ -512,6 +534,7 @@ matrix:
- qt512base - qt512base
- qt512script - qt512script
- qt512tools - qt512tools
- qt512svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev
@ -535,6 +558,7 @@ matrix:
- qt512base - qt512base
- qt512script - qt512script
- qt512tools - qt512tools
- qt512svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev
@ -558,6 +582,7 @@ matrix:
- qt513base - qt513base
- qt513script - qt513script
- qt513tools - qt513tools
- qt513svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev
@ -581,6 +606,7 @@ matrix:
- qt513base - qt513base
- qt513script - qt513script
- qt513tools - qt513tools
- qt513svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev
@ -604,6 +630,7 @@ matrix:
- qt514base - qt514base
- qt514script - qt514script
- qt514tools - qt514tools
- qt514svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev
@ -627,6 +654,7 @@ matrix:
- qt514base - qt514base
- qt514script - qt514script
- qt514tools - qt514tools
- qt514svg
- mesa-common-dev - mesa-common-dev
- libgl1-mesa-dev - libgl1-mesa-dev

View File

@ -134,7 +134,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MAJOR = 1
LIMEREPORT_VERSION_MINOR = 5 LIMEREPORT_VERSION_MINOR = 5
LIMEREPORT_VERSION_RELEASE = 44 LIMEREPORT_VERSION_RELEASE = 45
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"

View File

@ -40,6 +40,8 @@ DialogDesignerManager::DialogDesignerManager(QObject *parent) : QObject(parent)
m_editWidgetsAction = new QAction(tr("Edit Widgets"), this); m_editWidgetsAction = new QAction(tr("Edit Widgets"), this);
m_editWidgetsAction->setIcon(QIcon(":/images/images/widgettool.png")); m_editWidgetsAction->setIcon(QIcon(":/images/images/widgettool.png"));
m_editWidgetsAction->setEnabled(false); m_editWidgetsAction->setEnabled(false);
m_editWidgetsAction->setCheckable(true);
m_editWidgetsAction->setChecked(true);
connect(m_editWidgetsAction, SIGNAL(triggered()), this, SLOT(slotEditWidgets())); connect(m_editWidgetsAction, SIGNAL(triggered()), this, SLOT(slotEditWidgets()));
connect(m_formEditor->formWindowManager(), SIGNAL(activeFormWindowChanged(QDesignerFormWindowInterface*)), connect(m_formEditor->formWindowManager(), SIGNAL(activeFormWindowChanged(QDesignerFormWindowInterface*)),
this, SLOT(slotActiveFormWindowChanged(QDesignerFormWindowInterface*)) ); this, SLOT(slotActiveFormWindowChanged(QDesignerFormWindowInterface*)) );
@ -258,6 +260,8 @@ void DialogDesignerManager::slotActiveFormWindowChanged(QDesignerFormWindowInter
{ {
if (formWindow){ if (formWindow){
m_editWidgetsAction->setEnabled(true); m_editWidgetsAction->setEnabled(true);
m_editWidgetsAction->trigger();
m_editWidgetsAction->setChecked(true);
m_activeWindowName = formWindow->objectName(); m_activeWindowName = formWindow->objectName();
} }
} }

View File

@ -55,7 +55,6 @@ ShapeItem::ShapeItem(QObject *owner, QGraphicsItem *parent)
m_shapeBrushType(Qt::NoBrush), m_shapeBrushType(Qt::NoBrush),
m_lineWidth(1), m_lineWidth(1),
m_penStyle(Qt::SolidLine), m_penStyle(Qt::SolidLine),
m_opacity(100),
m_cornerRadius(0) m_cornerRadius(0)
{ {
} }
@ -89,7 +88,7 @@ void ShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
brush.setTransform(painter->worldTransform().inverted()); brush.setTransform(painter->worldTransform().inverted());
painter->setBrush(brush); painter->setBrush(brush);
painter->setBackground(QBrush(Qt::NoBrush)); painter->setBackground(QBrush(Qt::NoBrush));
painter->setOpacity(qreal(m_opacity)/100); painter->setOpacity(qreal(opacity())/100);
QRectF rectangleRect = rect().adjusted((lineWidth() / 2), QRectF rectangleRect = rect().adjusted((lineWidth() / 2),
(lineWidth() / 2), (lineWidth() / 2),
-(lineWidth() / 2), -(lineWidth() / 2),
@ -190,27 +189,5 @@ void ShapeItem::setCornerRadius(int borderRadius)
notify("cornerRadius",oldValue,m_cornerRadius); notify("cornerRadius",oldValue,m_cornerRadius);
} }
} }
int ShapeItem::opacity() const
{
return m_opacity;
}
void ShapeItem::setOpacity(int opacity)
{
if (m_opacity!=opacity){
if (opacity < 0) {
m_opacity = 0;
}
else if (opacity > 100) {
m_opacity = 100;
}
else {
m_opacity = opacity;
}
update();
}
}
} }

View File

@ -66,8 +66,6 @@ public:
qreal lineWidth() const {return m_lineWidth;} qreal lineWidth() const {return m_lineWidth;}
Qt::PenStyle penStyle() const; Qt::PenStyle penStyle() const;
void setPenStyle(const Qt::PenStyle &value); void setPenStyle(const Qt::PenStyle &value);
int opacity() const;
void setOpacity(int opacity);
int cornerRadius() const; int cornerRadius() const;
void setCornerRadius(int cornerRadius); void setCornerRadius(int cornerRadius);
@ -81,7 +79,7 @@ private:
Qt::BrushStyle m_shapeBrushType; Qt::BrushStyle m_shapeBrushType;
qreal m_lineWidth; qreal m_lineWidth;
Qt::PenStyle m_penStyle; Qt::PenStyle m_penStyle;
int m_opacity; // int m_opacity;
int m_cornerRadius; int m_cornerRadius;
}; };

View File

@ -1408,11 +1408,13 @@ void ScriptEngineContext::qobjectToScript(const QString& name, QObject *item)
#ifdef HAVE_UI_LOADER #ifdef HAVE_UI_LOADER
#ifdef USE_QJSENGINE #ifdef USE_QJSENGINE
void registerChildObjects(ScriptEngineType* se, ScriptValueType* sv){ void registerChildObjects(ScriptEngineType* se, ScriptValueType* root, QObject* currObj){
foreach(QObject* obj, sv->toQObject()->children()){ foreach(QObject* obj, currObj->children()){
if (!obj->objectName().isEmpty()){
ScriptValueType child = se->newQObject(obj); ScriptValueType child = se->newQObject(obj);
sv->setProperty(obj->objectName(),child); root->setProperty(obj->objectName(),child);
registerChildObjects(se, &child); }
registerChildObjects(se, root, obj);
} }
} }
#endif #endif
@ -1422,7 +1424,7 @@ void ScriptEngineContext::initDialogs(){
foreach(DialogDescriber::Ptr dialog, dialogDescribers()){ foreach(DialogDescriber::Ptr dialog, dialogDescribers()){
ScriptValueType sv = se->newQObject(getDialog(dialog->name())); ScriptValueType sv = se->newQObject(getDialog(dialog->name()));
#ifdef USE_QJSENGINE #ifdef USE_QJSENGINE
registerChildObjects(se,&sv); registerChildObjects(se, &sv, sv.toQObject());
#endif #endif
se->globalObject().setProperty(dialog->name(),sv); se->globalObject().setProperty(dialog->name(),sv);
} }