~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/libs/widgets/metadata/metadatalistviewitem.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.2.15 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080717202539-6n7dtirbkoo7qvhd
Tags: 2:0.9.4-1
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Description : a generic list view item widget to 
8
8
 *               display metadata
9
9
 * 
10
 
 * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
13
13
 * and/or modify it under the terms of the GNU General
35
35
namespace Digikam
36
36
{
37
37
 
38
 
MetadataListViewItem::MetadataListViewItem(KListViewItem *parent, const QString& key,
 
38
MetadataListViewItem::MetadataListViewItem(QListViewItem *parent, const QString& key,
39
39
                                           const QString& title, const QString& value)
40
 
                    : KListViewItem(parent)
 
40
                    : QListViewItem(parent)
41
41
{
42
42
    m_key = key;
43
43
    
72
72
    return text(1);
73
73
}
74
74
 
75
 
void MetadataListViewItem::paintCell(QPainter* p, const QColorGroup& cg,
76
 
                                     int column, int width, int align)
77
 
{
78
 
    if (column == 0)
79
 
    {
80
 
        p->save();
81
 
        QFont fn(p->font());
82
 
        fn.setBold(true);
83
 
        p->setFont(fn);
84
 
    }
85
 
    
86
 
    KListViewItem::paintCell(p, cg, column, width, align);
87
 
 
88
 
    if (column == 0)
89
 
        p->restore();
90
 
}
91
 
 
92
75
}  // namespace Digikam
93