|
@@ -607,7 +607,7 @@ void Group::setCurrentCombox(const int index){
|
|
}
|
|
}
|
|
|
|
|
|
void Group::initBorderStyle(int index,int color) {
|
|
void Group::initBorderStyle(int index,int color) {
|
|
- if (index == 2) {
|
|
|
|
|
|
+ if (index == 2) {
|
|
if(color == 0){
|
|
if(color == 0){
|
|
ui->rightBackground->setStyleSheet("border: 2px solid blue;");
|
|
ui->rightBackground->setStyleSheet("border: 2px solid blue;");
|
|
m_pPreviouslySelectedBlueGroup = this;
|
|
m_pPreviouslySelectedBlueGroup = this;
|
|
@@ -616,6 +616,11 @@ void Group::initBorderStyle(int index,int color) {
|
|
ui->rightBackground->setStyleSheet("border: 2px solid red;");
|
|
ui->rightBackground->setStyleSheet("border: 2px solid red;");
|
|
m_pCurrentlySelectedGroup = this;
|
|
m_pCurrentlySelectedGroup = this;
|
|
m_pLastClickedGroup = this;
|
|
m_pLastClickedGroup = this;
|
|
|
|
+ if (m_pPreviouslySelectedBlueGroup != nullptr) {
|
|
|
|
+ m_pPreviouslySelectedBlueGroup->ui->leftBackground->setStyleSheet("");
|
|
|
|
+ m_pPreviouslySelectedBlueGroup->ui->rightBackground->setStyleSheet("");
|
|
|
|
+ m_pPreviouslySelectedBlueGroup = nullptr;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -627,6 +632,11 @@ void Group::initBorderStyle(int index,int color) {
|
|
else {
|
|
else {
|
|
ui->leftBackground->setStyleSheet("border: 2px solid red;");
|
|
ui->leftBackground->setStyleSheet("border: 2px solid red;");
|
|
m_pCurrentlySelectedGroup = this;
|
|
m_pCurrentlySelectedGroup = this;
|
|
|
|
+ if (m_pPreviouslySelectedBlueGroup != nullptr) {
|
|
|
|
+ m_pPreviouslySelectedBlueGroup->ui->leftBackground->setStyleSheet("");
|
|
|
|
+ m_pPreviouslySelectedBlueGroup->ui->rightBackground->setStyleSheet("");
|
|
|
|
+ m_pPreviouslySelectedBlueGroup = nullptr;
|
|
|
|
+ }
|
|
m_pLastClickedGroup = this;
|
|
m_pLastClickedGroup = this;
|
|
}
|
|
}
|
|
}
|
|
}
|