summaryrefslogtreecommitdiffstats
path: root/src/iconview/qiconview.h
diff options
context:
space:
mode:
authorBenoit Walter <[email protected]>2014-09-16 03:17:57 +0200
committerSlávek Banko <[email protected]>2014-09-16 03:41:24 +0200
commit36ee984c64818f3b8180567d527f7d320606cfb1 (patch)
tree6b552cab61c9afe2c7dab19535dc921556c8cdf2 /src/iconview/qiconview.h
parent9f882f9de741d76b8f45b0dc23d4fe65d6e09d78 (diff)
downloadqt3-36ee984c64818f3b8180567d527f7d320606cfb1.tar.gz
qt3-36ee984c64818f3b8180567d527f7d320606cfb1.zip
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
Diffstat (limited to 'src/iconview/qiconview.h')
-rw-r--r--src/iconview/qiconview.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/iconview/qiconview.h b/src/iconview/qiconview.h
index 109779f..4504690 100644
--- a/src/iconview/qiconview.h
+++ b/src/iconview/qiconview.h
@@ -504,6 +504,8 @@ private:
const QPoint &relativeTo,
const QIconViewItem *item ) const;
QBitmap mask( QPixmap *pix ) const;
+ int visibleWidthSB() const;
+ int visibleHeightSB() const;
QIconViewPrivate *d;