minor bugfixes about message body, automatic focus and that quirk with font becomming bigger

This commit is contained in:
Blue 2022-03-29 19:05:24 +03:00
parent 788c6ca556
commit 5f6691067a
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
5 changed files with 18 additions and 2 deletions

View file

@ -94,7 +94,6 @@ Conversation::Conversation(bool muc, Models::Account* acc, Models::Element* el,
this, &Conversation::onTextEditDocSizeChanged);
m_ui->messageEditor->installEventFilter(&ker);
m_ui->messageEditor->setContextMenuPolicy(Qt::CustomContextMenu);
connect(m_ui->messageEditor, &QTextEdit::customContextMenuRequested, this, &Conversation::onMessageEditorContext);
connect(pasteImageAction, &QAction::triggered, this, &Conversation::onImagePasted);
@ -555,3 +554,11 @@ void Conversation::onMessageEditRequested(const QString& id)
qDebug() << "Ignoring";
}
}
void Conversation::showEvent(QShowEvent* event)
{
QWidget::showEvent(event);
emit shown();
m_ui->messageEditor->setFocus();
}