| Line 26... |
Line 26... |
| 26 |
// Connect up the signals
|
26 |
// Connect up the signals
|
| 27 |
connect(ui->sourceTeam, SIGNAL(valueChanged(int)), this, SLOT(updateSourceName(int)) );
|
27 |
connect(ui->sourceTeam, SIGNAL(valueChanged(int)), this, SLOT(updateSourceName(int)) );
|
| 28 |
connect(ui->targetTeam, SIGNAL(valueChanged(int)), this, SLOT(updateTargetName(int)) );
|
28 |
connect(ui->targetTeam, SIGNAL(valueChanged(int)), this, SLOT(updateTargetName(int)) );
|
| 29 |
connect(ui->onlyNames, SIGNAL(stateChanged(int)), this, SLOT(checkValidOpr(int)) );
|
29 |
connect(ui->onlyNames, SIGNAL(stateChanged(int)), this, SLOT(checkValidOpr(int)) );
|
| 30 |
connect(ui->onlyTimes, SIGNAL(stateChanged(int)), this, SLOT(checkValidOpr(int)) );
|
30 |
connect(ui->onlyTimes, SIGNAL(stateChanged(int)), this, SLOT(checkValidOpr(int)) );
|
| 31 |
connect(ui->copyMode, SIGNAL(clicked(bool)), this, SLOT(checkValidOpr(bool)) );
|
- |
|
| 32 |
connect(ui->swapMode, SIGNAL(clicked(bool)), this, SLOT(checkValidOpr(bool)) );
|
- |
|
| 33 |
connect(ui->moveMode, SIGNAL(clicked(bool)), this, SLOT(checkValidOpr(bool)) );
|
- |
|
| 34 |
}
|
31 |
}
|
| 35 |
|
32 |
|
| 36 |
QmDialogChangeTeamNumber::~QmDialogChangeTeamNumber()
|
33 |
QmDialogChangeTeamNumber::~QmDialogChangeTeamNumber()
|
| 37 |
{
|
34 |
{
|
| 38 |
delete ui;
|
35 |
delete ui;
|
| Line 47... |
Line 44... |
| 47 |
----------------------------------------------------------------------------*/
|
44 |
----------------------------------------------------------------------------*/
|
| 48 |
|
45 |
|
| 49 |
bool QmDialogChangeTeamNumber::checkValidOpr(int ignore)
|
46 |
bool QmDialogChangeTeamNumber::checkValidOpr(int ignore)
|
| 50 |
{
|
47 |
{
|
| 51 |
bool valid = true;
|
48 |
bool valid = true;
|
| 52 |
qDebug("QmDialogChangeTeamNumber::checkValidOpr");
|
49 |
//qDebug("QmDialogChangeTeamNumber::checkValidOpr");
|
| 53 |
|
50 |
|
| 54 |
// Ensure that the user has entered something
|
51 |
// Ensure that the user has entered something
|
| 55 |
//
|
52 |
//
|
| 56 |
if ( sourceTeam == 0 || targetTeam == 0 )
|
53 |
if ( sourceTeam == 0 || targetTeam == 0 )
|
| 57 |
{
|
54 |
{
|