small blink-chat fix

This commit is contained in:
doitux
2007-05-25 18:14:52 +00:00
parent a6ea197a43
commit 4a66146c25
4 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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(); }
}
+1 -1
View File
@@ -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() {
+1
View File
@@ -29,6 +29,7 @@ public:
void paintEvent(QPaintEvent * event);
void startBlinkChatTab();
void stopBlinkChatTab();
void showDefaultChatTab();
public slots: