Changeset View
Changeset View
Standalone View
Standalone View
views/kpZoomedView.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 88 | qCDebug(kpLogViews) << "kpZoomedView(" << name () << ")::adjustToEnvironment()" | |||
---|---|---|---|---|---|
89 | << " doc: width=" << document ()->width () | 89 | << " doc: width=" << document ()->width () | ||
90 | << " height=" << document ()->height () | 90 | << " height=" << document ()->height () | ||
91 | << endl; | 91 | << endl; | ||
92 | #endif | 92 | #endif | ||
93 | 93 | | |||
94 | if (document ()) | 94 | if (document ()) | ||
95 | { | 95 | { | ||
96 | // TODO: use zoomedDocWidth() & zoomedDocHeight()? | 96 | // TODO: use zoomedDocWidth() & zoomedDocHeight()? | ||
97 | resize ((int) transformDocToViewX (document ()->width ()), | 97 | resize (static_cast<int> (transformDocToViewX (document ()->width ())), | ||
98 | (int) transformDocToViewY (document ()->height ())); | 98 | static_cast<int> (transformDocToViewY (document ()->height ()))); | ||
99 | } | 99 | } | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | 102 | |