------------------------------------------------------------
revno: 99
committer: Aurelien Gateau <[email protected]>
branch nick: plasma-indicatordisplay
timestamp: Thu 2009-10-08 16:11:28 +0200
message:
Ensure no scrollbar appears
modified:
src/indicatordisplay.cpp
--
lp:plasma-indicatordisplay
https://code.launchpad.net/~agateau/plasma-indicatordisplay/trunk
Your team ayatana-commits is subscribed to branch lp:plasma-indicatordisplay.
To unsubscribe from this branch go to
https://code.launchpad.net/~agateau/plasma-indicatordisplay/trunk/+edit-subscription.
=== modified file 'src/indicatordisplay.cpp'
--- src/indicatordisplay.cpp 2009-09-28 09:06:26 +0000
+++ src/indicatordisplay.cpp 2009-10-08 14:11:28 +0000
@@ -117,6 +117,13 @@
mView->setHeaderHidden(true);
mView->setIndentation(16);
mView->setIconSize(QSize(16, 16));
+
+ // Disable scrollbars: we compute the size of the view so that its content
+ // fits without scrollbars, but if we do not disable them a vertical
+ // scrollbar sometimes appears when the view grows while visible
+ mView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ mView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+
mView->setEditTriggers(QAbstractItemView::NoEditTriggers);
connect(mView, SIGNAL(clicked(const QModelIndex&)),
SLOT(slotClicked(const QModelIndex&))
_______________________________________________
Mailing list: https://launchpad.net/~ayatana-commits
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ayatana-commits
More help : https://help.launchpad.net/ListHelp