UIPrefPage::UIPrefPage( QWidget* parent )
: UIPrefBase( parent )
{
- orderGroup->setButton( Kita::Config::listSortOrder() );
-
- connect( orderGroup, SIGNAL( clicked( int ) ), SIGNAL( changed() ) );
connect( editFileAssociation, SIGNAL( leftClickedURL() ), SLOT( slotEditFileAssociation() ) );
}
void UIPrefPage::apply()
{
- Kita::Config::setListSortOrder( orderGroup->id( orderGroup->selected() ) );
}
void UIPrefPage::reset()
{
- // FIXME: don't write default value here.
- orderGroup->setButton( Kita::Config::EnumListSortOrder::Mark );
}
void UIPrefPage::slotEditFileAssociation()
-<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>Kita::UIPrefBase</class>
<widget class="QWidget">
<property name="name">
</widget>
<widget class="QButtonGroup">
<property name="name">
- <cstring>orderGroup</cstring>
+ <cstring>kcfg_ListSortOrder</cstring>
</property>
<property name="title">
<string>When open the board</string>