[Digikam-devel] extragear/graphics/digikam/utilities/cameragui
Gilles Caulier
caulier.gilles at free.fr
Fri Aug 18 12:35:14 BST 2006
SVN commit 574194 by cgilles:
digikam from trunk : camera gui improvements : some camera can lock files to prevent unwanted item deletion.
In fact, the file access is in Read Only. This commit draw a small "lock" icon under camera item in this case.
CCMAIL: digikam-devel at kde.org
M +6 -3 cameraiconitem.cpp
--- trunk/extragear/graphics/digikam/utilities/cameragui/cameraiconitem.cpp #574193:574194
@@ -300,9 +300,12 @@
}
}
- int x = rect().width() - downloaded.width() - 5;
- int y = 5;
- p.drawPixmap(x, y, downloaded);
+ p.drawPixmap(rect().width() - downloaded.width() - 5, 5, downloaded);
+
+ // If camera item is locked (read only), draw a "KeyLock" icon.
+ if (d->itemInfo->writePermissions == 0)
+ p.drawPixmap(5, 5, SmallIcon( "encrypted" ));
+
p.end();
r = QRect(view->contentsToViewport(QPoint(r.x(), r.y())),
More information about the Digikam-devel
mailing list