equal
deleted
inserted
replaced
30 #include <QScrollArea> |
30 #include <QScrollArea> |
31 #include <QHeaderView> |
31 #include <QHeaderView> |
32 #include <QSlider> |
32 #include <QSlider> |
33 #include <QSignalMapper> |
33 #include <QSignalMapper> |
34 #include <QColorDialog> |
34 #include <QColorDialog> |
|
35 #include <QMessageBox> |
35 #include <QStandardItemModel> |
36 #include <QStandardItemModel> |
36 #include <QDebug> |
37 #include <QDebug> |
37 |
38 |
38 #include "pageoptions.h" |
39 #include "pageoptions.h" |
39 #include "gameuiconfig.h" |
40 #include "gameuiconfig.h" |
983 emit editTeamRequested(CBTeamName->currentText()); |
984 emit editTeamRequested(CBTeamName->currentText()); |
984 } |
985 } |
985 |
986 |
986 void PageOptions::requestDeleteSelectedTeam() |
987 void PageOptions::requestDeleteSelectedTeam() |
987 { |
988 { |
988 emit deleteTeamRequested(CBTeamName->currentText()); |
989 if(CBTeamName->count() > 1) |
|
990 emit deleteTeamRequested(CBTeamName->currentText()); |
|
991 else |
|
992 QMessageBox::warning(this, tr("Can't delete last team"), tr("You can't delete the last team!")); |
989 } |
993 } |
990 |
994 |
991 void PageOptions::setTeamOptionsEnabled(bool enabled) |
995 void PageOptions::setTeamOptionsEnabled(bool enabled) |
992 { |
996 { |
993 BtnNewTeam->setVisible(enabled); |
997 BtnNewTeam->setVisible(enabled); |