~ubuntu-branches/ubuntu/trusty/gwenview/trusty

« back to all changes in this revision

Viewing changes to lib/documentview/svgviewadapter.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-12-24 18:54:55 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: package-import@ubuntu.com-20111224185455-peofsmb92w3o944b
Tags: upstream-4.7.95
Import upstream version 4.7.95

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <QSvgRenderer>
32
32
 
33
33
// KDE
34
 
#include <kdebug.h>
 
34
#include <KDebug>
35
35
 
36
36
// Local
37
37
#include "document/documentfactory.h"
55
55
        return;
56
56
    }
57
57
    mSvgItem->setSharedRenderer(renderer);
 
58
    completed();
58
59
}
59
60
 
60
61
void SvgImageView::onZoomChanged()
79
80
}
80
81
 
81
82
//// SvgViewAdapter ////
82
 
struct SvgViewAdapterPrivate {
 
83
struct SvgViewAdapterPrivate
 
84
{
83
85
    SvgImageView* mView;
84
86
};
85
87
 
90
92
    setWidget(d->mView);
91
93
    connect(d->mView, SIGNAL(zoomChanged(qreal)), SIGNAL(zoomChanged(qreal)));
92
94
    connect(d->mView, SIGNAL(zoomToFitChanged(bool)), SIGNAL(zoomToFitChanged(bool)));
 
95
    connect(d->mView, SIGNAL(zoomInRequested(QPointF)), SIGNAL(zoomInRequested(QPointF)));
 
96
    connect(d->mView, SIGNAL(zoomOutRequested(QPointF)), SIGNAL(zoomOutRequested(QPointF)));
93
97
    connect(d->mView, SIGNAL(scrollPosChanged()), SIGNAL(scrollPosChanged()));
 
98
    connect(d->mView, SIGNAL(completed()), SIGNAL(completed()));
94
99
}
95
100
 
96
101
SvgViewAdapter::~SvgViewAdapter()