couple more fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5626 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-13 06:26:39 +00:00
parent 29e606295d
commit 5091380d6b
2 changed files with 31 additions and 56 deletions

View File

@ -65,12 +65,13 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
// OK, Qt is REALLY broken. We have to hard
// code the menu structure here.
QListViewItem * adv(new QListViewItem(prefsLV, _("Advanced settings")));
adv->setSelectable(false);
QListViewItem * lan(new QListViewItem(prefsLV, _("Language settings")));
lan->setSelectable(false);
QListViewItem * lnf(new QListViewItem(prefsLV, _("Look and feel")));
lnf->setSelectable(false);
lnf->setOpen(true);
QListViewItem * lan(new QListViewItem(prefsLV, lnf, _("Language settings")));
lan->setSelectable(false);
QListViewItem * adv(new QListViewItem(prefsLV, lan, _("Advanced settings")));
adv->setSelectable(false);
asciiModule = new QPrefAsciiModule(prefsWS);
dateModule = new QPrefDateModule(prefsWS);
@ -150,6 +151,9 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
pane_map_[i] = printerModule;
prefsLV->setMinimumSize(prefsLV->sizeHint());
// Qt sucks
resize(minimumSize());
}

View File

@ -17,6 +17,13 @@
<height>192</height>
</rect>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>caption</name>
<string>Preferences</string>
@ -131,42 +138,6 @@
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>titleL</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>text</name>
<string>title here</string>
</property>
</widget>
<widget>
<class>Line</class>
<property stdset="1">
<name>name</name>
<cstring>Line1</cstring>
</property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
</sizepolicy>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Horizontal</enum>
</property>
</widget>
<widget>
<class>QWidgetStack</class>
<property stdset="1">
@ -188,15 +159,15 @@
<column>
<property>
<name>text</name>
<string>Column 1</string>
<string>Preferences</string>
</property>
<property>
<name>clickable</name>
<bool>true</bool>
<bool>false</bool>
</property>
<property>
<name>resizeable</name>
<bool>true</bool>
<bool>false</bool>
</property>
</column>
<property stdset="1">
@ -206,7 +177,7 @@
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
</sizepolicy>
</property>