summaryrefslogtreecommitdiffstats
path: root/configdialog/kbfxconfigdlgstyle.ui.h
blob: 44e83252c500a2d8333445c7127598fa1d82877a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** TQt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
*****************************************************************************/

void KbfxConfigDlgStyle::KbfxStyleSelected ( int id )
{
	if ( id == 0 ) ConfigInit().m_KbfxMenuType="spinx";
	if ( id == 1 ) ConfigInit().m_KbfxMenuType="kmenu";

	kdDebug() << "Selected style: " << ConfigInit().m_KbfxMenuType << endl;
}

void KbfxConfigDlgStyle::ChangeForm()
{
	if ( ConfigInit().m_KbfxMenuType == "spinx" )
		KbfxStyleGroupBox->setButton ( 0 );

	if ( ConfigInit().m_KbfxMenuType == "kmenu" )
		KbfxStyleGroupBox->setButton ( 1 );

	kdDebug() << "Style: " << ConfigInit().m_KbfxMenuType << endl;
}