diff --git a/src/gui/qt/mainwindow/chat/chat.cpp b/src/gui/qt/mainwindow/chat/chat.cpp index d8477cc8..e7731d58 100644 --- a/src/gui/qt/mainwindow/chat/chat.cpp +++ b/src/gui/qt/mainwindow/chat/chat.cpp @@ -53,7 +53,9 @@ void Chat::checkInvisible() { switch (myW->tabWidget->currentIndex()) { - case 1: { myW->tabWidget->stopBlinkChatTab(); } + case 1: { myW->tabWidget->stopBlinkChatTab(); + myW->tabWidget->showDefaultChatTab(); + } break; default: { myW->tabWidget->startBlinkChatTab(); } } diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index d116ad24..03685d83 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -2458,7 +2458,7 @@ void mainWindowImpl::keyPressEvent ( QKeyEvent * event ) { if (event->key() == Qt::Key_F10) { switchLeftToolBox(); } if (event->key() == Qt::Key_F11) { switchRightToolBox(); } // if (event->key() == Qt::Key_F) { switchFullscreen(); } //f -// if (event->key() == Qt::Key_S) { myChat->checkInvisible(); } //f + if (event->key() == Qt::Key_S) { myChat->checkInvisible(); } //f if (event->key() == 16777249) { pushButton_break->click(); ctrlPressed = TRUE; diff --git a/src/gui/qt/mainwindow/myrighttabwidget.cpp b/src/gui/qt/mainwindow/myrighttabwidget.cpp index 2cd8bf17..349e1fc2 100644 --- a/src/gui/qt/mainwindow/myrighttabwidget.cpp +++ b/src/gui/qt/mainwindow/myrighttabwidget.cpp @@ -31,6 +31,7 @@ MyRightTabWidget::~MyRightTabWidget() void MyRightTabWidget::startBlinkChatTab() { chatBlinkTimer->start(500); } void MyRightTabWidget::stopBlinkChatTab() { chatBlinkTimer->stop(); } +void MyRightTabWidget::showDefaultChatTab() { myTabBar->setTabTextColor(1, QColor(240,240,240)); } void MyRightTabWidget::blinkChatTab() { diff --git a/src/gui/qt/mainwindow/myrighttabwidget.h b/src/gui/qt/mainwindow/myrighttabwidget.h index 74c29b48..0dac57e7 100644 --- a/src/gui/qt/mainwindow/myrighttabwidget.h +++ b/src/gui/qt/mainwindow/myrighttabwidget.h @@ -29,6 +29,7 @@ public: void paintEvent(QPaintEvent * event); void startBlinkChatTab(); void stopBlinkChatTab(); + void showDefaultChatTab(); public slots: