mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-25 13:04:38 +03:00
Page renaming has been fixed
This commit is contained in:
commit
dc0be65fa3
@ -62,7 +62,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 4
|
LIMEREPORT_VERSION_MINOR = 4
|
||||||
LIMEREPORT_VERSION_RELEASE = 39
|
LIMEREPORT_VERSION_RELEASE = 40
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
||||||
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
||||||
|
@ -619,7 +619,12 @@ void ReportDesignWidget::slotPagePropertyObjectNameChanged(const QString &oldVal
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < m_tabWidget->count(); ++i ){
|
for (int i = 0; i < m_tabWidget->count(); ++i ){
|
||||||
if (m_tabWidget->tabText(i).compare(oldValue) == 0){
|
if (m_tabWidget->tabText(i).compare(oldValue) == 0){
|
||||||
m_tabWidget->setTabText(i, newValue);
|
QGraphicsView* view = dynamic_cast<QGraphicsView*>(m_tabWidget->widget(i));
|
||||||
|
if (view){
|
||||||
|
PageDesignIntf* page = dynamic_cast<PageDesignIntf*>(view->scene());
|
||||||
|
if (page->pageItem() == sender())
|
||||||
|
m_tabWidget->setTabText(i, newValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user