Commit 8ef4ab27 authored by Kevin Ottens's avatar Kevin Ottens
Browse files

Use KEditListWidget when available.

svn path=/trunk/KDE/kdepim/runtime/; revision=1199930
parent d7af09fd
......@@ -9,7 +9,15 @@ set( birthdayresource_srcs
kde4_add_kcfg_files( birthdayresource_srcs settings.kcfgc )
kcfg_generate_dbus_interface(${CMAKE_CURRENT_SOURCE_DIR}/birthdaysresource.kcfg org.kde.Akonadi.Birthdays.Settings)
kde4_add_ui_files(birthdayresource_srcs configdialog.ui)
macro_ensure_version( "4.5.74" ${KDE_VERSION} KDE_IS_AT_LEAST_4_5_74 )
if(KDE_IS_AT_LEAST_4_5_74)
kde4_add_ui_files(birthdayresource_srcs configdialog.ui)
else(KDE_IS_AT_LEAST_4_5_74)
kde4_add_ui_files(birthdayresource_srcs configdialog-45.ui)
endif(KDE_IS_AT_LEAST_4_5_74)
qt4_add_dbus_adaptor(birthdayresource_srcs
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.Birthdays.Settings.xml settings.h Settings
)
......
<ui version="4.0" >
<class>ConfigDialog</class>
<widget class="QWidget" name="ConfigDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>434</width>
<height>364</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Reminder</string>
</property>
<property name="checkable" >
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<widget class="QCheckBox" name="kcfg_EnableAlarm" >
<property name="text" >
<string>Set &amp;reminder</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>R&amp;emind prior to event:</string>
</property>
<property name="buddy" >
<cstring>kcfg_AlarmDays</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="KIntSpinBox" name="kcfg_AlarmDays" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="prefix" >
<string/>
</property>
<property name="maximum" >
<number>355</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Filter</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<widget class="QCheckBox" name="kcfg_FilterOnCategories" >
<property name="text" >
<string>&amp;Filter by categories</string>
</property>
</widget>
</item>
<item>
<widget class="KEditListBox" name="kcfg_FilterCategories" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="title" >
<string>Categories</string>
</property>
<property name="buttons" >
<set>KEditListBox::Add|KEditListBox::Remove</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>20</width>
<height>18</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KEditListBox</class>
<extends>QGroupBox</extends>
<header>keditlistbox.h</header>
</customwidget>
<customwidget>
<class>KIntSpinBox</class>
<extends>QSpinBox</extends>
<header>knuminput.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>kcfg_EnableAlarm</sender>
<signal>toggled(bool)</signal>
<receiver>label</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>97</x>
<y>54</y>
</hint>
<hint type="destinationlabel" >
<x>104</x>
<y>75</y>
</hint>
</hints>
</connection>
<connection>
<sender>kcfg_EnableAlarm</sender>
<signal>toggled(bool)</signal>
<receiver>kcfg_AlarmDays</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>169</x>
<y>51</y>
</hint>
<hint type="destinationlabel" >
<x>292</x>
<y>85</y>
</hint>
</hints>
</connection>
<connection>
<sender>kcfg_FilterOnCategories</sender>
<signal>toggled(bool)</signal>
<receiver>kcfg_FilterCategories</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>29</x>
<y>151</y>
</hint>
<hint type="destinationlabel" >
<x>81</x>
<y>199</y>
</hint>
</hints>
</connection>
</connections>
</ui>
......@@ -69,15 +69,12 @@
</widget>
</item>
<item>
<widget class="KEditListBox" name="kcfg_FilterCategories" >
<widget class="KEditListWidget" name="kcfg_FilterCategories" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="title" >
<string>Categories</string>
</property>
<property name="buttons" >
<set>KEditListBox::Add|KEditListBox::Remove</set>
<set>KEditListWidget::Add|KEditListWidget::Remove</set>
</property>
</widget>
</item>
......@@ -101,9 +98,9 @@
</widget>
<customwidgets>
<customwidget>
<class>KEditListBox</class>
<class>KEditListWidget</class>
<extends>QGroupBox</extends>
<header>keditlistbox.h</header>
<header>keditlistwidget.h</header>
</customwidget>
<customwidget>
<class>KIntSpinBox</class>
......
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