mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-03 20:04:43 +03:00
#467 Fixed
This commit is contained in:
@@ -1524,6 +1524,10 @@ void BaseDesignIntf::setPossibleMoveFlags(int directionsFlags)
|
||||
m_possibleMoveDirectionFlags = directionsFlags;
|
||||
}
|
||||
|
||||
int BaseDesignIntf::marginSize() const {
|
||||
return m_margin + (m_reportSettings != 0 ? m_reportSettings->baseItemPadding() : 0);
|
||||
}
|
||||
|
||||
void BaseDesignIntf::setMarginSize(int value)
|
||||
{
|
||||
if (m_margin!=value){
|
||||
|
@@ -295,9 +295,7 @@ public:
|
||||
int possibleMoveDirectionFlags() const;
|
||||
void setPossibleMoveFlags(int directionsFlags);
|
||||
|
||||
int marginSize() const {
|
||||
return m_margin + m_reportSettings != 0 ? m_reportSettings->baseItemPadding() : 0;
|
||||
}
|
||||
int marginSize() const;
|
||||
void setMarginSize(int value);
|
||||
|
||||
QString itemTypeName() const;
|
||||
|
@@ -422,11 +422,6 @@ void PageDesignIntf::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
m_selectionRect = 0;
|
||||
m_multiSelectStarted = false;
|
||||
}
|
||||
// if(m_infoPosRect)
|
||||
// {
|
||||
// delete m_infoPosRect;
|
||||
// m_infoPosRect = 0;
|
||||
// }
|
||||
QGraphicsScene::mouseReleaseEvent(event);
|
||||
}
|
||||
|
||||
@@ -524,6 +519,7 @@ BaseDesignIntf *PageDesignIntf::addReportItem(const QString &itemType, QPointF p
|
||||
if (band) {
|
||||
BaseDesignIntf *reportItem = addReportItem(itemType, band, band);
|
||||
reportItem->setPos(placePosOnGrid(band->mapFromScene(pos)));
|
||||
reportItem->setReportSettings(m_reportSettings);
|
||||
reportItem->setSize(placeSizeOnGrid(size));
|
||||
reportItem->setUnitType(pageItem()->unitType());
|
||||
return reportItem;
|
||||
|
@@ -248,16 +248,16 @@ ScriptHighlighter::ScriptHighlighter(QTextDocument* parent):
|
||||
}
|
||||
|
||||
if ( isColorDark(QPalette().window().color())){
|
||||
m_formats[NumberFormat].setForeground(Qt::darkBlue);
|
||||
m_formats[NumberFormat].setForeground(QColor("#45c6d1"));
|
||||
m_formats[StringFormat].setForeground(Qt::darkGreen);
|
||||
m_formats[KeywordFormat].setForeground(Qt::darkYellow);
|
||||
m_formats[CommentFormat].setForeground(Qt::darkGreen);
|
||||
m_formats[KeywordFormat].setForeground(QColor("#cd5125"));
|
||||
m_formats[CommentFormat].setForeground(QColor("#80807e"));
|
||||
m_formats[CommentFormat].setFontItalic(true);
|
||||
} else {
|
||||
m_formats[NumberFormat].setForeground(QColor("#ff6aad"));
|
||||
m_formats[StringFormat].setForeground(QColor("#b27f40"));
|
||||
m_formats[KeywordFormat].setForeground(QColor("#45c5d5"));
|
||||
m_formats[CommentFormat].setForeground(QColor("#a1a4a9"));
|
||||
m_formats[CommentFormat].setForeground(QColor("#a8aaab"));
|
||||
m_formats[CommentFormat].setFontItalic(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user