[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] plugins/reporting/web: Make the web page view port sizr
From: Jaroslaw Staniek <staniek () kde ! org>
Date: 2011-09-30 22:30:28
Message-ID: 20110930223028.9DD5AA60D1 () git ! kde ! org
[Download RAW message or body]
Git commit c64b84164c59676fbd33295f5a96de08cf156ba8 by Jaroslaw Staniek, on behalf of Adam Pigg.
Committed on 30/09/2011 at 10:59.
Pushed by staniek into branch 'master'.
Make the web page view port sizr the same as the item size
Tell the page to notifiy that the item has been added
M +2 -2 plugins/reporting/web/KoReportItemWeb.cpp
http://commits.kde.org/calligra/c64b84164c59676fbd33295f5a96de08cf156ba8
diff --git a/plugins/reporting/web/KoReportItemWeb.cpp b/plugins/reporting/web/KoReportItemWeb.cpp
index 69dcc98..4d7bd3f 100644
--- a/plugins/reporting/web/KoReportItemWeb.cpp
+++ b/plugins/reporting/web/KoReportItemWeb.cpp
@@ -101,7 +101,7 @@ void KoReportItemWeb::loadFinished(bool)
kDebug () << m_rendering;
if (m_rendering) {
OROPicture * pic = new OROPicture();
- m_webPage->setViewportSize(m_webPage->mainFrame()->contentsSize());
+ m_webPage->setViewportSize(m_size.toScene().toSize());
QPainter p(pic->picture());
@@ -114,7 +114,7 @@ void KoReportItemWeb::loadFinished(bool)
pic->setPosition(pos);
pic->setSize(size);
- if (m_targetPage) m_targetPage->addPrimitive(pic);
+ if (m_targetPage) m_targetPage->addPrimitive(pic, false, true);
OROPicture *p2 = dynamic_cast<OROPicture*>(pic->clone());
p2->setPosition(m_pos.toPoint());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic