small blink-chat fix
This commit is contained in:
@@ -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(); }
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
void paintEvent(QPaintEvent * event);
|
||||
void startBlinkChatTab();
|
||||
void stopBlinkChatTab();
|
||||
void showDefaultChatTab();
|
||||
|
||||
public slots:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user