1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(contentdialog, widget): Remove "new message" bar after reading message

Fix #2247.
This commit is contained in:
Diadlo 2016-05-04 02:38:35 +03:00
parent 378d648591
commit b2c1f46894
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
3 changed files with 10 additions and 0 deletions

View File

@ -496,6 +496,7 @@ bool ContentDialog::event(QEvent* event)
widget->resetEventFlags();
widget->updateStatusLight();
Widget::getInstance()->updateScroll(widget);
Widget::getInstance()->resetIcon();
}

View File

@ -1386,6 +1386,11 @@ void Widget::clearContactsList()
removeGroup(g, true);
}
void Widget::updateScroll(GenericChatroomWidget *widget) {
ui->friendList->updateTracking(widget);
}
ContentDialog* Widget::createContentDialog() const
{
ContentDialog* contentDialog = new ContentDialog(settingsWidget);
@ -1683,6 +1688,9 @@ bool Widget::event(QEvent * e)
case QEvent::MouseButtonDblClick:
focusChatInput();
break;
case QEvent::Paint:
ui->friendList->updateVisualTracking();
break;
case QEvent::WindowActivate:
if (activeChatroomWidget != nullptr)
{

View File

@ -75,6 +75,7 @@ public:
bool getIsWindowMinimized();
void updateIcons();
void clearContactsList();
void updateScroll(GenericChatroomWidget *widget);
enum DialogType
{