mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
compile without kmetadata
svn path=/trunk/KDE/kdebase/apps/; revision=644554
This commit is contained in:
parent
01b5b16a3f
commit
1582bd8565
|
@ -133,18 +133,23 @@ void MetaDataWidget::setFiles( const KUrl::List urls )
|
|||
|
||||
void MetaDataWidget::slotCommentChanged()
|
||||
{
|
||||
#ifdef HAVE_KMETADATA
|
||||
d->file.setComment( d->editComment->toPlainText() );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void MetaDataWidget::slotRatingChanged( int r )
|
||||
{
|
||||
#ifdef HAVE_KMETADATA
|
||||
d->file.setRating( r );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
bool MetaDataWidget::eventFilter( QObject* obj, QEvent* event )
|
||||
{
|
||||
#ifdef HAVE_KMETADATA
|
||||
if ( obj == d->editComment->viewport()
|
||||
|| obj == d->editComment ) {
|
||||
if ( event->type() == QEvent::FocusOut ) {
|
||||
|
@ -158,6 +163,7 @@ bool MetaDataWidget::eventFilter( QObject* obj, QEvent* event )
|
|||
d->editComment->setText( QString() );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return QWidget::eventFilter( obj, event );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue