Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Graphics
Okular
Commits
dc85379c
Commit
dc85379c
authored
May 21, 2017
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/Applications/17.04'
parents
767a1c0e
574fad92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
shell/main.cpp
shell/main.cpp
+3
-6
ui/pageview.cpp
ui/pageview.cpp
+2
-0
No files found.
shell/main.cpp
View file @
dc85379c
...
@@ -34,14 +34,11 @@ int main(int argc, char** argv)
...
@@ -34,14 +34,11 @@ int main(int argc, char** argv)
KLocalizedString
::
setApplicationDomain
(
"okular"
);
KLocalizedString
::
setApplicationDomain
(
"okular"
);
KAboutData
aboutData
=
okularAboutData
();
KAboutData
aboutData
=
okularAboutData
();
KAboutData
::
setApplicationData
(
aboutData
);
app
.
setApplicationName
(
aboutData
.
applicationData
().
componentName
());
// set icon for shells which do not use desktop file metadata
app
.
setApplicationDisplayName
(
aboutData
.
applicationData
().
displayName
());
QApplication
::
setWindowIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"okular"
)));
app
.
setApplicationVersion
(
aboutData
.
version
());
app
.
setOrganizationDomain
(
QStringLiteral
(
"kde.org"
));
QCommandLineParser
parser
;
QCommandLineParser
parser
;
KAboutData
::
setApplicationData
(
aboutData
);
// The KDE4 version accepted flags such as -unique with a single dash -> preserve compatibility
// The KDE4 version accepted flags such as -unique with a single dash -> preserve compatibility
parser
.
setSingleDashWordOptionMode
(
QCommandLineParser
::
ParseAsLongOptions
);
parser
.
setSingleDashWordOptionMode
(
QCommandLineParser
::
ParseAsLongOptions
);
parser
.
addVersionOption
();
parser
.
addVersionOption
();
...
...
ui/pageview.cpp
View file @
dc85379c
...
@@ -400,7 +400,9 @@ PageView::PageView( QWidget *parent, Okular::Document *document )
...
@@ -400,7 +400,9 @@ PageView::PageView( QWidget *parent, Okular::Document *document )
viewport
()
->
setMouseTracking
(
true
);
viewport
()
->
setMouseTracking
(
true
);
viewport
()
->
setAutoFillBackground
(
false
);
viewport
()
->
setAutoFillBackground
(
false
);
// the apparently "magic" value of 20 is the same used internally in QScrollArea
// the apparently "magic" value of 20 is the same used internally in QScrollArea
verticalScrollBar
()
->
setCursor
(
Qt
::
ArrowCursor
);
verticalScrollBar
()
->
setSingleStep
(
20
);
verticalScrollBar
()
->
setSingleStep
(
20
);
horizontalScrollBar
()
->
setCursor
(
Qt
::
ArrowCursor
);
horizontalScrollBar
()
->
setSingleStep
(
20
);
horizontalScrollBar
()
->
setSingleStep
(
20
);
// conntect the padding of the viewport to pixmaps requests
// conntect the padding of the viewport to pixmaps requests
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment