Dynamically set size of the settings dialog

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@155 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 16 years ago
parent e94a4244c3
commit 2149d4cfe1
  1. 3
      src/dialogs/SettingsDlg.cpp
  2. 36
      src/forms/SettingsDlg.ui

@ -162,6 +162,9 @@ CSettingsDlg::CSettingsDlg(QWidget* parent):QDialog(parent,Qt::Dialog)
Edit_GlobalShortcut->setShortcut(config->globalShortcut());
CheckBox_EntryTitlesMatch->setChecked(config->entryTitlesMatch());
#endif
adjustSize();
resize( size() + QSize(50,20) );
}
CSettingsDlg::~CSettingsDlg()

@ -5,28 +5,10 @@
<rect>
<x>0</x>
<y>0</y>
<width>571</width>
<height>440</height>
<width>606</width>
<height>475</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>571</width>
<height>440</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>571</width>
<height>441</height>
</size>
</property>
<property name="windowTitle" >
<string>Settings</string>
</property>
@ -331,8 +313,8 @@
</property>
<property name="sizeHint" >
<size>
<width>531</width>
<height>16</height>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
@ -756,7 +738,7 @@
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
<height>0</height>
</size>
</property>
</spacer>
@ -906,7 +888,7 @@
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
<height>0</height>
</size>
</property>
</spacer>
@ -943,7 +925,7 @@
<property name="sizeHint" >
<size>
<width>20</width>
<height>131</height>
<height>0</height>
</size>
</property>
</spacer>
@ -1091,7 +1073,7 @@
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
<height>0</height>
</size>
</property>
</spacer>
@ -1310,7 +1292,7 @@
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
<height>0</height>
</size>
</property>
</spacer>