mirror of
				https://github.com/python-LimeReport/LimeReport.git
				synced 2025-10-31 22:01:22 +03:00 
			
		
		
		
	Finish 1.4.117
This commit is contained in:
		| @@ -120,7 +120,7 @@ RCC_DIR        = $${ARCH_DIR}/$${BUILD_TYPE}/rcc | |||||||
|  |  | ||||||
| LIMEREPORT_VERSION_MAJOR = 1 | LIMEREPORT_VERSION_MAJOR = 1 | ||||||
| LIMEREPORT_VERSION_MINOR = 4 | LIMEREPORT_VERSION_MINOR = 4 | ||||||
| LIMEREPORT_VERSION_RELEASE = 116 | LIMEREPORT_VERSION_RELEASE = 117 | ||||||
|  |  | ||||||
| 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}\\\" | ||||||
|   | |||||||
| @@ -127,17 +127,19 @@ void TextItem::processPopUpAction(QAction *action) | |||||||
|     if (action->text().compare(tr("Edit")) == 0){ |     if (action->text().compare(tr("Edit")) == 0){ | ||||||
|         this->showEditorDialog(); |         this->showEditorDialog(); | ||||||
|     } |     } | ||||||
|     if (action->text().compare(tr("Auto height")) == 0){ |     if (page()){ | ||||||
|         page()->setPropertyToSelectedItems("autoHeight",action->isChecked()); |         if (action->text().compare(tr("Auto height")) == 0){ | ||||||
|     } |             page()->setPropertyToSelectedItems("autoHeight",action->isChecked()); | ||||||
|     if (action->text().compare(tr("Allow HTML")) == 0){ |         } | ||||||
|         page()->setPropertyToSelectedItems("allowHTML",action->isChecked()); |         if (action->text().compare(tr("Allow HTML")) == 0){ | ||||||
|     } |             page()->setPropertyToSelectedItems("allowHTML",action->isChecked()); | ||||||
|     if (action->text().compare(tr("Allow HTML in fields")) == 0){ |         } | ||||||
|         page()->setPropertyToSelectedItems("allowHTMLInFields",action->isChecked()); |         if (action->text().compare(tr("Allow HTML in fields")) == 0){ | ||||||
|     } |             page()->setPropertyToSelectedItems("allowHTMLInFields",action->isChecked()); | ||||||
|     if (action->text().compare(tr("Stretch to max height")) == 0){ |         } | ||||||
|         page()->setPropertyToSelectedItems("stretchToMaxHeight",action->isChecked()); |         if (action->text().compare(tr("Stretch to max height")) == 0){ | ||||||
|  |             page()->setPropertyToSelectedItems("stretchToMaxHeight",action->isChecked()); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|     if (action->text().compare(tr("Transparent")) == 0){ |     if (action->text().compare(tr("Transparent")) == 0){ | ||||||
|         if (action->isChecked()){ |         if (action->isChecked()){ | ||||||
|   | |||||||
| @@ -556,10 +556,12 @@ void BaseDesignIntf::mouseMoveEvent(QGraphicsSceneMouseEvent *event) | |||||||
|  |  | ||||||
|         setItemPos(QPointF(div(m_startPos.x(), hStep).quot * hStep, div(m_startPos.y(), vStep).quot * vStep) - delta); |         setItemPos(QPointF(div(m_startPos.x(), hStep).quot * hStep, div(m_startPos.y(), vStep).quot * vStep) - delta); | ||||||
|  |  | ||||||
|         if (!isBand() && scene()->selectedItems().count()>1) |         if (page()){ | ||||||
|             moveSelectedItems(tmpPos - pos()); |             if (!isBand() && page()->selectedItems().count()>1) | ||||||
|         if (scene()->selectedItems().count()==1 && (page()->magneticMovement())) |                 moveSelectedItems(tmpPos - pos()); | ||||||
|             page()->itemMoved(this); |             if (page()->selectedItems().count()==1 && (page()->magneticMovement())) | ||||||
|  |                 page()->itemMoved(this); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -843,29 +845,29 @@ void BaseDesignIntf::setBorderLineSize(int value) | |||||||
|  |  | ||||||
| void BaseDesignIntf::moveRight() | void BaseDesignIntf::moveRight() | ||||||
| { | { | ||||||
|     if (!m_fixedPos) setItemPos(pos().x() + page()->horizontalGridStep(), pos().y()); |     if (!m_fixedPos && page()) setItemPos(pos().x() + page()->horizontalGridStep(), pos().y()); | ||||||
| } | } | ||||||
|  |  | ||||||
| void BaseDesignIntf::moveLeft() | void BaseDesignIntf::moveLeft() | ||||||
| { | { | ||||||
|     if (!m_fixedPos) setItemPos(pos().x() - page()->horizontalGridStep(), pos().y()); |     if (!m_fixedPos && page()) setItemPos(pos().x() - page()->horizontalGridStep(), pos().y()); | ||||||
| } | } | ||||||
|  |  | ||||||
| void BaseDesignIntf::moveDown() | void BaseDesignIntf::moveDown() | ||||||
| { | { | ||||||
|     if (!m_fixedPos) setItemPos(pos().x(), pos().y() + page()->verticalGridStep()); |     if (!m_fixedPos && page()) setItemPos(pos().x(), pos().y() + page()->verticalGridStep()); | ||||||
| } | } | ||||||
|  |  | ||||||
| void BaseDesignIntf::moveUp() | void BaseDesignIntf::moveUp() | ||||||
| { | { | ||||||
|     if (!m_fixedPos) setItemPos(pos().x(), pos().y() - page()->verticalGridStep()); |     if (!m_fixedPos && page()) setItemPos(pos().x(), pos().y() - page()->verticalGridStep()); | ||||||
| } | } | ||||||
|  |  | ||||||
| void BaseDesignIntf::sizeRight() | void BaseDesignIntf::sizeRight() | ||||||
| { | { | ||||||
|     if ((m_possibleResizeDirectionFlags & ResizeLeft) || |     if ((m_possibleResizeDirectionFlags & ResizeLeft) || | ||||||
|          (m_possibleResizeDirectionFlags & ResizeRight)) { |          (m_possibleResizeDirectionFlags & ResizeRight)) { | ||||||
|         setWidth(width() + page()->horizontalGridStep()); |         if (page()) setWidth(width() + page()->horizontalGridStep()); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -873,7 +875,7 @@ void BaseDesignIntf::sizeLeft() | |||||||
| { | { | ||||||
|     if ((m_possibleResizeDirectionFlags & ResizeLeft) || |     if ((m_possibleResizeDirectionFlags & ResizeLeft) || | ||||||
|          (m_possibleResizeDirectionFlags & ResizeRight)) { |          (m_possibleResizeDirectionFlags & ResizeRight)) { | ||||||
|         setWidth(width() - page()->horizontalGridStep()); |         if(page()) setWidth(width() - page()->horizontalGridStep()); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -881,7 +883,7 @@ void BaseDesignIntf::sizeUp() | |||||||
| { | { | ||||||
|     if ((m_possibleResizeDirectionFlags & ResizeTop) || |     if ((m_possibleResizeDirectionFlags & ResizeTop) || | ||||||
|          (m_possibleResizeDirectionFlags & ResizeBottom)) { |          (m_possibleResizeDirectionFlags & ResizeBottom)) { | ||||||
|         setHeight(height() - page()->verticalGridStep()); |         if (page()) setHeight(height() - page()->verticalGridStep()); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -889,7 +891,7 @@ void BaseDesignIntf::sizeDown() | |||||||
| { | { | ||||||
|     if ((m_possibleResizeDirectionFlags & ResizeTop) || |     if ((m_possibleResizeDirectionFlags & ResizeTop) || | ||||||
|          (m_possibleResizeDirectionFlags & ResizeBottom)) { |          (m_possibleResizeDirectionFlags & ResizeBottom)) { | ||||||
|         setHeight(height() + page()->verticalGridStep()); |         if (page()) setHeight(height() + page()->verticalGridStep()); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -1384,7 +1386,7 @@ void BaseDesignIntf::collectionLoadFinished(const QString &collectionName) | |||||||
|             foreach(QObject * obj, QObject::children()) { |             foreach(QObject * obj, QObject::children()) { | ||||||
| #endif | #endif | ||||||
|                 BaseDesignIntf *item = dynamic_cast<BaseDesignIntf *>(obj); |                 BaseDesignIntf *item = dynamic_cast<BaseDesignIntf *>(obj); | ||||||
|                 if (item) { |                 if (item && page()) { | ||||||
|                     page()->registerItem(item); |                     page()->registerItem(item); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -824,10 +824,9 @@ void PageItemDesignIntf::bandGeometryChanged(QObject* object, QRectF newGeometry | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     if (curIndex != band->bandIndex()){ |     if (curIndex != band->bandIndex() && itemMode() == DesignMode){ | ||||||
|         //swapBands(band, bandToSwap); |         if (page()) | ||||||
|         //page()->saveCommand(BandSwapCommand::create(page(), band->objectName(), bandToSwap->objectName()), true); |             page()->saveCommand(BandMoveFromToCommand::create(page(), band->bandIndex(), bandToSwap->bandIndex()), true); | ||||||
|         page()->saveCommand(BandMoveFromToCommand::create(page(), band->bandIndex(), bandToSwap->bandIndex()), true); |  | ||||||
|     } |     } | ||||||
|     relocateBands(); |     relocateBands(); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user