make it compile w/o nepomuk

svn path=/trunk/KDE/kdebase/apps/; revision=955566
This commit is contained in:
Pino Toscano 2009-04-17 23:23:00 +00:00
parent f2d889b349
commit f6e3d85133

View file

@ -200,37 +200,61 @@ MetaDataWidget::~MetaDataWidget()
void MetaDataWidget::setRatingVisible(bool visible)
{
#ifdef HAVE_NEPOMUK
d->ratingWidget->setVisible(visible);
#else
Q_UNUSED(visible);
#endif
}
bool MetaDataWidget::isRatingVisible() const
{
#ifdef HAVE_NEPOMUK
return d->ratingWidget->isVisible();
#else
return false;
#endif
}
void MetaDataWidget::setCommentVisible(bool visible)
{
#ifdef HAVE_NEPOMUK
d->editComment->setVisible(visible);
#else
Q_UNUSED(visible);
#endif
}
bool MetaDataWidget::isCommentVisible() const
{
#ifdef HAVE_NEPOMUK
return d->editComment->isVisible();
#else
return false;
#endif
}
void MetaDataWidget::setTagsVisible(bool visible)
{
#ifdef HAVE_NEPOMUK
d->tagWidget->setVisible(visible);
#else
Q_UNUSED(visible);
#endif
}
bool MetaDataWidget::areTagsVisible() const
{
#ifdef HAVE_NEPOMUK
return d->tagWidget->isVisible();
#else
return false;
#endif
}