From 0cce3b0ec191dd8dcb813e6b97d903b7288f4cb1 Mon Sep 17 00:00:00 2001 From: Benoit Walter Date: Tue, 16 Sep 2014 03:19:11 +0200 Subject: Remove unnecessary scrollbar in TQIconView Test case (using konqueror icon view): - The first icons are being shown (no scrollbar yet) - When there is no space left, a vertical scrollbar is needed - The vertical scrollbar may cover the right edge of the icons (in the last column) => an horizontal scrollbar is needed :-( Solution: When using ScrollBarMode::Auto, prevent TQt from drawing icons on the scrollbar area (before the scrollbar is shown). Related to KDE bug #69589 --- src/iconview/ntqiconview.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/iconview/ntqiconview.h') diff --git a/src/iconview/ntqiconview.h b/src/iconview/ntqiconview.h index e45cfca65..34085827c 100644 --- a/src/iconview/ntqiconview.h +++ b/src/iconview/ntqiconview.h @@ -504,6 +504,8 @@ private: const TQPoint &relativeTo, const TQIconViewItem *item ) const; TQBitmap mask( TQPixmap *pix ) const; + int visibleWidthSB() const; + int visibleHeightSB() const; TQIconViewPrivate *d; -- cgit v1.2.1