[Digikam-devel] [Bug 296654] Thumbbar can't be scaled down without doing this trick

Marcel Wiesweg marcel.wiesweg at gmx.de
Sun Jul 8 12:48:03 BST 2012


https://bugs.kde.org/show_bug.cgi?id=296654

--- Comment #12 from Marcel Wiesweg <marcel.wiesweg at gmx.de> ---
There's custom code which adjusts the minimum size (can't size smaller than
64px thumbs)
    // Adjust minimum and maximum width to thumbnail sizes.
    if (flow == TopToBottom)
    {
        int viewportFullWidgetOffset = size().width() -
viewport()->size().width();
        setMinimumWidth(del->minimumSize() + viewportFullWidgetOffset);
        setMaximumWidth(del->maximumSize() + viewportFullWidgetOffset);
    }
    else
    {
        int viewportFullWidgetOffset = size().height() -
viewport()->size().height();
        setMinimumHeight(del->minimumSize() + viewportFullWidgetOffset);
        setMaximumHeight(del->maximumSize() + viewportFullWidgetOffset);
    }

where some lines like
kDebug() << del->minimumSize() << viewportFullWidgetOffset
may shed some light on the issue, but without any of the devs being able to
reproduce it (which means they can play with it and fix it) it's difficult to
fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list