KIO
kbetterthankdialog.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "kbetterthankdialog.h"
00020
00021 KBetterThanKDialog::KBetterThanKDialog( QWidget *parent )
00022 : QDialog( parent )
00023 {
00024 setupUi( this );
00025 connect(_allowOnce, SIGNAL(clicked()), this, SLOT(allowOnceClicked()));
00026 connect(_allowAlways, SIGNAL(clicked()), this, SLOT(allowAlwaysClicked()));
00027 connect(_deny, SIGNAL(clicked()), this, SLOT(denyClicked()));
00028 connect(_denyForever, SIGNAL(clicked()), this, SLOT(denyForeverClicked()));
00029 }
00030
00031 void KBetterThanKDialog::init()
00032 {
00033 _allowOnce->setFocus();
00034 }
00035
00036 void KBetterThanKDialog::setLabel( const QString & label )
00037 {
00038 _label->setText(label);
00039 }
00040
00041 void KBetterThanKDialog::accept()
00042 {
00043 setResult(0);
00044 }
00045
00046 void KBetterThanKDialog::reject()
00047 {
00048 QDialog::reject();
00049 setResult(2);
00050 }
00051
00052 void KBetterThanKDialog::allowOnceClicked()
00053 {
00054 done(0);
00055 }
00056
00057 void KBetterThanKDialog::allowAlwaysClicked()
00058 {
00059 done(1);
00060 }
00061
00062 void KBetterThanKDialog::denyClicked()
00063 {
00064 done(2);
00065 }
00066
00067 void KBetterThanKDialog::denyForeverClicked()
00068 {
00069 done(3);
00070 }
00071
00072 #include "kbetterthankdialog.moc"