Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
optimize selection display
Browse files Browse the repository at this point in the history
  • Loading branch information
RenZihou committed Aug 24, 2021
1 parent 8b451b6 commit c4af045
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ChessLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void ChessLabel::kill() {
void ChessLabel::highlight(bool h /* = true */) {
h ? this->setStyleSheet("border: 2px solid red;")
: this->setStyleSheet("");
this->setAlignment(Qt::AlignCenter);
}

QString ChessLabel::qrcFilename() const {
Expand Down
1 change: 1 addition & 0 deletions src/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ void Board::countDown() {
timer->stop();
return;
}
this->setSelected(nullptr);
this->flipTurn();
this->resetTimer();
emit this->timeOut(timeout);
Expand Down
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void MainWindow::connectionEstablished() {
void MainWindow::connectionInterrupted() {
this->setState(server == nullptr ? DISCONNECTED : LISTENING);
socket = nullptr;
QMessageBox::information(this, "Connection Lost", "Connection is interrupted");
QMessageBox::information(this, "Connection Lost", "Connection interrupted.");
qDebug() << "connection interrupted";
}

Expand Down

0 comments on commit c4af045

Please sign in to comment.