forked from blue/squawk
minor bugfixes about message body, automatic focus and that quirk with font becomming bigger
This commit is contained in:
parent
788c6ca556
commit
5f6691067a
5 changed files with 18 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue