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:
parent
47aee66e55
commit
c7e4028637
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user