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

« back to all changes in this revision

Viewing changes to tests/auto/imagescalertest.h

  • 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:
27
27
#include <QPainter>
28
28
 
29
29
// KDE
30
 
#include <kdebug.h>
 
30
#include <KDebug>
31
31
 
32
32
class ImageScalerClient : public QObject
33
33
{
34
34
    Q_OBJECT
35
35
public:
36
 
    ImageScalerClient(Gwenview::ImageScaler* scaler) {
 
36
    ImageScalerClient(Gwenview::ImageScaler* scaler)
 
37
    {
37
38
        connect(scaler, SIGNAL(scaledRect(int, int, const QImage&)),
38
39
                SLOT(slotScaledRect(int, int, const QImage&)));
39
40
    }
40
41
 
41
 
    struct ImageInfo {
 
42
    struct ImageInfo
 
43
    {
42
44
        int left;
43
45
        int top;
44
46
        QImage image;
45
47
    };
46
48
    QVector<ImageInfo> mImageInfoList;
47
49
 
48
 
    QImage createFullImage() {
 
50
    QImage createFullImage()
 
51
    {
49
52
        Q_ASSERT(mImageInfoList.size() > 0);
50
53
        QImage::Format format = mImageInfoList[0].image.format();
51
54
 
68
71
    }
69
72
 
70
73
public Q_SLOTS:
71
 
    void slotScaledRect(int left, int top, const QImage& image) {
 
74
    void slotScaledRect(int left, int top, const QImage& image)
 
75
    {
72
76
        ImageInfo info;
73
77
        info.left = left;
74
78
        info.top = top;