From b068ba0a7629f21e5d4f31a280da7e1d2f28f0b8 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sat, 19 Aug 2017 01:24:20 +0300 Subject: [PATCH] Page renaming has been fixed --- common.pri | 2 +- limereport/lrreportdesignwidget.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common.pri b/common.pri index 52d82ec..d47159f 100644 --- a/common.pri +++ b/common.pri @@ -62,7 +62,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 4 -LIMEREPORT_VERSION_RELEASE = 39 +LIMEREPORT_VERSION_RELEASE = 40 LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"' DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\" diff --git a/limereport/lrreportdesignwidget.cpp b/limereport/lrreportdesignwidget.cpp index 65fef1c..e6c49c9 100644 --- a/limereport/lrreportdesignwidget.cpp +++ b/limereport/lrreportdesignwidget.cpp @@ -619,7 +619,12 @@ void ReportDesignWidget::slotPagePropertyObjectNameChanged(const QString &oldVal { for (int i = 0; i < m_tabWidget->count(); ++i ){ if (m_tabWidget->tabText(i).compare(oldValue) == 0){ - m_tabWidget->setTabText(i, newValue); + QGraphicsView* view = dynamic_cast(m_tabWidget->widget(i)); + if (view){ + PageDesignIntf* page = dynamic_cast(view->scene()); + if (page->pageItem() == sender()) + m_tabWidget->setTabText(i, newValue); + } } } }