~ubuntu-branches/ubuntu/raring/gwenview/raring-proposed

« back to all changes in this revision

Viewing changes to app/imagemetainfodialog.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac, Philip Muškovac, Scott Kitterman
  • Date: 2011-12-24 18:54:55 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20111224185455-zxffs6i6m5cwwuze
Tags: 4:4.7.95-0ubuntu1
[ Philip Muškovac ]
* New upstream release candiate

[ Scott Kitterman ]
* Fix Ubuntu Vcs- header in debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <QTreeView>
29
29
 
30
30
// KDE
31
 
#include <kdebug.h>
32
 
#include <klocale.h>
 
31
#include <KDebug>
 
32
#include <KLocale>
33
33
 
34
34
// STL
35
35
#include <memory>
61
61
        }
62
62
    }
63
63
 
64
 
    virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const {
 
64
    virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const
 
65
    {
65
66
        QSize sh = QStyledItemDelegate::sizeHint(option, index);
66
67
        if (!index.parent().isValid()) {
67
68
            sh.setHeight(sh.height() * 3 / 2);
77
78
{
78
79
public:
79
80
    ExpandedTreeView(QWidget* parent)
80
 
        : QTreeView(parent) {}
 
81
        : QTreeView(parent)
 
82
        {}
81
83
 
82
84
protected:
83
85
    virtual void rowsInserted(const QModelIndex& parent, int start, int end)
108
110
    }
109
111
};
110
112
 
111
 
struct ImageMetaInfoDialogPrivate {
 
113
struct ImageMetaInfoDialogPrivate
 
114
{
112
115
    std::auto_ptr<PreferredImageMetaInfoModel> mModel;
113
116
    QTreeView* mTreeView;
114
117
};