From d4fb85dafd0d014479fbb00b71c63a15d2d5c9f2 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Sat, 19 Jan 2019 00:04:01 +0300 Subject: [PATCH] TextItem editor size restoring has been fixed --- common.pri | 2 +- limereport/objectinspector/propertyItems/lrcontentpropitem.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common.pri b/common.pri index 38ad957..337b2c1 100644 --- a/common.pri +++ b/common.pri @@ -77,7 +77,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 4 -LIMEREPORT_VERSION_RELEASE = 118 +LIMEREPORT_VERSION_RELEASE = 119 LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"' DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\" diff --git a/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp b/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp index 1b49128..53c9806 100644 --- a/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp +++ b/limereport/objectinspector/propertyItems/lrcontentpropitem.cpp @@ -30,6 +30,7 @@ void ContentEditor::editButtonClicked() dialog->setWindowTitle(propertyName()); QWidget* editor = dynamic_cast(m_object)->defaultEditor(); dialog->layout()->addWidget(editor); + dialog->resize(editor->size()); connect(editor,SIGNAL(destroyed()),dialog,SLOT(close())); connect(editor,SIGNAL(destroyed()),this,SIGNAL(editingFinished())); dialog->exec();