~ubuntu-branches/ubuntu/edgy/digikam/edgy-updates

« back to all changes in this revision

Viewing changes to utilities/kexif/kexiflistviewitem.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "kexifentry.h"
2
 
#include "kexiflistviewitem.h"
3
 
 
4
 
KExifListViewItem::KExifListViewItem(KListView *parent,
5
 
                                     KExifEntry* entry)
6
 
    : KListViewItem(parent)
7
 
{
8
 
    mExifEntry = 0;
9
 
    if (entry) {
10
 
        mExifEntry = entry;
11
 
        setText(0,mExifEntry->getName());
12
 
        setText(1,mExifEntry->getValue());
13
 
    }
14
 
 
15
 
}
16
 
 
17
 
KExifListViewItem::KExifListViewItem(KListView *parent,
18
 
                                     QListViewItem* afterItem,
19
 
                                     KExifEntry* entry)
20
 
    : KListViewItem(parent, afterItem)
21
 
{
22
 
    mExifEntry = 0;
23
 
    if (entry) {
24
 
        mExifEntry = entry;
25
 
        setText(0,mExifEntry->getName());
26
 
        setText(1,mExifEntry->getValue());
27
 
    }
28
 
}
29
 
 
30
 
 
31
 
KExifListViewItem::~KExifListViewItem()
32
 
{
33
 
    if (mExifEntry) {
34
 
        mExifEntry = 0;
35
 
    }
36
 
}
37