The Icon Mode allow to get rid of the scrollbar (selection with arrow
keys still work). See attached screenshot.
Comment? Objection?
Abdel.
Index: QDelimiterDialog.C
===================================================================
--- QDelimiterDialog.C (revision 17858)
+++ QDelimiterDialog.C (working copy)
@@ -96,6 +96,9 @@
setWindowTitle(qt_("LyX: Delimiters"));
setFocusProxy(leftLW);
+
+ leftLW->setViewMode(QListView::IconMode);
+ rightLW->setViewMode(QListView::IconMode);
typedef std::map<char_type, QListWidgetItem *> ListItems;
ListItems list_items;
@@ -114,6 +117,7 @@
lwi->setFont(symbol_font);
list_items[ms.unicode] = lwi;
leftLW->addItem(lwi);
+// rightLW->addItem(lwi->clone());
}
for (int i = 0; i != leftLW->count(); ++i) {
Index: ui/QDelimiterUi.ui
===================================================================
--- ui/QDelimiterUi.ui (revision 17856)
+++ ui/QDelimiterUi.ui (working copy)
@@ -5,13 +5,13 @@
<rect>
<x>0</x>
<y>0</y>
- <width>286</width>
- <height>537</height>
+ <width>300</width>
+ <height>330</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
- <hsizetype>13</hsizetype>
+ <hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
@@ -19,8 +19,8 @@
</property>
<property name="minimumSize" >
<size>
- <width>200</width>
- <height>447</height>
+ <width>300</width>
+ <height>330</height>
</size>
</property>
<property name="maximumSize" >
@@ -35,23 +35,23 @@
<property name="sizeGripEnabled" >
<bool>true</bool>
</property>
- <widget class="QWidget" name="verticalLayout" >
+ <widget class="QWidget" name="" >
<property name="geometry" >
<rect>
- <x>10</x>
- <y>10</y>
- <width>261</width>
- <height>511</height>
+ <x>0</x>
+ <y>0</y>
+ <width>291</width>
+ <height>321</height>
</rect>
</property>
- <layout class="QVBoxLayout" >
+ <layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
- <item>
+ <item row="3" column="0" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
@@ -60,11 +60,54 @@
<number>6</number>
</property>
<item>
+ <widget class="QLabel" name="label" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text" >
+ <string>&Size:</string>
+ </property>
+ <property name="alignment" >
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="buddy" >
+ <cstring>sizeCO</cstring>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="sizeCO" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="0" column="0" >
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
<widget class="QListWidget" name="leftLW" >
<property name="sizePolicy" >
<sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>3</vsizetype>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@@ -102,8 +145,8 @@
<widget class="QListWidget" name="rightLW" >
<property name="sizePolicy" >
<sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>3</vsizetype>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@@ -126,6 +169,9 @@
<height>16</height>
</size>
</property>
+ <property name="resizeMode" >
+ <enum>QListView::Adjust</enum>
+ </property>
<property name="spacing" >
<number>0</number>
</property>
@@ -133,52 +179,7 @@
</item>
</layout>
</item>
- <item>
- <widget class="QLabel" name="texCodeL" >
- <property name="sizePolicy" >
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text" >
- <string>TeX Code:</string>
- </property>
- <property name="textFormat" >
- <enum>Qt::AutoText</enum>
- </property>
- <property name="alignment" >
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- <property name="wordWrap" >
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QCheckBox" name="matchCB" >
- <property name="sizePolicy" >
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>0</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="toolTip" >
- <string>Match delimiter types</string>
- </property>
- <property name="text" >
- <string>&Keep matched</string>
- </property>
- <property name="checked" >
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
+ <item row="4" column="0" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
@@ -187,49 +188,6 @@
<number>6</number>
</property>
<item>
- <widget class="QLabel" name="label" >
- <property name="sizePolicy" >
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>0</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text" >
- <string>&Size:</string>
- </property>
- <property name="alignment" >
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- <property name="buddy" >
- <cstring>sizeCO</cstring>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QComboBox" name="sizeCO" >
- <property name="sizePolicy" >
- <sizepolicy>
- <hsizetype>5</hsizetype>
- <vsizetype>0</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" >
- <property name="margin" >
- <number>0</number>
- </property>
- <property name="spacing" >
- <number>6</number>
- </property>
- <item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
@@ -280,6 +238,51 @@
</item>
</layout>
</item>
+ <item row="1" column="0" >
+ <widget class="QLabel" name="texCodeL" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text" >
+ <string>TeX Code:</string>
+ </property>
+ <property name="textFormat" >
+ <enum>Qt::AutoText</enum>
+ </property>
+ <property name="alignment" >
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ <property name="wordWrap" >
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0" >
+ <widget class="QCheckBox" name="matchCB" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>3</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip" >
+ <string>Match delimiter types</string>
+ </property>
+ <property name="text" >
+ <string>&Keep matched</string>
+ </property>
+ <property name="checked" >
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</widget>
