Commit fb9ae6d1 authored by Alexander Akulich's avatar Alexander Akulich
Browse files

[logviewer] Fix MessageView not being visible

Since 5.11.1 QWebEngineView::sizeHint() returns 0x0 instead of 800x600.
That results in zero width of the message view in the splitter.

See also: commit f8898170a77593e314d3cd187f259223e9bff0f8 in qtwebengine

Reviewers: #kde_telepathy

Reviewed By: davidedmundson

Subscribers: #kde_telepathy

Differential Revision:
parent fdc58805
......@@ -118,6 +118,13 @@ LogViewer::LogViewer(const Tp::AccountFactoryPtr &accountFactory, const Tp::Conn
connect(ui->globalSearch, &QLineEdit::textChanged, [this](const QString &text) { if (text.isEmpty()) { slotClearGlobalSearch(); } });
connect(ui->entityList, SIGNAL(customContextMenuRequested(QPoint)), SLOT(slotShowEntityListContextMenu(QPoint)));
connect(ui->entityList, SIGNAL(noSuchContact()), SLOT(slotNoLogsForContact()));
const int indexOfMessageView = ui->splitter->indexOf(ui->messageView);
if (indexOfMessageView < 0) {
qCCritical(KTP_LOGVIEWER) << "Unable to adjust MessageView size";
} else {
ui->splitter->setStretchFactor(indexOfMessageView, 1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment