-
Notifications
You must be signed in to change notification settings - Fork 1
/
vlastnicisearchform.cpp
38 lines (33 loc) · 1.01 KB
/
vlastnicisearchform.cpp
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
#include "vlastnicisearchform.h"
VlastniciSearchForm::VlastniciSearchForm(QWidget *parent) :
QWidget(parent)
{
setupUi(this);
connect( ofoCheckBox, SIGNAL( clicked() ), this, SLOT( vlastniciSetRcIcoEnabled() ) );
connect( opoCheckBox, SIGNAL( clicked() ), this, SLOT( vlastniciSetRcIcoEnabled() ) );
connect( ofoCheckBox, SIGNAL( clicked() ), this, SLOT( vlastniciSearchEnabled() ) );
connect( opoCheckBox, SIGNAL( clicked() ), this, SLOT( vlastniciSearchEnabled() ) );
connect( sjmCheckBox, SIGNAL( clicked() ), this, SLOT( vlastniciSearchEnabled() ) );
}
void VlastniciSearchForm::vlastniciSearchEnabled()
{
if ( !( ofoCheckBox->isChecked() || opoCheckBox->isChecked() || sjmCheckBox->isChecked() ) )
{
emit searchEnabled( false );
}
else
{
emit searchEnabled( true );
}
}
void VlastniciSearchForm::vlastniciSetRcIcoEnabled()
{
if ( ofoCheckBox->isChecked() || opoCheckBox->isChecked() )
{
rcIcoLineEdit->setEnabled(true);
}
else
{
rcIcoLineEdit->setEnabled(false);
}
}