diff options
| author | Sebastian Trueg <[email protected]> | 2008-04-01 09:19:34 +0000 |
|---|---|---|
| committer | Sebastian Trueg <[email protected]> | 2008-04-01 09:19:34 +0000 |
| commit | e8970ac7714c3ed1e876e0db3960d829882fd2b4 (patch) | |
| tree | 56d95ecb6bbd184498720c8435bb6a7e465f4ed5 /src/tagcloud/resourcetaggingwidget.cpp | |
| parent | 6b87f451e586d4e8deaf1caefe1320f547f0a836 (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/resourcetaggingwidget.cpp')
| -rw-r--r-- | src/tagcloud/resourcetaggingwidget.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/tagcloud/resourcetaggingwidget.cpp b/src/tagcloud/resourcetaggingwidget.cpp index e7d6dfa78..b67e8f47d 100644 --- a/src/tagcloud/resourcetaggingwidget.cpp +++ b/src/tagcloud/resourcetaggingwidget.cpp @@ -24,7 +24,7 @@ #include <QtGui/QVBoxLayout> #include <QtGui/QContextMenuEvent> #include <QtGui/QCursor> -#include <QtGui/QAction> +#include <QtGui/QLabel> #include <KLocale> @@ -39,8 +39,6 @@ public: QList<Tag> resourceTags; - QAction* changeTagsAction; - void showTaggingPopup( const QPoint& ); void _k_slotShowTaggingPopup(); }; @@ -74,9 +72,10 @@ Nepomuk::ResourceTaggingWidget::ResourceTaggingWidget( QWidget* parent ) layout->setMargin( 0 ); d->resourceTagCloud = new TagCloud( this ); layout->addWidget( d->resourceTagCloud ); - - d->changeTagsAction = new QAction( i18n( "Change tags..." ), this ); - d->resourceTagCloud->setCustomNewTagAction( d->changeTagsAction ); + QLabel* changeTagsLabel = new QLabel( "<p align=center><a style=\"font-size:small;\" href=\"dummy\">" + i18n( "Change tags..." ) + "</a>", this ); + connect( changeTagsLabel, SIGNAL( linkActivated( const QString ) ), + this, SLOT( _k_slotShowTaggingPopup() ) ); + layout->addWidget( changeTagsLabel ); // the popup tag cloud d->popup = new TaggingPopup; @@ -88,9 +87,6 @@ Nepomuk::ResourceTaggingWidget::ResourceTaggingWidget( QWidget* parent ) connect( d->popup, SIGNAL( tagAdded( const Nepomuk::Tag& ) ), this, SLOT( slotTagAdded( const Nepomuk::Tag& ) ) ); - connect( d->changeTagsAction, SIGNAL( activated() ), - this, SLOT( _k_slotShowTaggingPopup() ) ); - connect( d->resourceTagCloud, SIGNAL( tagClicked( const Nepomuk::Tag& ) ), this, SIGNAL( tagClicked( const Nepomuk::Tag& ) ) ); } |
