[Kde-imaging] kdeextragear-libs-1/libkipi/libkipi
Gilles Caulier
caulier.gilles at free.fr
Wed Sep 15 12:36:56 CEST 2004
CVS commit by cgilles:
ImageCollection Selector widget: limit collection comments char size to display else the widget is truncated.
CCMAIL: kde-imaging at kde.org
M +9 -1 imagecollectionselector.cpp 1.7
--- kdeextragear-libs-1/libkipi/libkipi/imagecollectionselector.cpp #1.6:1.7
@@ -240,6 +240,14 @@ void ImageCollectionSelector::slotSelect
if (d->_interface->hasFeature(AlbumsHaveComments))
{
+ // Limit the comments string to 20 char...
+ QString comments = imcollItem->imageCollection().comment();
+ if (!comments.isEmpty())
+ {
+ comments.truncate(20);
+ comments.append("...");
+ }
+
text += cellBeg + i18n("Comments :") +
- cellMid + imcollItem->imageCollection().comment() +
+ cellMid + comments +
cellEnd;
}
More information about the Kde-imaging
mailing list