~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-21 23:19:11 UTC
  • mfrom: (1.2.33 upstream) (3.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20101221231911-z9jip7s5aht1jqn9
Tags: 2:1.7.0-1ubuntu1
* Merge from Debian Experimental. Remaining Ubuntu changes:
  - Export .pot name and copy to plugins in debian/rules
  - Version build-depends on kipi-plugins-dev to ensure build is against the
    same version on all archs
* Drop debian/patches/kubuntu_01_linker.diff, incoporated upstream
* Remove patches directory and unused patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
{
39
39
 
40
40
MetadataListViewItem::MetadataListViewItem(QTreeWidgetItem* parent, const QString& key,
41
 
                                           const QString& title, const QString& value)
42
 
                    : QTreeWidgetItem(parent), m_key(key)
 
41
        const QString& title, const QString& value)
 
42
    : QTreeWidgetItem(parent), m_key(key)
43
43
{
44
44
    setChildIndicatorPolicy(QTreeWidgetItem::DontShowIndicator);
45
45
    setText(0, title);
46
46
    setToolTip(0, title);
47
47
    setDisabled(false);
48
48
    QString tagVal = value.simplified();
 
49
 
49
50
    if (tagVal.length() > 512)
50
51
    {
51
52
        tagVal.truncate(512);
59
60
}
60
61
 
61
62
MetadataListViewItem::MetadataListViewItem(QTreeWidgetItem* parent, const QString& key,
62
 
                                           const QString& title)
63
 
                    : QTreeWidgetItem(parent), m_key(key)
 
63
        const QString& title)
 
64
    : QTreeWidgetItem(parent), m_key(key)
64
65
{
65
66
    setChildIndicatorPolicy(QTreeWidgetItem::DontShowIndicator);
66
67
    setText(0, title);