~ubuntu-branches/ubuntu/quantal/gwenview/quantal-proposed

« back to all changes in this revision

Viewing changes to lib/documentview/imageviewadapter.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:
27
27
#include <lib/gwenviewconfig.h>
28
28
 
29
29
// KDE
30
 
#include <kurl.h>
 
30
#include <KUrl>
31
31
 
32
32
// Qt
33
33
 
35
35
{
36
36
 
37
37
//// ImageViewAdapter ////
38
 
struct ImageViewAdapterPrivate {
 
38
struct ImageViewAdapterPrivate
 
39
{
39
40
    ImageViewAdapter* q;
40
41
    RasterImageView* mView;
41
42
};
50
51
    connect(d->mView, SIGNAL(zoomInRequested(QPointF)), SIGNAL(zoomInRequested(QPointF)));
51
52
    connect(d->mView, SIGNAL(zoomOutRequested(QPointF)), SIGNAL(zoomOutRequested(QPointF)));
52
53
    connect(d->mView, SIGNAL(scrollPosChanged()), SIGNAL(scrollPosChanged()));
 
54
    connect(d->mView, SIGNAL(completed()), SIGNAL(completed()));
53
55
    setWidget(d->mView);
54
56
}
55
57
 
135
137
    d->mView->setScrollPos(pos);
136
138
}
137
139
 
 
140
QRectF ImageViewAdapter::visibleDocumentRect() const
 
141
{
 
142
    return QRectF(d->mView->imageOffset(), d->mView->visibleImageSize());
 
143
}
 
144
 
 
145
 
138
146
} // namespace