Пример #1
0
void OptionsWidget_windowList::commit()
{
	// we need to add this flag manually to the reset list because there's no other
	// option in this options widget that uses it.
	mergeResetFlag(KviOption_resetUpdateWindowList);
	KVI_OPTION_BOOL(KviOption_boolUseTreeWindowList) = (m_pWindowListType->currentIndex() == 0);

	KviOptionsWidget::commit();
}
void OptionsWidget_messageColors::commit()
{
	saveLastItem();

	mergeResetFlag(KviOption_resetUpdateGui);

	int count = m_pListView->count();
	for(int i=0; i<count;i++)
	{
		MessageListWidgetItem* it = (MessageListWidgetItem *)m_pListView->item(i);
		KVI_OPTION_MSGTYPE(it->optionId()) = *(it->msgType());
	}

	KviOptionsWidget::commit();
}