Increase input field size when resizing NativeDebugDialog. (#1930)

This commit is contained in:
karliss 2019-12-16 00:16:11 +02:00 committed by Itay Cohen
parent 64371bb07a
commit 6b2433e986
2 changed files with 56 additions and 48 deletions

View File

@ -20,6 +20,6 @@ QString NativeDebugDialog::getArgs() const
void NativeDebugDialog::setArgs(const QString &args) void NativeDebugDialog::setArgs(const QString &args)
{ {
ui->argEdit->setText(args); ui->argEdit->setPlainText(args);
ui->argEdit->selectAll(); ui->argEdit->selectAll();
} }

View File

@ -9,22 +9,25 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>320</width> <width>350</width>
<height>101</height> <height>113</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string notr="true">Native debugging configuration</string> <string notr="true">Native debugging configuration</string>
</property> </property>
<widget class="QWidget" name="verticalLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>301</width>
<height>81</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QLabel" name="argText"> <widget class="QLabel" name="argText">
@ -34,18 +37,24 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QTextEdit" name="argEdit"> <widget class="QPlainTextEdit" name="argEdit">
<property name="maximumSize"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size> <size>
<width>382</width> <width>0</width>
<height>16777215</height> <height>35</height>
</size> </size>
</property> </property>
<property name="text"> <property name="maximumSize">
<string notr="true"/> <size>
</property> <width>16777215</width>
<property name="placeholderText"> <height>16777215</height>
<string notr="true"/> </size>
</property> </property>
</widget> </widget>
</item> </item>
@ -61,7 +70,6 @@
</item> </item>
</layout> </layout>
</widget> </widget>
</widget>
<resources/> <resources/>
<connections> <connections>
<connection> <connection>