[krita] [Bug 519191] [qt6-only] Adding a Swatch Group causes palette docker to fail to render until removed

"Freya Lupen" <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=519191

Freya Lupen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from Freya Lupen <[email protected]> ---
The swatches are normally rendered by QTableView::paintEvent() ->
QTableViewPrivate::drawCell() -> KisPaletteDelegate::paint(). But here some
drawCell() calls aren't happening for some reason.

Also, when switching palettes, rows that had group names may keep the shorter
height (if they render at all).

Commenting out these two (redundant) lines in
KisPaletteView::slotAdditionalGuiUpdate() that make the rows with group names
short somehow fixes everything:
>        setRowHeight(rowNumber, fontMetrics().lineSpacing() + 6);
>        verticalHeader()->resizeSection(rowNumber, fontMetrics().lineSpacing() + 6);

Maybe the table gets incorrectly calculated if the row height's been changed?

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.