0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 08:28:06 +03:00

Define code style and format all source file using clang-format-14

except those placed in 3rdparty directories.
This commit is contained in:
Андрей Лухнов
2024-09-04 17:31:16 +03:00
parent c5b9ac265d
commit 0fca7169d3
285 changed files with 19120 additions and 17875 deletions

View File

@@ -29,22 +29,24 @@
****************************************************************************/
#include "lritemeditorwidget.h"
namespace LimeReport{
namespace LimeReport {
void ItemEditorWidget::setItem(BaseDesignIntf* item)
{
if (m_item!=item){
if (m_item) m_item->disconnect(this);
m_item=item;
connect(m_item,SIGNAL(destroyed(QObject*)),this,SLOT(slotItemDestroyed(QObject*)));
connect(m_item,SIGNAL(propertyChanged(QString,QVariant,QVariant)),
this,SLOT(slotPropertyChanged(QString,QVariant,QVariant)));
if (m_item != item) {
if (m_item)
m_item->disconnect(this);
m_item = item;
connect(m_item, SIGNAL(destroyed(QObject*)), this, SLOT(slotItemDestroyed(QObject*)));
connect(m_item, SIGNAL(propertyChanged(QString, QVariant, QVariant)), this,
SLOT(slotPropertyChanged(QString, QVariant, QVariant)));
setEnabled(false);
setItemEvent(item);
}
}
void ItemEditorWidget::properyChangedEvent(const QString& propertName, const QVariant& oldValue, const QVariant& newValue)
void ItemEditorWidget::properyChangedEvent(const QString& propertName, const QVariant& oldValue,
const QVariant& newValue)
{
Q_UNUSED(propertName)
Q_UNUSED(oldValue)
@@ -53,19 +55,16 @@ void ItemEditorWidget::properyChangedEvent(const QString& propertName, const QVa
void ItemEditorWidget::slotItemDestroyed(QObject* item)
{
if (item==m_item) {
if (item == m_item) {
m_item = 0;
setEnabled(false);
}
}
void ItemEditorWidget::slotPropertyChanged(const QString& propertName, const QVariant& oldValue, const QVariant& newValue)
void ItemEditorWidget::slotPropertyChanged(const QString& propertName, const QVariant& oldValue,
const QVariant& newValue)
{
properyChangedEvent(propertName,oldValue,newValue);
properyChangedEvent(propertName, oldValue, newValue);
}
}
} // namespace LimeReport