┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tagcloud/tagcloud.cpp
diff options
context:
space:
mode:
authorSebastian Trueg <[email protected]>2008-04-01 09:19:34 +0000
committerSebastian Trueg <[email protected]>2008-04-01 09:19:34 +0000
commite8970ac7714c3ed1e876e0db3960d829882fd2b4 (patch)
tree56d95ecb6bbd184498720c8435bb6a7e465f4ed5 /src/tagcloud/tagcloud.cpp
parent6b87f451e586d4e8deaf1caefe1320f547f0a836 (diff)
Removed minimum size hint since we have zooming anyway.
One problem persists: the heightForWidth method does not take zooming into account. Anyway, the tagcloud would probably benefit from being implemented using QGraphicsView (any volounteers? ;) BUG: 160159 svn path=/trunk/KDE/kdebase/apps/; revision=792475
Diffstat (limited to 'src/tagcloud/tagcloud.cpp')
-rw-r--r--src/tagcloud/tagcloud.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tagcloud/tagcloud.cpp b/src/tagcloud/tagcloud.cpp
index 8fe5cba89..f22a39aa2 100644
--- a/src/tagcloud/tagcloud.cpp
+++ b/src/tagcloud/tagcloud.cpp
@@ -732,6 +732,7 @@ QSize Nepomuk::TagCloud::sizeHint() const
QSize Nepomuk::TagCloud::minimumSizeHint() const
{
+ return QFrame::minimumSizeHint();
// If we have tags d->rebuildCloud() has been called at least once,
// thus, we have proper rects (i.e. needed sizes)
if ( d->nodes.isEmpty() && !d->newTagButtonEnabled ) {
@@ -760,6 +761,8 @@ int Nepomuk::TagCloud::heightForWidth( int contentsWidth ) const
// If we have tags d->rebuildCloud() has been called at least once,
// thus, we have proper rects (i.e. needed sizes)
+ // FIXME: add zoom here
+
if ( d->cachedHfwWidth != contentsWidth ) {
// have to keep in mind the frame
contentsWidth -= frameWidth()*2;