diff options
author | Benoit Walter <b.walter@free.fr> | 2014-09-16 03:19:11 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-09-16 03:41:49 +0200 |
commit | 0cce3b0ec191dd8dcb813e6b97d903b7288f4cb1 (patch) | |
tree | 3a12de4cc7f8941bb8c08d60d6c0768e498f8095 /src/iconview/ntqiconview.h | |
parent | 0c5a2640a6ab97b1ba97eb2399bd58fb1e890f0c (diff) | |
download | tqt3-0cce3b0ec191dd8dcb813e6b97d903b7288f4cb1.tar.gz tqt3-0cce3b0ec191dd8dcb813e6b97d903b7288f4cb1.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/ntqiconview.h')
-rw-r--r-- | src/iconview/ntqiconview.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |