Commit 7f42a787 authored by Aaron J. Seigo's avatar Aaron J. Seigo

some small style fixes.

see http://community.kde.org/Plasma/QMLStyle
parent 0c68129b
...@@ -33,6 +33,12 @@ MouseEventListener { ...@@ -33,6 +33,12 @@ MouseEventListener {
property int delta property int delta
property Item flickable: mainFlickable
property bool pageSwitchEnabled: false
property alias document: mainPage.document
property alias pageNumber: mainPage.pageNumber
property Item pageItem: mainPage
onWheelMoved: { onWheelMoved: {
if (wheel.modifiers == Qt.ControlModifier) { if (wheel.modifiers == Qt.ControlModifier) {
var factor = wheel.delta > 0 ? 1.1 : 0.9 var factor = wheel.delta > 0 ? 1.1 : 0.9
...@@ -41,14 +47,8 @@ MouseEventListener { ...@@ -41,14 +47,8 @@ MouseEventListener {
} }
} }
} }
property Item flickable: mainFlickable
property bool pageSwitchEnabled: false
property alias document: mainPage.document
property alias pageNumber: mainPage.pageNumber
property Item pageItem: mainPage
function scale(zoom, absolute) function scale(zoom, absolute) {
{
var newScale = absolute ? zoom : (mainPage.width / mainPage.implicitWidth) * zoom; var newScale = absolute ? zoom : (mainPage.width / mainPage.implicitWidth) * zoom;
if (newScale < 0.3 || newScale > 3) { if (newScale < 0.3 || newScale > 3) {
return false return false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment