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

« back to all changes in this revision

Viewing changes to imageplugins/enhance/hotpixels/blackframelistview.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:
36
36
{
37
37
 
38
38
BlackFrameListView::BlackFrameListView(QWidget* parent)
39
 
                  : QTreeWidget(parent)
 
39
    : QTreeWidget(parent)
40
40
{
41
41
    setColumnCount(3);
42
42
    setRootIsDecorated(false);
56
56
// ----------------------------------------------------------------------------
57
57
 
58
58
BlackFrameListViewItem::BlackFrameListViewItem(BlackFrameListView* parent, const KUrl& url)
59
 
                      : QObject(parent), QTreeWidgetItem(parent)
 
59
    : QObject(parent), QTreeWidgetItem(parent)
60
60
{
61
61
    m_parent        = parent;
62
62
    m_blackFrameURL = url;
91
91
    setIcon(0, QPixmap::fromImage(m_thumb));
92
92
 
93
93
    if (!m_imageSize.isEmpty())
 
94
    {
94
95
        setText(1, QString("%1x%2").arg(m_imageSize.width()).arg(m_imageSize.height()));
 
96
    }
95
97
 
96
98
    setText(2, QString::number(m_hotPixels.count()));
97
99
 
98
100
    m_blackFrameDesc = QString("<p><b>" + m_blackFrameURL.fileName() + "</b>:<p>");
 
101
 
99
102
    for (QList <HotPixel>::Iterator it = m_hotPixels.begin() ; it != m_hotPixels.end() ; ++it)
100
103
    {
101
104
        m_blackFrameDesc.append( QString("[%1,%2] ").arg((*it).x()).arg((*it).y()) );
122
125
 
123
126
    //Draw hot pixels one by one
124
127
    QList<HotPixel>::Iterator it;
 
128
 
125
129
    for (it = m_hotPixels.begin(); it != m_hotPixels.end(); ++it)
126
130
    {
127
131
        hpRect = (*it).rect;