QTfrontend/ui/dialog/bandialog.cpp
changeset 8159 e226be871b6e
parent 8157 695f1eef72c8
child 8177 1fc36c2168c4
equal deleted inserted replaced
8158:5da1c26d5b10 8159:e226be871b6e
    49     hbox->addWidget(btnOk);
    49     hbox->addWidget(btnOk);
    50     hbox->addWidget(btnCancel);
    50     hbox->addWidget(btnCancel);
    51 
    51 
    52     connect(btnOk, SIGNAL(clicked()), this, SLOT(okClicked()));
    52     connect(btnOk, SIGNAL(clicked()), this, SLOT(okClicked()));
    53     connect(btnCancel, SIGNAL(clicked()), this, SLOT(reject()));
    53     connect(btnCancel, SIGNAL(clicked()), this, SLOT(reject()));
       
    54 
       
    55     this->setWindowModality(Qt::WindowModal);
    54 }
    56 }
    55 
    57 
    56 bool BanDialog::byIP()
    58 bool BanDialog::byIP()
    57 {
    59 {
    58     return rbIP->isChecked();
    60     return rbIP->isChecked();