You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
15 years ago
|
/****************************************************************************
|
||
|
** 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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
14 years ago
|
void KBetterThanKDialogBase::setLabel( const TQString & label )
|
||
15 years ago
|
{
|
||
|
_label->setText(label);
|
||
|
}
|
||
|
|
||
|
|
||
|
void KBetterThanKDialogBase::init()
|
||
|
{
|
||
|
_allowOnce->setFocus();
|
||
|
}
|
||
|
|
||
|
|
||
|
void KBetterThanKDialogBase::accept()
|
||
|
{
|
||
|
setResult(0);
|
||
|
}
|
||
|
|
||
|
|
||
|
void KBetterThanKDialogBase::reject()
|
||
|
{
|
||
14 years ago
|
TQDialog::reject();
|
||
15 years ago
|
setResult(2);
|
||
|
}
|