mirror of
https://github.com/fralx/LimeReport.git
synced 2025-04-02 15:33:46 +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)
|
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 x = event->x();
|
||||||
int y = event->y();
|
int y = event->y();
|
||||||
#else
|
#else
|
||||||
|
@ -789,7 +789,6 @@ QSizeF AbstractSeriesChart::calcChartLegendSize(const QFont& font, const qreal m
|
|||||||
return QSizeF(mw + fm.height() * 2, cw);
|
return QSizeF(mw + fm.height() * 2, cw);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AbstractSeriesChart::verticalLabels(QPainter* painter, QRectF labelsRect)
|
bool AbstractSeriesChart::verticalLabels(QPainter* painter, QRectF labelsRect)
|
||||||
|
@ -252,7 +252,8 @@ void XMLWriter::saveTranslation(QString propertyName, QObject* item, QDomElement
|
|||||||
languageNode.appendChild(pageNode);
|
languageNode.appendChild(pageNode);
|
||||||
foreach (ItemTranslation* translationItem, page->itemsTranslation) {
|
foreach (ItemTranslation* translationItem, page->itemsTranslation) {
|
||||||
QDomElement itemNode = m_doc->createElement(translationItem->itemName);
|
QDomElement itemNode = m_doc->createElement(translationItem->itemName);
|
||||||
foreach (PropertyTranslation* property, translationItem->propertyesTranslation) {
|
foreach (PropertyTranslation* property,
|
||||||
|
translationItem->propertyesTranslation) {
|
||||||
if (property->sourceValue.compare(property->value) != 0) {
|
if (property->sourceValue.compare(property->value) != 0) {
|
||||||
QDomElement propertyNode = m_doc->createElement(property->propertyName);
|
QDomElement propertyNode = m_doc->createElement(property->propertyName);
|
||||||
propertyNode.setAttribute("Value", property->value);
|
propertyNode.setAttribute("Value", property->value);
|
||||||
|
@ -35,8 +35,8 @@ TranslationEditor::TranslationEditor(QWidget* parent):
|
|||||||
ui->tbStrings->setHorizontalHeaderItem(2, new QTableWidgetItem(tr("Property")));
|
ui->tbStrings->setHorizontalHeaderItem(2, new QTableWidgetItem(tr("Property")));
|
||||||
ui->tbStrings->setHorizontalHeaderItem(3, new QTableWidgetItem(tr("Source text")));
|
ui->tbStrings->setHorizontalHeaderItem(3, new QTableWidgetItem(tr("Source text")));
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||||
m_clrReturn
|
m_clrReturn = new QShortcut(QKeySequence(Qt::Key(Qt::CTRL) | Qt::Key_Return), this,
|
||||||
= new QShortcut(QKeySequence(Qt::Key(Qt::CTRL) | Qt::Key_Return), this, SLOT(slotItemChecked()));
|
SLOT(slotItemChecked()));
|
||||||
#else
|
#else
|
||||||
m_clrReturn
|
m_clrReturn
|
||||||
= new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return), this, SLOT(slotItemChecked()));
|
= new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return), this, SLOT(slotItemChecked()));
|
||||||
|
Loading…
Reference in New Issue
Block a user