diff --git a/agui2/src/Graphics/Dialogs/InputDialog.cpp b/agui2/src/Graphics/Dialogs/InputDialog.cpp index bc76f9e7edc0ae9cde1e615bfa94faba399875bc..8cbdb16cf0ab2e7fdbed6b267d74362b4817c582 100644 --- a/agui2/src/Graphics/Dialogs/InputDialog.cpp +++ b/agui2/src/Graphics/Dialogs/InputDialog.cpp @@ -50,6 +50,7 @@ void InputDialog::setAutomaton(std::shared_ptr<abstraction::OperationAbstraction if (auto image = Converter::toPNG(this->automaton)) { ui->label_image->setPixmap(QPixmap::fromImage(*image)); + ui->scrollArea->setFixedSize(ui->tab_image->size()); this->setTabShown(ui->tab_image, true); } else { diff --git a/agui2/src/Graphics/Dialogs/InputDialog.ui b/agui2/src/Graphics/Dialogs/InputDialog.ui index 9d53ddbc7dc8c496008a2d956c8eaa755a65c075..1dd4770689b480b5efb094e1284da482453fed2e 100644 --- a/agui2/src/Graphics/Dialogs/InputDialog.ui +++ b/agui2/src/Graphics/Dialogs/InputDialog.ui @@ -38,7 +38,7 @@ <item> <widget class="QTabWidget" name="tabWidget"> <property name="currentIndex"> - <number>1</number> + <number>2</number> </property> <widget class="QWidget" name="tab_xml"> <attribute name="title"> @@ -66,10 +66,29 @@ </attribute> <layout class="QGridLayout" name="gridLayout_3"> <item row="0" column="0"> - <widget class="QLabel" name="label_image"> - <property name="text"> - <string/> + <widget class="QScrollArea" name="scrollArea"> + <property name="widgetResizable"> + <bool>true</bool> </property> + <widget class="QWidget" name="scrollAreaWidgetContents"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>546</width> + <height>501</height> + </rect> + </property> + <layout class="QGridLayout" name="gridLayout_4"> + <item row="0" column="0"> + <widget class="QLabel" name="label_image"> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> + </widget> </widget> </item> </layout>