]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Let the custom widgets stay invisible per default after constructing them. This preve...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 13 Mar 2010 19:17:38 +0000 (19:17 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 13 Mar 2010 19:17:38 +0000 (19:17 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1102837

src/panels/information/kmetadatawidget.cpp
src/panels/information/kmetadatawidget.h

index 5b15b6cef1516b3cd12433091423b9f22aa8e20a..7d82aef06a20aba172f3f4079eeba9d34c90fcd5 100644 (file)
@@ -188,16 +188,19 @@ KMetaDataWidget::Private::Private(KMetaDataWidget* parent) :
         m_ratingWidget->setAlignment(align);
         connect(m_ratingWidget, SIGNAL(ratingChanged(unsigned int)),
                 q, SLOT(slotRatingChanged(unsigned int)));
+        m_ratingWidget->setVisible(false);
 
         m_taggingWidget = new KTaggingWidget(parent);
         connect(m_taggingWidget, SIGNAL(tagsChanged(const QList<Nepomuk::Tag>&)),
                 q, SLOT(slotTagsChanged(const QList<Nepomuk::Tag>&)));
         connect(m_taggingWidget, SIGNAL(tagActivated(const Nepomuk::Tag&)),
                 q, SLOT(slotTagActivated(const Nepomuk::Tag&)));
+        m_taggingWidget->setVisible(false);
 
         m_commentWidget = new KCommentWidget(parent);
         connect(m_commentWidget, SIGNAL(commentChanged(const QString&)),
                 q, SLOT(slotCommentChanged(const QString&)));
+        m_commentWidget->setVisible(false);
     }
 #endif
 
@@ -398,7 +401,7 @@ void KMetaDataWidget::Private::slotLoadingFinished()
 #ifdef HAVE_NEPOMUK
     // Show the remaining meta information as text. The number
     // of required rows may very. Existing rows are reused to
-    // prevent flickering.
+    // prevent flickering and to increase the performance.
     int rowIndex = m_fixedRowCount;
 
     const QHash<KUrl, Nepomuk::Variant> data = m_model->data();
index 27b06a05dc5715f8e1a743227ea5bbf880a15870..4281b65190ce0494189790f454d957f02d68005b 100644 (file)
@@ -54,7 +54,8 @@ class KUrl;
  * like done already for the rating, tags or comments). The
  * following steps are necessary:
  * - Derive a custom widget from KMetaDataWidget.
- * - Create the custom widgets in the constructor.
+ * - Create the custom widgets in the constructor and
+ *   make them invisible per default.
  * - Implement the methods valueWidget(), setValue() and
  *   (optionally) label() by accessing the custom widgets.
  */