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,58 +9,66 @@
<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"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="argText">
<x>10</x> <property name="text">
<y>10</y> <string>Command line arguments:</string>
<width>301</width> </property>
<height>81</height> </widget>
</rect> </item>
</property> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <widget class="QPlainTextEdit" name="argEdit">
<item> <property name="sizePolicy">
<widget class="QLabel" name="argText"> <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
<property name="text"> <horstretch>0</horstretch>
<string>Command line arguments:</string> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> <property name="minimumSize">
<item> <size>
<widget class="QTextEdit" name="argEdit"> <width>0</width>
<property name="maximumSize"> <height>35</height>
<size> </size>
<width>382</width> </property>
<height>16777215</height> <property name="maximumSize">
</size> <size>
</property> <width>16777215</width>
<property name="text"> <height>16777215</height>
<string notr="true"/> </size>
</property> </property>
<property name="placeholderText"> </widget>
<string notr="true"/> </item>
</property> <item>
</widget> <widget class="QDialogButtonBox" name="buttonBox">
</item> <property name="orientation">
<item> <enum>Qt::Horizontal</enum>
<widget class="QDialogButtonBox" name="buttonBox"> </property>
<property name="orientation"> <property name="standardButtons">
<enum>Qt::Horizontal</enum> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property> </property>
<property name="standardButtons"> </widget>
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </item>
</property> </layout>
</widget>
</item>
</layout>
</widget>
</widget> </widget>
<resources/> <resources/>
<connections> <connections>