0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-04-01 07:03:43 +03:00

Fixed code style

This commit is contained in:
Konstantin Makarenkov 2025-03-20 11:12:46 +03:00
parent 47aee66e55
commit c7e4028637
4 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ void BorderFrameEditor::unSetAllLines()
void BorderFrameEditor::mousePressEvent(QMouseEvent* event)
{
#if (QT_VERSION < QT_VERSION_CHECK(6,0,0))
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
int x = event->x();
int y = event->y();
#else

View File

@ -789,7 +789,6 @@ QSizeF AbstractSeriesChart::calcChartLegendSize(const QFont& font, const qreal m
return QSizeF(mw + fm.height() * 2, cw);
}
}
}
bool AbstractSeriesChart::verticalLabels(QPainter* painter, QRectF labelsRect)

View File

@ -252,7 +252,8 @@ void XMLWriter::saveTranslation(QString propertyName, QObject* item, QDomElement
languageNode.appendChild(pageNode);
foreach (ItemTranslation* translationItem, page->itemsTranslation) {
QDomElement itemNode = m_doc->createElement(translationItem->itemName);
foreach (PropertyTranslation* property, translationItem->propertyesTranslation) {
foreach (PropertyTranslation* property,
translationItem->propertyesTranslation) {
if (property->sourceValue.compare(property->value) != 0) {
QDomElement propertyNode = m_doc->createElement(property->propertyName);
propertyNode.setAttribute("Value", property->value);

View File

@ -35,8 +35,8 @@ TranslationEditor::TranslationEditor(QWidget* parent):
ui->tbStrings->setHorizontalHeaderItem(2, new QTableWidgetItem(tr("Property")));
ui->tbStrings->setHorizontalHeaderItem(3, new QTableWidgetItem(tr("Source text")));
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
m_clrReturn
= new QShortcut(QKeySequence(Qt::Key(Qt::CTRL) | Qt::Key_Return), this, SLOT(slotItemChecked()));
m_clrReturn = new QShortcut(QKeySequence(Qt::Key(Qt::CTRL) | Qt::Key_Return), this,
SLOT(slotItemChecked()));
#else
m_clrReturn
= new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return), this, SLOT(slotItemChecked()));