summaryrefslogtreecommitdiffstats
path: root/tdeio/misc/tdewalletd/kbetterthankdialogbase.ui.h
blob: 2b3e16b0dc10c2fa02e96209b160ab2ce90c5a7c (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** Qt 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 KBetterThanKDialogBase::clicked()
{
    if (sender() == _allowOnce) {
	done(0);
    } else if (sender() == _allowAlways) {
	done(1);
    } else if (sender() == _deny) {
	done(2);
    } else if (sender() == _denyForever) {
	done(3);
    }
}


void KBetterThanKDialogBase::setLabel( const TQString & label )
{
    _label->setText(label);
}


void KBetterThanKDialogBase::init()
{
    _allowOnce->setFocus();
}


void KBetterThanKDialogBase::accept()
{
    setResult(0);
}


void KBetterThanKDialogBase::reject()
{
    TQDialog::reject();
    setResult(2);
}