[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_1_BRANCH: kdebase/kdesktop
From: Laurent Montel <montel () kde ! org>
Date: 2003-10-28 9:08:41
[Download RAW message or body]
CVS commit by mlaurent:
Backport disable preview on desktop
M +12 -2 kdiconview.cc 1.66.2.8
--- kdebase/kdesktop/kdiconview.cc #1.66.2.7:1.66.2.8
@@ -162,5 +162,15 @@ void KDIconView::initConfig( bool init )
if ( !previewSettings().contains( *it ) ){
kdDebug(1204) << "Disabling preview for " << *it << endl;
- setIcons( iconSize(), (*it).latin1() /* revert no-longer wanted \
previews to icons */ ); + if ( *it == "audio/" )
+ disableSoundPreviews();
+ else
+ {
+ KService::Ptr serv = KService::serviceByDesktopName( *it );
+ Q_ASSERT( serv != 0L );
+ if ( serv )
+ {
+ setIcons( iconSize( ), \
serv->property("MimeTypes").toStringList().join(";" ) /* revert no-longer wanted \
previews to icons */ ); + }
+ }
}
startImagePreview( QStringList(), true );
@@ -169,5 +179,5 @@ void KDIconView::initConfig( bool init )
{
stopImagePreview();
- setIcons( iconSize(), "" /* stopImagePreview */ );
+ setIcons( iconSize(), "*" /* stopImagePreview */ );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic