Commit c1ae67f2 authored by Dark Templar's avatar Dark Templar
Browse files

radselect: allow to configure font of results list

parent d3a828c9
...@@ -54,11 +54,6 @@ ...@@ -54,11 +54,6 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="font">
<font>
<pointsize>25</pointsize>
</font>
</property>
<property name="horizontalScrollBarPolicy"> <property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum> <enum>Qt::ScrollBarAlwaysOff</enum>
</property> </property>
......
...@@ -4,8 +4,17 @@ ...@@ -4,8 +4,17 @@
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" > http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<include>kfontrequester.h</include> <include>kfontrequester.h</include>
<include>QFontDatabase</include>
<include>qfont.h</include>
<kcfgfile name="kitenradselectrc"/> <kcfgfile name="kitenradselectrc"/>
<group name="Options"> <group name="Options">
<entry key="resultListFont" type="Font">
<code>
QFont resultListFnt = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
resultListFnt.setPointSize( 25 );
</code>
<default>resultListFnt</default>
</entry>
<entry key="font" type="Font"></entry> <entry key="font" type="Font"></entry>
<entry key="closeOnSearch" type="Bool"> <entry key="closeOnSearch" type="Bool">
<label>Do we close this program when searching?</label> <label>Do we close this program when searching?</label>
......
...@@ -26,11 +26,37 @@ ...@@ -26,11 +26,37 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" > <layout class="QGridLayout" >
<property name="margin" > <property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<item> <item row="0" column="0">
<widget class="QLabel" name="resultListFontSize_label" >
<property name="text" >
<string>Search Results Font:</string>
</property>
<property name="toolTip" stdset="0" >
<string>The font for the main kanji/kana entry in list view</string>
</property>
<property name="whatsThis" stdset="0" >
<string>Use this to adjust the result list font</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="KFontRequester" name="kcfg_resultListFont" >
<property name="sampleText" >
<string>漢字 かな</string>
</property>
<property name="toolTip" stdset="0" >
<string>The font for the main kanji/kana entry in list view</string>
</property>
<property name="whatsThis" stdset="0" >
<string>Use this to adjust the result list font</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="fontSize_label" > <widget class="QLabel" name="fontSize_label" >
<property name="text" > <property name="text" >
<string>Button Font:</string> <string>Button Font:</string>
...@@ -43,7 +69,7 @@ ...@@ -43,7 +69,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1">
<widget class="KFontRequester" name="kcfg_font" > <widget class="KFontRequester" name="kcfg_font" >
<property name="sampleText" > <property name="sampleText" >
<string>漢字 かな</string> <string>漢字 かな</string>
......
...@@ -209,6 +209,7 @@ void RadSelectView::loadSettings() ...@@ -209,6 +209,7 @@ void RadSelectView::loadSettings()
{ {
//TODO: Add preferences for what to do on single/double click //TODO: Add preferences for what to do on single/double click
//Suggested options: Lookup in Kiten, Add to Search Bar, Copy to Clipboard //Suggested options: Lookup in Kiten, Add to Search Bar, Copy to Clipboard
selected_radicals->setFont( RadSelectConfigSkeleton::self()->resultListFont() );
m_buttongrid->setFont( RadSelectConfigSkeleton::self()->font() ); m_buttongrid->setFont( RadSelectConfigSkeleton::self()->font() );
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment