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:
parent
378d648591
commit
b2c1f46894
|
@ -496,6 +496,7 @@ bool ContentDialog::event(QEvent* event)
|
||||||
widget->resetEventFlags();
|
widget->resetEventFlags();
|
||||||
widget->updateStatusLight();
|
widget->updateStatusLight();
|
||||||
|
|
||||||
|
Widget::getInstance()->updateScroll(widget);
|
||||||
Widget::getInstance()->resetIcon();
|
Widget::getInstance()->resetIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1386,6 +1386,11 @@ void Widget::clearContactsList()
|
||||||
removeGroup(g, true);
|
removeGroup(g, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::updateScroll(GenericChatroomWidget *widget) {
|
||||||
|
ui->friendList->updateTracking(widget);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ContentDialog* Widget::createContentDialog() const
|
ContentDialog* Widget::createContentDialog() const
|
||||||
{
|
{
|
||||||
ContentDialog* contentDialog = new ContentDialog(settingsWidget);
|
ContentDialog* contentDialog = new ContentDialog(settingsWidget);
|
||||||
|
@ -1683,6 +1688,9 @@ bool Widget::event(QEvent * e)
|
||||||
case QEvent::MouseButtonDblClick:
|
case QEvent::MouseButtonDblClick:
|
||||||
focusChatInput();
|
focusChatInput();
|
||||||
break;
|
break;
|
||||||
|
case QEvent::Paint:
|
||||||
|
ui->friendList->updateVisualTracking();
|
||||||
|
break;
|
||||||
case QEvent::WindowActivate:
|
case QEvent::WindowActivate:
|
||||||
if (activeChatroomWidget != nullptr)
|
if (activeChatroomWidget != nullptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,6 +75,7 @@ public:
|
||||||
bool getIsWindowMinimized();
|
bool getIsWindowMinimized();
|
||||||
void updateIcons();
|
void updateIcons();
|
||||||
void clearContactsList();
|
void clearContactsList();
|
||||||
|
void updateScroll(GenericChatroomWidget *widget);
|
||||||
|
|
||||||
enum DialogType
|
enum DialogType
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user