Skip to content

Commit

Permalink
[IDA] fixed issue #16 (GUI resize in high-dpi resolution/font size)
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ext committed Oct 8, 2016
1 parent f238b96 commit 260330c
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 27 deletions.
17 changes: 16 additions & 1 deletion labeless_ida/ui/choosememorydialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,26 @@
<height>579</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Choose memory</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0">
<property name="margin">
<property name="leftMargin">
<number>6</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>6</number>
</property>
<item>
Expand Down
93 changes: 67 additions & 26 deletions labeless_ida/ui/settingsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,30 @@
<rect>
<x>0</x>
<y>0</y>
<width>485</width>
<height>433</height>
<width>480</width>
<height>441</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Labeless configuration</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="margin">
<property name="leftMargin">
<number>6</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>6</number>
</property>
<item>
Expand All @@ -27,7 +42,16 @@
<string>Common</string>
</attribute>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<property name="margin">
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item>
Expand All @@ -37,6 +61,12 @@
</property>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
Expand All @@ -57,7 +87,7 @@
<number>9</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3" stretch="0,0,0,0,0,1,0">
<layout class="QHBoxLayout" name="horizontalLayout_3" stretch="0,0,0,0,0,0,0">
<item>
<widget class="QLabel" name="label">
<property name="text">
Expand Down Expand Up @@ -223,30 +253,11 @@
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>120</width>
<height>16777215</height>
</size>
</property>
<property name="placeholderText">
<string>0x400000</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
Expand Down Expand Up @@ -504,6 +515,12 @@ another instruction like:</string>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QWidget" name="wTop" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
Expand All @@ -517,7 +534,16 @@ another instruction like:</string>
</size>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_5" stretch="0,1">
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
Expand Down Expand Up @@ -773,8 +799,23 @@ p, li { white-space: pre-wrap; }
</item>
<item>
<widget class="QWidget" name="widget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,0,0,0">
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
Expand Down

0 comments on commit 260330c

Please sign in to comment.