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 // OK, Qt is REALLY broken. We have to hard
// code the menu structure here. // 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"))); QListViewItem * lnf(new QListViewItem(prefsLV, _("Look and feel")));
lnf->setSelectable(false); 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); asciiModule = new QPrefAsciiModule(prefsWS);
dateModule = new QPrefDateModule(prefsWS); dateModule = new QPrefDateModule(prefsWS);
@ -150,6 +151,9 @@ QPrefsDialog::QPrefsDialog(QPrefs * form)
pane_map_[i] = printerModule; pane_map_[i] = printerModule;
prefsLV->setMinimumSize(prefsLV->sizeHint()); prefsLV->setMinimumSize(prefsLV->sizeHint());
// Qt sucks
resize(minimumSize());
} }

View File

@ -17,6 +17,13 @@
<height>192</height> <height>192</height>
</rect> </rect>
</property> </property>
<property stdset="1">
<name>sizePolicy</name>
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
</sizepolicy>
</property>
<property stdset="1"> <property stdset="1">
<name>caption</name> <name>caption</name>
<string>Preferences</string> <string>Preferences</string>
@ -131,42 +138,6 @@
<name>spacing</name> <name>spacing</name>
<number>6</number> <number>6</number>
</property> </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> <widget>
<class>QWidgetStack</class> <class>QWidgetStack</class>
<property stdset="1"> <property stdset="1">
@ -188,15 +159,15 @@
<column> <column>
<property> <property>
<name>text</name> <name>text</name>
<string>Column 1</string> <string>Preferences</string>
</property> </property>
<property> <property>
<name>clickable</name> <name>clickable</name>
<bool>true</bool> <bool>false</bool>
</property> </property>
<property> <property>
<name>resizeable</name> <name>resizeable</name>
<bool>true</bool> <bool>false</bool>
</property> </property>
</column> </column>
<property stdset="1"> <property stdset="1">
@ -206,7 +177,7 @@
<property stdset="1"> <property stdset="1">
<name>sizePolicy</name> <name>sizePolicy</name>
<sizepolicy> <sizepolicy>
<hsizetype>1</hsizetype> <hsizetype>5</hsizetype>
<vsizetype>7</vsizetype> <vsizetype>7</vsizetype>
</sizepolicy> </sizepolicy>
</property> </property>