[konsole] [Bug 411387] Split View crash with keyboard navigation
Nikolay Zlatev
bugzilla_noreply at kde.org
Thu Oct 3 11:37:28 BST 2019
https://bugs.kde.org/show_bug.cgi?id=411387
--- Comment #13 from Nikolay Zlatev <nik at astrapaging.com> ---
// Find the theme's splitter width + extra space to find valid terminal
// https://doc.qt.io/qt-5/qsplitter.html#handleWidth-prop
// By default, this property contains a value
// that depends on the user's platform and style preferences.
//
// If you set handleWidth to 1 or 0,
// the actual grab area will grow to overlap a few
// pixels of its respective widgets.
const auto handleWidth = parentSplitter->handleWidth() + 3;
P.S.
pixelMetric(QStyle::PM_SplitterWidth)
always returns theme value not actual rendered size
I have tested on Breeze
app->setStyleSheet(QStringLiteral("QSplitter::handle {width: 8px; height: 8px;
border: 1px solid red}"));
in main.cpp
pixelMetric(QStyle::PM_SplitterWidth) returns 1
handleWidth() returns 10 (width+border*2)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list