D22903: Improve search field

2019-08-04 Thread Aleix Pol Gonzalez
apol accepted this revision.

REPOSITORY
  R223 Okular

BRANCH
  improve-searchfield

REVISION DETAIL
  https://phabricator.kde.org/D22903

To: jbbgameich, #okular, #plasma:_mobile, ngraham, apol
Cc: ognarb, ngraham, okular-devel, maguirre, fbampaloukas, joaonetto, kezik, 
tfella, darcyshen, aacid


D12250: Install okularpart with the rest of kparts

2019-02-11 Thread Aleix Pol Gonzalez
apol abandoned this revision.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D12250

To: apol, #okular, aacid
Cc: okular-devel, tfella, ngraham, darcyshen, aacid


D18397: Fix crash on canceling the file open dialog

2019-01-26 Thread Aleix Pol Gonzalez
apol accepted this revision.
This revision is now accepted and ready to land.

REPOSITORY
  R223 Okular

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D18397

To: vkrause, apol
Cc: apol, nicolasfella, okular-devel, tfella, ngraham, darcyshen, aacid


D16544: Properly find the Purpose framework

2019-01-07 Thread Aleix Pol Gonzalez
apol added a comment.


  \o/

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D16544

To: apol, #okular, aacid
Cc: okular-devel, ngraham, darcyshen, aacid


D17196: Explicitly import Qt 5.7's QtQuick for Connections.enabled

2018-11-27 Thread Aleix Pol Gonzalez
apol accepted this revision.
apol added a comment.
This revision is now accepted and ready to land.


  LGTM

REPOSITORY
  R223 Okular

BRANCH
  Applications/18.12

REVISION DETAIL
  https://phabricator.kde.org/D17196

To: heikobecker, #okular, apol
Cc: okular-devel, ngraham, darcyshen, aacid


D16544: Properly find the Purpose framework

2018-11-02 Thread Aleix Pol Gonzalez
apol abandoned this revision.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D16544

To: apol, #okular, aacid
Cc: okular-devel, ngraham, aacid


D16544: Properly find the Purpose framework

2018-10-31 Thread Aleix Pol Gonzalez
apol created this revision.
apol added reviewers: Okular, aacid.
Herald added a project: Okular.
Herald added a subscriber: okular-devel.
apol requested review of this revision.

REPOSITORY
  R223 Okular

BRANCH
  findkf5purpose

REVISION DETAIL
  https://phabricator.kde.org/D16544

AFFECTED FILES
  CMakeLists.txt

To: apol, #okular, aacid
Cc: okular-devel, ngraham, aacid


D14102: Add share action to selection context menu

2018-07-16 Thread Aleix Pol Gonzalez
apol added a comment.


  I'd say it would make sense to just make it possible to drag and drop this to 
the quick share plasmoid. Or just put it on the clipboard and paste it there.

INLINE COMMENTS

> pageview.cpp:60
>  #include 
> +#include 
> +#include 

Purpose is already used in other parts of Okular and it's ifdef'd there.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D14102

To: nicolasfella, #okular, aacid, apol
Cc: ngraham, okular-devel, aacid


D12884: Remove the internal file navigation from the global drawer

2018-05-17 Thread Aleix Pol Gonzalez
This revision was automatically updated to reflect the committed changes.
Closed by commit R223:600e72100b13: Remove the internal file navigation from 
the global drawer (authored by apol).

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12884?vs=34335=34371

REVISION DETAIL
  https://phabricator.kde.org/D12884

AFFECTED FILES
  mobile/app/app.qrc
  mobile/app/package/contents/ui/Documents.qml
  mobile/app/package/contents/ui/Thumbnails.qml
  mobile/app/package/contents/ui/main.qml
  mobile/components/documentitem.cpp

To: apol, #okular, mart, aacid
Cc: okular-devel, ngraham, aacid


D12884: Remove the internal file navigation from the global drawer

2018-05-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 34335.
apol added a comment.


  Remove hardcoded path

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12884?vs=34297=34335

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12884

AFFECTED FILES
  mobile/app/app.qrc
  mobile/app/package/contents/ui/Documents.qml
  mobile/app/package/contents/ui/Thumbnails.qml
  mobile/app/package/contents/ui/main.qml
  mobile/components/documentitem.cpp

To: apol, #okular, mart, aacid
Cc: okular-devel, ngraham, aacid


D12884: Remove the internal file navigation from the global drawer

2018-05-16 Thread Aleix Pol Gonzalez
apol marked an inline comment as done.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D12884

To: apol, #okular, mart, aacid
Cc: okular-devel, ngraham, aacid


D12884: Remove the internal file navigation from the global drawer

2018-05-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 34297.
apol added a comment.


  Don't add logic in core/ just in case

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12884?vs=34168=34297

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12884

AFFECTED FILES
  mobile/app/app.qrc
  mobile/app/package/contents/ui/Documents.qml
  mobile/app/package/contents/ui/Thumbnails.qml
  mobile/app/package/contents/ui/main.qml
  mobile/components/documentitem.cpp

To: apol, #okular, mart, aacid
Cc: okular-devel, ngraham, aacid


D12884: Remove the internal file navigation from the global drawer

2018-05-16 Thread Aleix Pol Gonzalez
apol added inline comments.

INLINE COMMENTS

> aacid wrote in document.cpp:2362
> I don't think it's a good idea changing the behaviour, can't you fix the 
> mobile app to do the right thing?

Sure, I did it because it feels like broken API. It just complains and doesn't 
do anything when you openDocument twice.
Will move into the QtQuick side.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D12884

To: apol, #okular, mart, aacid
Cc: okular-devel, ngraham, aacid


D12884: Remove the internal file navigation from the global drawer

2018-05-14 Thread Aleix Pol Gonzalez
apol created this revision.
apol added reviewers: Okular, mart, aacid.
Restricted Application added a project: Okular.
Restricted Application added a subscriber: okular-devel.
apol requested review of this revision.

REVISION SUMMARY
  Instead include an "open" item.

TEST PLAN
  opened a file

REPOSITORY
  R223 Okular

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12884

AFFECTED FILES
  core/document.cpp
  mobile/app/app.qrc
  mobile/app/package/contents/ui/Documents.qml
  mobile/app/package/contents/ui/Thumbnails.qml
  mobile/app/package/contents/ui/main.qml

To: apol, #okular, mart, aacid
Cc: okular-devel, ngraham, aacid


D12770: Android: Make it possible to associate with files

2018-05-11 Thread Aleix Pol Gonzalez
This revision was automatically updated to reflect the committed changes.
Closed by commit R223:cf4bb5e3b178: Android: Make it possible to associate with 
files (authored by apol).

CHANGED PRIOR TO COMMIT
  https://phabricator.kde.org/D12770?vs=33858=33998#toc

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12770?vs=33858=33998

REVISION DETAIL
  https://phabricator.kde.org/D12770

AFFECTED FILES
  core/document.cpp
  mobile/android/AndroidManifest.xml
  mobile/android/src/OpenFileActivity.java
  mobile/app/main.cpp
  mobile/app/package/contents/ui/Documents.qml
  mobile/app/package/contents/ui/OkularDrawer.qml
  mobile/app/package/contents/ui/main.qml
  mobile/components/DocumentView.qml
  mobile/components/documentitem.cpp
  mobile/components/documentitem.h
  mobile/components/pageitem.cpp
  shell/shell.cpp

To: apol, #okular, aacid, mart
Cc: okular-devel, ngraham, aacid


D12770: Android: Make it possible to associate with files

2018-05-08 Thread Aleix Pol Gonzalez
apol created this revision.
apol added reviewers: Okular, aacid, mart.
Restricted Application added a project: Okular.
apol requested review of this revision.

REVISION SUMMARY
  Put the file into a file descriptor and open this file descriptor.
  Just application/pdf for now.

TEST PLAN
  opened some documents on my phone

REPOSITORY
  R223 Okular

BRANCH
  filesAndroid

REVISION DETAIL
  https://phabricator.kde.org/D12770

AFFECTED FILES
  core/document.cpp
  mobile/android/AndroidManifest.xml
  mobile/android/src/OpenFileActivity.java
  mobile/app/main.cpp
  mobile/app/package/contents/ui/Documents.qml
  mobile/app/package/contents/ui/OkularDrawer.qml
  mobile/app/package/contents/ui/main.qml
  mobile/components/DocumentView.qml
  mobile/components/documentitem.cpp
  mobile/components/documentitem.h
  mobile/components/pageitem.cpp
  shell/shell.cpp

To: apol, #okular, aacid, mart
Cc: ngraham, aacid


D12672: Use a target in FindDiscount (modern cmake) rather than variables

2018-05-07 Thread Aleix Pol Gonzalez
apol accepted this revision.
apol added a comment.
This revision is now accepted and ready to land.


  It's actually fixing the build when discount is in its own prefix.
  
  Also I agree that it's better using targets.

REPOSITORY
  R223 Okular

BRANCH
  Applications/18.04

REVISION DETAIL
  https://phabricator.kde.org/D12672

To: svuorela, kde-buildsystem, apol
Cc: apol, aacid, #okular, ngraham


D12352: Make it possible to disable the build of okularkirigami

2018-04-22 Thread Aleix Pol Gonzalez
This revision was not accepted when it landed; it landed in state "Needs 
Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit R223:1fb77446a737: Make it possible to disable the build of 
okularkirigami (authored by apol).

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12352?vs=32616=32842

REVISION DETAIL
  https://phabricator.kde.org/D12352

AFFECTED FILES
  CMakeLists.txt
  mobile/app/package/contents/ui/Documents.qml

To: apol, #okular, mart, aacid, lbeltrame
Cc: ngraham, aacid


D12352: Make it possible to disable the build of okularkirigami

2018-04-19 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32616.
apol added a comment.


  Improve description

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12352?vs=32569=32616

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12352

AFFECTED FILES
  CMakeLists.txt
  mobile/app/package/contents/ui/Documents.qml

To: apol, #okular, mart, aacid, lbeltrame
Cc: ngraham, aacid


D12352: Make it possible to disable the build of okularkirigami

2018-04-19 Thread Aleix Pol Gonzalez
apol created this revision.
apol added reviewers: Okular, mart, aacid, lbeltrame.
Restricted Application added a project: Okular.
apol requested review of this revision.

REVISION SUMMARY
  Some distros seem to have the option.
  
  BUG: 393119

TEST PLAN
  Still builds, can disable build

REPOSITORY
  R223 Okular

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12352

AFFECTED FILES
  CMakeLists.txt

To: apol, #okular, mart, aacid, lbeltrame
Cc: ngraham, aacid


D12299: Android: include metadata for okular kirigami

2018-04-18 Thread Aleix Pol Gonzalez
This revision was automatically updated to reflect the committed changes.
Closed by commit R223:77049d3b80c2: Android: include metadata for okular 
kirigami (authored by apol).

CHANGED PRIOR TO COMMIT
  https://phabricator.kde.org/D12299?vs=32434=32523#toc

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12299?vs=32434=32523

REVISION DETAIL
  https://phabricator.kde.org/D12299

AFFECTED FILES
  CMakeLists.txt
  mobile/android/AndroidManifest.xml
  mobile/android/res/drawable/icon.png
  mobile/android/res/values/libs.xml
  mobile/android/res/values/strings.xml
  mobile/app/CMakeLists.txt
  mobile/app/main.cpp
  mobile/app/org.kde.okular.kirigami.appdata.xml

To: apol, #okular, mart, aacid
Cc: michaelweghorn, ngraham, aacid


D12299: Android: include metadata for okular kirigami

2018-04-17 Thread Aleix Pol Gonzalez
apol created this revision.
apol added reviewers: Okular, mart, aacid.
Restricted Application added a project: Okular.
apol requested review of this revision.

REVISION SUMMARY
  Include an AndroidManifest.xml file so when it's installed it has a
  proper icon and name.
  Include appdata information so it can be listed

REPOSITORY
  R223 Okular

BRANCH
  okularkirigamiandroid

REVISION DETAIL
  https://phabricator.kde.org/D12299

AFFECTED FILES
  CMakeLists.txt
  mobile/android/AndroidManifest.xml
  mobile/android/res/drawable/icon.png
  mobile/android/res/values/libs.xml
  mobile/android/res/values/strings.xml
  mobile/app/CMakeLists.txt
  mobile/app/main.cpp
  mobile/app/org.kde.okular.kirigami.appdata.xml

To: apol, #okular, mart, aacid
Cc: michaelweghorn, ngraham, aacid


D12250: Install okularpart with the rest of kparts

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32353.
apol added a comment.


  The shell needs to know where the plugin is

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12250?vs=32348=32353

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12250

AFFECTED FILES
  CMakeLists.txt
  generators/chm/okularChm.desktop
  generators/comicbook/okularComicbook.desktop
  generators/djvu/okularDjvu.desktop
  generators/dvi/okularDvi.desktop
  generators/epub/okularEPub.desktop
  generators/fax/okularFax.desktop
  generators/fictionbook/okularFb.desktop
  generators/kimgio/okularKimgio.desktop
  generators/markdown/okularMd.desktop
  generators/mobipocket/okularMobi.desktop
  generators/ooo/okularOoo.desktop
  generators/plucker/okularPlucker.desktop
  generators/poppler/okularPoppler.desktop
  generators/spectre/okularGhostview.desktop
  generators/tiff/okularTiff.desktop
  generators/txt/okularTxt.desktop
  generators/xps/okularXps.desktop
  okular_part.desktop
  shell/shell.cpp

To: apol, #okular, aacid
Cc: michaelweghorn, ngraham, aacid


D12250: Install okularpart with the rest of kparts

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32348.
apol added a comment.


  And another

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12250?vs=32347=32348

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12250

AFFECTED FILES
  CMakeLists.txt
  generators/chm/okularChm.desktop
  generators/comicbook/okularComicbook.desktop
  generators/djvu/okularDjvu.desktop
  generators/dvi/okularDvi.desktop
  generators/epub/okularEPub.desktop
  generators/fax/okularFax.desktop
  generators/fictionbook/okularFb.desktop
  generators/kimgio/okularKimgio.desktop
  generators/markdown/okularMd.desktop
  generators/mobipocket/okularMobi.desktop
  generators/ooo/okularOoo.desktop
  generators/plucker/okularPlucker.desktop
  generators/poppler/okularPoppler.desktop
  generators/spectre/okularGhostview.desktop
  generators/tiff/okularTiff.desktop
  generators/txt/okularTxt.desktop
  generators/xps/okularXps.desktop
  okular_part.desktop

To: apol, #okular, aacid
Cc: michaelweghorn, ngraham, aacid


D12250: Install okularpart with the rest of kparts

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32347.
apol added a comment.


  There's more desktop files pointing to okularpart

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12250?vs=32319=32347

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12250

AFFECTED FILES
  CMakeLists.txt
  generators/comicbook/okularComicbook.desktop
  generators/djvu/okularDjvu.desktop
  generators/dvi/okularDvi.desktop
  generators/epub/okularEPub.desktop
  generators/fax/okularFax.desktop
  generators/fictionbook/okularFb.desktop
  generators/kimgio/okularKimgio.desktop
  generators/markdown/okularMd.desktop
  generators/mobipocket/okularMobi.desktop
  generators/ooo/okularOoo.desktop
  generators/plucker/okularPlucker.desktop
  generators/poppler/okularPoppler.desktop
  generators/spectre/okularGhostview.desktop
  generators/tiff/okularTiff.desktop
  generators/txt/okularTxt.desktop
  generators/xps/okularXps.desktop
  okular_part.desktop

To: apol, #okular, aacid
Cc: michaelweghorn, ngraham, aacid


D12250: Install okularpart with the rest of kparts

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32319.
apol added a comment.


  Unsure why it worked for me, point to the library like katepart does

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12250?vs=32300=32319

BRANCH
  installprefix

REVISION DETAIL
  https://phabricator.kde.org/D12250

AFFECTED FILES
  CMakeLists.txt
  okular_part.desktop

To: apol, #okular, aacid
Cc: michaelweghorn, ngraham, aacid


D12177: Make some frameworks optional so okular can be built on Android

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32318.
apol added a comment.


  Oops

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12177?vs=32317=32318

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12177

AFFECTED FILES
  CMakeLists.txt
  autotests/CMakeLists.txt
  core/generator.cpp
  core/scripter.cpp
  generators/ooo/CMakeLists.txt
  generators/ooo/generator_ooo.cpp
  part.cpp

To: apol, #okular, aacid
Cc: aacid, michaelweghorn, ngraham


D12177: Make some frameworks optional so okular can be built on Android

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32317.
apol added a comment.


  Unsure why it works on my system, adopt the same way to point to the path 
katepart uses

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12177?vs=32303=32317

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12177

AFFECTED FILES
  CMakeLists.txt
  autotests/CMakeLists.txt
  core/generator.cpp
  core/scripter.cpp
  generators/ooo/CMakeLists.txt
  generators/ooo/generator_ooo.cpp
  okular_part.desktop
  part.cpp

To: apol, #okular, aacid
Cc: aacid, michaelweghorn, ngraham


D12177: Make some frameworks optional so okular can be built on Android

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32303.
apol added a comment.


  Shouldn't comment the include...

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12177?vs=32302=32303

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12177

AFFECTED FILES
  CMakeLists.txt
  autotests/CMakeLists.txt
  core/generator.cpp
  core/scripter.cpp
  generators/ooo/CMakeLists.txt
  generators/ooo/generator_ooo.cpp
  part.cpp

To: apol, #okular, aacid
Cc: aacid, michaelweghorn, ngraham


D12177: Make some frameworks optional so okular can be built on Android

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32302.
apol added a comment.


  Typo

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12177?vs=32296=32302

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12177

AFFECTED FILES
  CMakeLists.txt
  autotests/CMakeLists.txt
  core/generator.cpp
  core/scripter.cpp
  generators/ooo/CMakeLists.txt
  generators/ooo/generator_ooo.cpp
  part.cpp

To: apol, #okular, aacid
Cc: aacid, michaelweghorn, ngraham


D12250: Install okularpart with the rest of kparts

2018-04-16 Thread Aleix Pol Gonzalez
apol created this revision.
apol added reviewers: Okular, aacid.
Restricted Application added a project: Okular.
apol requested review of this revision.

REVISION SUMMARY
  We have a directory with all kparts, okular should integrate there

TEST PLAN
  Uninstalled, installed with the patch applied, okular still works

REPOSITORY
  R223 Okular

BRANCH
  installprefix

REVISION DETAIL
  https://phabricator.kde.org/D12250

AFFECTED FILES
  CMakeLists.txt

To: apol, #okular, aacid
Cc: michaelweghorn, ngraham, aacid


D12177: Make some frameworks optional so okular can be built on Android

2018-04-16 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 32296.
apol added a comment.


  Address Albert's concern

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12177?vs=32072=32296

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12177

AFFECTED FILES
  CMakeLists.txt
  autotests/CMakeLists.txt
  core/generator.cpp
  core/scripter.cpp
  generators/ooo/CMakeLists.txt
  generators/ooo/generator_ooo.cpp
  part.cpp

To: apol, #okular, aacid
Cc: aacid, michaelweghorn, ngraham


D12177: Make some frameworks optional so okular can be built on Android

2018-04-13 Thread Aleix Pol Gonzalez
apol created this revision.
apol added a reviewer: Okular.
Restricted Application added a project: Okular.
apol requested review of this revision.

REVISION SUMMARY
  Disables KWallet integration if there's no KWallet, KJS if there's no
  KJS and KDocTools.
  Here's a list of frameworks that don't work on Android:
  
https://cgit.kde.org/sysadmin/ci-tooling.git/tree/local-metadata/project-ignore-rules.yaml

TEST PLAN
  Still works locally, ran Okular and Okular Mobile on Android.

REPOSITORY
  R223 Okular

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D12177

AFFECTED FILES
  CMakeLists.txt
  autotests/CMakeLists.txt
  core/generator.cpp
  core/scripter.cpp
  generators/ooo/CMakeLists.txt
  generators/ooo/generator_ooo.cpp
  part.cpp

To: apol, #okular
Cc: michaelweghorn, ngraham, aacid


D12176: Turn okularkirigami into an executable

2018-04-13 Thread Aleix Pol Gonzalez
This revision was automatically updated to reflect the committed changes.
Closed by commit R223:5f8f84d53cf8: Turn okularkirigami into an executable 
(authored by apol).

REPOSITORY
  R223 Okular

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D12176?vs=32070=32071

REVISION DETAIL
  https://phabricator.kde.org/D12176

AFFECTED FILES
  mobile/app/CMakeLists.txt
  mobile/app/app.qrc
  mobile/app/main.cpp
  mobile/app/package/metadata.desktop

To: apol, #kirigami, #okular, mart
Cc: plasma-devel, michaelweghorn, ngraham, apol, aacid, davidedmundson, mart, 
hein


D10007: Fix Build with Purpose

2018-01-28 Thread Aleix Pol Gonzalez
apol requested changes to this revision.
apol added a comment.
This revision now requires changes to proceed.


  Shouldn't be needed anymore.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D10007

To: tcanabrava, #okular, apol
Cc: michaelweghorn, aacid, ltoscano, #okular, ngraham


D10022: Fix annoying warning

2018-01-22 Thread Aleix Pol Gonzalez
apol created this revision.
apol added a reviewer: aacid.
Restricted Application added a subscriber: Okular.
Restricted Application added a project: Okular.
apol requested review of this revision.

REVISION SUMMARY
  Warning for every plugin was:
  The file includes the moc file "generator_tiff.moc", but does not contain a 
Q_OBJECT, Q_GADGET, Q_NAMESPACE, K_PLUGIN_FACTORY_WITH_JSON, K_PLUGIN_FACTORY, 
K_PLUGIN_FACTORY_WITH_JSON or K_PLUGIN_FACTORY macro.

TEST PLAN
  Built

REPOSITORY
  R223 Okular

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D10022

AFFECTED FILES
  CMakeLists.txt

To: apol, aacid
Cc: #okular, michaelweghorn, ngraham, aacid


D10007: Fix Build with Purpose

2018-01-21 Thread Aleix Pol Gonzalez
apol added a comment.


  I changed it so KDEExperimental still works with newer Purpose. I'd say let's 
keep the old one and when it's released again, then just change to just 
KF5::Purpose.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D10007

To: tcanabrava, #okular, apol
Cc: michaelweghorn, aacid, ltoscano, #okular, gassaf, ngraham


Re: Review Request 129347: add metadata for kimgio, mobipocket, ooo, plucker, poppler, spectre, txt, xps

2016-11-08 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129347/#review100739
---


Ship it!




Ship It!

- Aleix Pol Gonzalez


On Nov. 6, 2016, 4:53 p.m., Burkhard Lück wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129347/
> ---
> 
> (Updated Nov. 6, 2016, 4:53 p.m.)
> 
> 
> Review request for Okular and Matthias Klumpp.
> 
> 
> Bugs: 363842
> http://bugs.kde.org/show_bug.cgi?id=363842
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> see summary
> 
> 
> Diffs
> -
> 
>   generators/kimgio/CMakeLists.txt 9ac7aeb 
>   generators/kimgio/org.kde.okular-kimgio.metainfo.xml PRE-CREATION 
>   generators/mobipocket/CMakeLists.txt 059dd35 
>   generators/mobipocket/org.kde.okular-mobipocket.metainfo.xml PRE-CREATION 
>   generators/ooo/CMakeLists.txt 86726d1 
>   generators/ooo/org.kde.okular-ooo.metainfo.xml PRE-CREATION 
>   generators/plucker/CMakeLists.txt 708f0af 
>   generators/plucker/org.kde.okular-plucker.metainfo.xml PRE-CREATION 
>   generators/poppler/CMakeLists.txt b31c36b 
>   generators/poppler/org.kde.okular-poppler.metainfo.xml PRE-CREATION 
>   generators/spectre/CMakeLists.txt 47fc00f 
>   generators/spectre/org.kde.okular-spectre.metainfo.xml PRE-CREATION 
>   generators/tiff/CMakeLists.txt 31349ec 
>   generators/tiff/org.kde.okular-tiff.metainfo.xml PRE-CREATION 
>   generators/txt/CMakeLists.txt 202a3f9 
>   generators/txt/org.kde.okular-txt.metainfo.xml PRE-CREATION 
>   generators/xps/CMakeLists.txt 32e24d0 
>   generators/xps/org.kde.okular-xps.metainfo.xml PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/129347/diff/
> 
> 
> Testing
> ---
> 
> verified with appstreamcli validate
> builds + installs
> 
> 
> Thanks,
> 
> Burkhard Lück
> 
>



Re: [Okular-devel] Review Request 128435: Make the open dialog a bit more usable without the Plasma QPA

2016-07-21 Thread Aleix Pol Gonzalez


> On July 14, 2016, 12:04 a.m., Aleix Pol Gonzalez wrote:
> > shell/shell.cpp, line 441
> > <https://git.reviewboard.kde.org/r/128435/diff/1/?file=471627#file471627line441>
> >
> > I think it would make sense to move that logic upstream.
> > 
> > It's not something specific about okular.
> 
> Martin Tobias Holmedahl Sandsmark wrote:
> move which logic to which upstream? QFileDialog?
> 
> Aleix Pol Gonzalez wrote:
> Whichever QPT that is underwhelming you and pushed you to make this RR. 
> Or QFileDialog, if it's general.
> 
> Martin Tobias Holmedahl Sandsmark wrote:
> Ah, it is the default implementation in QFileDialog itself.
> 
> Martin Tobias Holmedahl Sandsmark wrote:
> FWIW, I have a couple of implementations of it for upstream, but I don't 
> it makes a lot of sense as it changes behaviour a lot.
> 
> http://ix.io/15nr is the least invasive imho.

I don't see the review in Qt's gerrit. Do you have it at hand?


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128435/#review97361
---


On July 17, 2016, 8:09 p.m., Martin Tobias Holmedahl Sandsmark wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128435/
> -------
> 
> (Updated July 17, 2016, 8:09 p.m.)
> 
> 
> Review request for Okular, Albert Astals Cid and Aleix Pol Gonzalez.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Without the Plasma QPA now the file open dialog just lets you select a single 
> random filetype to view at the time. This tries to improve that, but I'm not 
> sure if that's something you/we want?
> 
> 
> Diffs
> -
> 
>   shell/shell.cpp bca7206 
> 
> Diff: https://git.reviewboard.kde.org/r/128435/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Martin Tobias Holmedahl Sandsmark
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 128435: Make the open dialog a bit more usable without the Plasma QPA

2016-07-17 Thread Aleix Pol Gonzalez


> On July 14, 2016, 12:04 a.m., Aleix Pol Gonzalez wrote:
> > shell/shell.cpp, line 441
> > <https://git.reviewboard.kde.org/r/128435/diff/1/?file=471627#file471627line441>
> >
> > I think it would make sense to move that logic upstream.
> > 
> > It's not something specific about okular.
> 
> Martin Tobias Holmedahl Sandsmark wrote:
> move which logic to which upstream? QFileDialog?

Whichever QPT that is underwhelming you and pushed you to make this RR. Or 
QFileDialog, if it's general.


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128435/#review97361
---


On July 13, 2016, 11:57 p.m., Martin Tobias Holmedahl Sandsmark wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128435/
> ---
> 
> (Updated July 13, 2016, 11:57 p.m.)
> 
> 
> Review request for Okular, Albert Astals Cid and Aleix Pol Gonzalez.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Without the Plasma QPA now the file open dialog just lets you select a single 
> random filetype to view at the time. This tries to improve that, but I'm not 
> sure if that's something you/we want?
> 
> 
> Diffs
> -
> 
>   shell/shell.cpp bca7206 
> 
> Diff: https://git.reviewboard.kde.org/r/128435/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Martin Tobias Holmedahl Sandsmark
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 128435: Make the open dialog a bit more usable without the Plasma QPA

2016-07-13 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/128435/#review97361
---



It looks like a workaround to me. But workarounds are often required.


shell/shell.cpp (line 435)
<https://git.reviewboard.kde.org/r/128435/#comment65723>

Why? Shouldn't this depend on the standard in the platform? Why would we 
need to hide this?



shell/shell.cpp (line 440)
<https://git.reviewboard.kde.org/r/128435/#comment65724>

Use foreach or qAsConst.



shell/shell.cpp (line 441)
<https://git.reviewboard.kde.org/r/128435/#comment65725>

I think it would make sense to move that logic upstream.

It's not something specific about okular.


- Aleix Pol Gonzalez


On July 13, 2016, 11:57 p.m., Martin Tobias Holmedahl Sandsmark wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/128435/
> ---
> 
> (Updated July 13, 2016, 11:57 p.m.)
> 
> 
> Review request for Okular, Albert Astals Cid and Aleix Pol Gonzalez.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Without the Plasma QPA now the file open dialog just lets you select a single 
> random filetype to view at the time. This tries to improve that, but I'm not 
> sure if that's something you/we want?
> 
> 
> Diffs
> -
> 
>   shell/shell.cpp bca7206 
> 
> Diff: https://git.reviewboard.kde.org/r/128435/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Martin Tobias Holmedahl Sandsmark
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127021: Remove most KDELibs4Support linking

2016-05-30 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127021/
---

(Updated May 31, 2016, 12:13 a.m.)


Status
--

This change has been marked as submitted.


Review request for Okular.


Changes
---

Submitted with commit 32b62e919a6493cca9d5d2b272872b53f9b5e41d by Aleix Pol to 
branch frameworks.


Repository: okular


Description
---

Drops KDELibs4Support usage, mostly it wasn't actually used, except for that 
KFileDialog usage that I ported.


Diffs
-

  shell/shell.cpp c97054a 

Diff: https://git.reviewboard.kde.org/r/127021/diff/


Testing
---

Opening dialog seems to work fine, tests still pass except for parttest, but 
I'm unsure it's related: https://paste.kde.org/p37pdubgf


Thanks,

Aleix Pol Gonzalez

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127328: Fix build on Windows (MinGW)

2016-03-14 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127328/#review93503
---




CMakeLists.txt (line 305)
<https://git.reviewboard.kde.org/r/127328/#comment63752>

Make it `add_library(okularpart MODULE ${okularpart_SRCS})` and you won't 
need to drop the prefix.



interfaces/viewerinterface.h (line 14)
<https://git.reviewboard.kde.org/r/127328/#comment63751>

Should use generate_export_header() and generate the export macros at 
configure time.


- Aleix Pol Gonzalez


On March 14, 2016, 1:17 a.m., Thomas Friedrichsmeier wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127328/
> ---
> 
> (Updated March 14, 2016, 1:17 a.m.)
> 
> 
> Review request for Okular, Aleix Pol Gonzalez, Alex Richardson, and Gleb 
> Popov.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Three parts to this patch:
> 1) The plaform #ifdef in interfaces/viewerinterface.h is platform, not 
> compiler-specific.
> 2) When compiling okularplugin, the existing definition of okularpart_EXPORTS 
> on the generated settings.cpp does not work with MinGW, for reasons that I do 
> not understand. Setting the definition on the whole target, instead, works.
> 3) The okularpart lib will automatically be named libokularpart, and 
> subsequently not be found when trying to load it via KPluginLoader. Tell 
> cmake to drop the "lib"-prefix.
> 
> See also:
> - Discussion on list 
> https://mail.kde.org/pipermail/okular-devel/2016-March/022480.html
> - A previous review request addressed issue 2 for MSVC 
> https://git.reviewboard.kde.org/r/125742/
> 
> 
> Diffs
> -
> 
>   CMakeLists.txt e17bc25 
>   interfaces/viewerinterface.h e9e76a2 
>   mobile/components/CMakeLists.txt e09326a 
> 
> Diff: https://git.reviewboard.kde.org/r/127328/diff/
> 
> 
> Testing
> ---
> 
> Builds on Windows with MinGW. Starts, and loads okularpart, successfully.
> 
> 
> Thanks,
> 
> Thomas Friedrichsmeier
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127042: Fix QUrl string encoding

2016-02-26 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127042/
---

(Updated Feb. 26, 2016, 4:11 p.m.)


Status
--

This change has been marked as submitted.


Review request for Okular and Alex Richardson.


Changes
---

Submitted with commit 154c98fdaab2e593091fe644cfaeed96dd9fefaf by Aleix Pol to 
branch frameworks.


Repository: okular


Description
---

This Url is converted in to a string to be parsed back using `QUrl( urlString, 
QUrl::StrictMode )`.
By default, it uses `PrettyDecoded`, which makes `QUrl::StrictMode` choke.

An alternative patch would be to overload openDocument to also take QUrl and 
skip the back-and-forth conversion.


Diffs
-

  shell/okular_main.cpp 9bdc1fe 
  shell/shell.h c7c155b 
  shell/shell.cpp c97054a 

Diff: https://git.reviewboard.kde.org/r/127042/diff/


Testing
---

Now I can open files with a space in it.


Thanks,

Aleix Pol Gonzalez

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127042: Fix QUrl string encoding

2016-02-24 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127042/
---

(Updated Feb. 24, 2016, 6:21 p.m.)


Review request for Okular and Alex Richardson.


Changes
---

* Drops the strict parsing.
* Overloads openDocument so we don't need to go QUrl -> QString -> QUrl.


Repository: okular


Description
---

This Url is converted in to a string to be parsed back using `QUrl( urlString, 
QUrl::StrictMode )`.
By default, it uses `PrettyDecoded`, which makes `QUrl::StrictMode` choke.

An alternative patch would be to overload openDocument to also take QUrl and 
skip the back-and-forth conversion.


Diffs (updated)
-

  shell/okular_main.cpp 9bdc1fe 
  shell/shell.h c7c155b 
  shell/shell.cpp c97054a 

Diff: https://git.reviewboard.kde.org/r/127042/diff/


Testing
---

Now I can open files with a space in it.


Thanks,

Aleix Pol Gonzalez

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127021: Remove most KDELibs4Support linking

2016-02-18 Thread Aleix Pol Gonzalez


> On Feb. 10, 2016, 12:23 a.m., Albert Astals Cid wrote:
> > The new dialog "file type" looks fugly and tehre's no "all file types" 
> > anymore.
> 
> Aleix Pol Gonzalez wrote:
> https://git.reviewboard.kde.org/r/127024/
> 
> :)
> 
> Albert Astals Cid wrote:
> that won't fix http://i.imgur.com/AwIzhqr.png right? That's the Qt dialog 
> i guess? Is it really supposed to be that ugly?
> 
> Aleix Pol Gonzalez wrote:
> You don't have it set up properly, you should be getting the normal 
> KFileWidget-based dialog.
> 
> Albert Astals Cid wrote:
> I know i don't have it setup to give me the "Plasma experience", it's 
> giving me the "Okular experience outside plasma", and it is a serious 
> regression to what we have by using KFileDialog, don't you think?
> 
> Aleix Pol Gonzalez wrote:
> As I see it, there's no non-_Plasma Experience_. In Gnome, it should use 
> the GTK thingie, in Plasma it should use the Plasma dialog, and on Windows or 
> Android, whatever they use there: so it's not a regression but a feature.
> 
> Albert Astals Cid wrote:
>     There's more things in Linux land than Plasma and Gnome, i'm worried 
> about such an ugly dialog for those people.
> 
> Aleix Pol Gonzalez wrote:
> Let's create a wiki for them to install the Plasma integration? This way 
> they'll be fixing all of it, not just this precise dialog.
> 
> Or I can discard this review and port it to use KFileWidget. Or 
> undeprecate KFileDialog?
> 
> Albert Astals Cid wrote:
> Any idea why i have 3 commic book entries and 2 PDF entries? 
> http://i.imgur.com/trqsguU.png

PDF is because there's 2 PDF mimetypes supported (?):
```
"application/x-pdf", "application/pdf"
```

There's 3 comic book entries because these 3 mimetypes have the same 
description (!):
```
"application/x-cbz" "comic book archive"
"application/x-cbr" "comic book archive"
"application/x-cbt" "comic book archive"
```

First one could probably be filtered in the okular side, but also should be 
fixed in KIO. In fact, `QMimeType` is smart enough to tell they're the same.

Second one, we can either include the suffix in the description or merge them. 
Opinions?


- Aleix


-------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127021/#review92202
---


On Feb. 10, 2016, 3:23 a.m., Aleix Pol Gonzalez wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127021/
> ---
> 
> (Updated Feb. 10, 2016, 3:23 a.m.)
> 
> 
> Review request for Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Drops KDELibs4Support usage, mostly it wasn't actually used, except for that 
> KFileDialog usage that I ported.
> 
> 
> Diffs
> -
> 
>   shell/shell.cpp c97054a 
> 
> Diff: https://git.reviewboard.kde.org/r/127021/diff/
> 
> 
> Testing
> ---
> 
> Opening dialog seems to work fine, tests still pass except for parttest, but 
> I'm unsure it's related: https://paste.kde.org/p37pdubgf
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127021: Remove most KDELibs4Support linking

2016-02-16 Thread Aleix Pol Gonzalez


> On Feb. 10, 2016, 12:23 a.m., Albert Astals Cid wrote:
> > The new dialog "file type" looks fugly and tehre's no "all file types" 
> > anymore.
> 
> Aleix Pol Gonzalez wrote:
> https://git.reviewboard.kde.org/r/127024/
> 
> :)
> 
> Albert Astals Cid wrote:
> that won't fix http://i.imgur.com/AwIzhqr.png right? That's the Qt dialog 
> i guess? Is it really supposed to be that ugly?
> 
> Aleix Pol Gonzalez wrote:
> You don't have it set up properly, you should be getting the normal 
> KFileWidget-based dialog.
> 
> Albert Astals Cid wrote:
> I know i don't have it setup to give me the "Plasma experience", it's 
> giving me the "Okular experience outside plasma", and it is a serious 
> regression to what we have by using KFileDialog, don't you think?
> 
> Aleix Pol Gonzalez wrote:
> As I see it, there's no non-_Plasma Experience_. In Gnome, it should use 
> the GTK thingie, in Plasma it should use the Plasma dialog, and on Windows or 
> Android, whatever they use there: so it's not a regression but a feature.
> 
> Albert Astals Cid wrote:
> There's more things in Linux land than Plasma and Gnome, i'm worried 
> about such an ugly dialog for those people.

Let's create a wiki for them to install the Plasma integration? This way 
they'll be fixing all of it, not just this precise dialog.

Or I can discard this review and port it to use KFileWidget. Or undeprecate 
KFileDialog?


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127021/#review92202
---


On Feb. 10, 2016, 3:23 a.m., Aleix Pol Gonzalez wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127021/
> ---
> 
> (Updated Feb. 10, 2016, 3:23 a.m.)
> 
> 
> Review request for Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Drops KDELibs4Support usage, mostly it wasn't actually used, except for that 
> KFileDialog usage that I ported.
> 
> 
> Diffs
> -
> 
>   shell/shell.cpp c97054a 
> 
> Diff: https://git.reviewboard.kde.org/r/127021/diff/
> 
> 
> Testing
> ---
> 
> Opening dialog seems to work fine, tests still pass except for parttest, but 
> I'm unsure it's related: https://paste.kde.org/p37pdubgf
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127021: Remove most KDELibs4Support linking

2016-02-15 Thread Aleix Pol Gonzalez


> On Feb. 10, 2016, 12:23 a.m., Albert Astals Cid wrote:
> > The new dialog "file type" looks fugly and tehre's no "all file types" 
> > anymore.
> 
> Aleix Pol Gonzalez wrote:
> https://git.reviewboard.kde.org/r/127024/
> 
> :)
> 
> Albert Astals Cid wrote:
> that won't fix http://i.imgur.com/AwIzhqr.png right? That's the Qt dialog 
> i guess? Is it really supposed to be that ugly?
> 
> Aleix Pol Gonzalez wrote:
> You don't have it set up properly, you should be getting the normal 
> KFileWidget-based dialog.
> 
> Albert Astals Cid wrote:
> I know i don't have it setup to give me the "Plasma experience", it's 
> giving me the "Okular experience outside plasma", and it is a serious 
> regression to what we have by using KFileDialog, don't you think?

As I see it, there's no non-_Plasma Experience_. In Gnome, it should use the 
GTK thingie, in Plasma it should use the Plasma dialog, and on Windows or 
Android, whatever they use there: so it's not a regression but a feature.


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127021/#review92202
---


On Feb. 10, 2016, 3:23 a.m., Aleix Pol Gonzalez wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127021/
> ---
> 
> (Updated Feb. 10, 2016, 3:23 a.m.)
> 
> 
> Review request for Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Drops KDELibs4Support usage, mostly it wasn't actually used, except for that 
> KFileDialog usage that I ported.
> 
> 
> Diffs
> -
> 
>   shell/shell.cpp c97054a 
> 
> Diff: https://git.reviewboard.kde.org/r/127021/diff/
> 
> 
> Testing
> ---
> 
> Opening dialog seems to work fine, tests still pass except for parttest, but 
> I'm unsure it's related: https://paste.kde.org/p37pdubgf
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] Review Request 127042: Fix QUrl string encoding

2016-02-11 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127042/
---

Review request for Okular.


Repository: okular


Description
---

This Url is converted in to a string to be parsed back using `QUrl( urlString, 
QUrl::StrictMode )`.
By default, it uses `PrettyDecoded`, which makes `QUrl::StrictMode` choke.

An alternative patch would be to overload openDocument to also take QUrl and 
skip the back-and-forth conversion.


Diffs
-

  shell/okular_main.cpp 9bdc1fe 

Diff: https://git.reviewboard.kde.org/r/127042/diff/


Testing
---

Now I can open files with a space in it.


Thanks,

Aleix Pol Gonzalez

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127042: Fix QUrl string encoding

2016-02-11 Thread Aleix Pol Gonzalez


> On Feb. 12, 2016, 1:40 a.m., Alex Richardson wrote:
> > This will still fail when invoked via dbus right? maybe we should just 
> > remove the strict mode, I have no idea why I added that.

Well, it will work if the URL is strictly encoded.


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127042/#review92284
---


On Feb. 11, 2016, 8:50 p.m., Aleix Pol Gonzalez wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127042/
> ---
> 
> (Updated Feb. 11, 2016, 8:50 p.m.)
> 
> 
> Review request for Okular and Alex Richardson.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> This Url is converted in to a string to be parsed back using `QUrl( 
> urlString, QUrl::StrictMode )`.
> By default, it uses `PrettyDecoded`, which makes `QUrl::StrictMode` choke.
> 
> An alternative patch would be to overload openDocument to also take QUrl and 
> skip the back-and-forth conversion.
> 
> 
> Diffs
> -
> 
>   shell/okular_main.cpp 9bdc1fe 
> 
> Diff: https://git.reviewboard.kde.org/r/127042/diff/
> 
> 
> Testing
> ---
> 
> Now I can open files with a space in it.
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] Review Request 127021: Remove most KDELibs4Support linking

2016-02-09 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127021/
---

Review request for Okular.


Repository: okular


Description
---

Drops KDELibs4Support usage, mostly it wasn't actually used, except for that 
KFileDialog usage that I ported.


Diffs
-

  autotests/CMakeLists.txt 4530c33 
  generators/mobipocket/CMakeLists.txt 87995e3 
  shell/CMakeLists.txt 7a6af74 
  shell/shell.cpp c97054a 

Diff: https://git.reviewboard.kde.org/r/127021/diff/


Testing
---

Opening dialog seems to work fine, tests still pass except for parttest, but 
I'm unsure it's related: https://paste.kde.org/p37pdubgf


Thanks,

Aleix Pol Gonzalez

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127021: Remove most KDELibs4Support linking

2016-02-09 Thread Aleix Pol Gonzalez


> On Feb. 10, 2016, 12:23 a.m., Albert Astals Cid wrote:
> > The new dialog "file type" looks fugly and tehre's no "all file types" 
> > anymore.

https://git.reviewboard.kde.org/r/127024/

:)


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127021/#review92202
---


On Feb. 9, 2016, 3:51 p.m., Aleix Pol Gonzalez wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127021/
> ---
> 
> (Updated Feb. 9, 2016, 3:51 p.m.)
> 
> 
> Review request for Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> Drops KDELibs4Support usage, mostly it wasn't actually used, except for that 
> KFileDialog usage that I ported.
> 
> 
> Diffs
> -
> 
>   autotests/CMakeLists.txt 4530c33 
>   generators/mobipocket/CMakeLists.txt 87995e3 
>   shell/CMakeLists.txt 7a6af74 
>   shell/shell.cpp c97054a 
> 
> Diff: https://git.reviewboard.kde.org/r/127021/diff/
> 
> 
> Testing
> ---
> 
> Opening dialog seems to work fine, tests still pass except for parttest, but 
> I'm unsure it's related: https://paste.kde.org/p37pdubgf
> 
> 
> Thanks,
> 
> Aleix Pol Gonzalez
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 127021: Remove most KDELibs4Support linking

2016-02-09 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127021/
---

(Updated Feb. 10, 2016, 3:23 a.m.)


Review request for Okular.


Repository: okular


Description
---

Drops KDELibs4Support usage, mostly it wasn't actually used, except for that 
KFileDialog usage that I ported.


Diffs (updated)
-

  shell/shell.cpp c97054a 

Diff: https://git.reviewboard.kde.org/r/127021/diff/


Testing
---

Opening dialog seems to work fine, tests still pass except for parttest, but 
I'm unsure it's related: https://paste.kde.org/p37pdubgf


Thanks,

Aleix Pol Gonzalez

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 126375: Remove kdelibs4support from the generator plugins

2016-01-30 Thread Aleix Pol Gonzalez


> On Dec. 16, 2015, 5:42 p.m., Alex Richardson wrote:
> > ui/guiutils.cpp, line 207
> > 
> >
> > Not really related but it would be nice to handle remote URLs here as 
> > well, QFileDialog::getSaveFileUrl() and use KIO instead of QFile to save it?

Patches welcome? :D


> On Dec. 16, 2015, 5:42 p.m., Alex Richardson wrote:
> > generators/djvu/kdjvu.cpp, line 39
> > 
> >
> > Use qCDebug() together with ecm_qt_declare_logging_category() ?
> 
> Patrick Spendrin wrote:
> Yes, I only saw that after the review was opened, I'll adapt this to the 
> way the other generators handle it.

I'll fix it and commit the patch.


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126375/#review89607
---


On Dec. 16, 2015, 1:41 a.m., Patrick Spendrin wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126375/
> ---
> 
> (Updated Dec. 16, 2015, 1:41 a.m.)
> 
> 
> Review request for kdewin and Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> This removes kdelibs4support for all generators except the mobipocket one.
> The test executable for kimgio needs some windows fixes too, so I'll try
> to make a separate review for that.
> 
> 
> Diffs
> -
> 
>   CMakeLists.txt 72ff3e8754a9005dd09cf49e83d67b0a4f9258db 
>   generators/comicbook/CMakeLists.txt 
> 684613b5bd756696eff79b52f0e184588f19f3d5 
>   generators/comicbook/unrar.cpp 6290919286ee7c2fa8d64599aae44915750a2606 
>   generators/djvu/CMakeLists.txt 34dc1a139eaae868464fb158a35408000ffc2ed7 
>   generators/djvu/generator_djvu.cpp 740e38c665b7f3a0d174b56c2fbe2bbc5fb5cfe0 
>   generators/djvu/kdjvu.cpp 3a5b29e6869222ff94c503d6bc46e736b24e7f60 
>   generators/dvi/CMakeLists.txt 38f321a1118f68027a2e1e365f79ee607f67bfe7 
>   generators/dvi/pageSize.cpp fefedd5a5de843c47abba15162b9835848119f38 
>   generators/epub/CMakeLists.txt 41ecd23a4d04997aef297f190da8f1b06e0732d8 
>   generators/kimgio/CMakeLists.txt 5d9011b02ae76daac6b98e390b13857837dd9bc4 
>   generators/kimgio/generator_kimgio.cpp 
> 84c155b5ad8da5057a28faaffa417ecb60a64ab3 
>   generators/ooo/CMakeLists.txt eb6f63ca00c898c437c40c68466795b2b8f70f64 
>   generators/ooo/styleparser.cpp 0547b84b13287591ea5248d47065dbf925524fb1 
>   generators/poppler/CMakeLists.txt a696ffbb8218abb8094afbc0db1b249bc2d9c3c8 
>   generators/poppler/generator_pdf.cpp 
> 90db80a41ecef76733ab79ebc41c162725cf30ed 
>   generators/spectre/CMakeLists.txt d7eb0e28d4d15072e0c118dd79b005d8ac9ea9c1 
>   generators/tiff/CMakeLists.txt 89603085fef5fdfd135f04e1d4f0026772a663b0 
>   generators/tiff/generator_tiff.cpp cf4f2762a506a07288bb6fb1169ddbceb5a5eccb 
>   ui/guiutils.cpp 379d1e625e7b77a870ed04258a3fe1de3aadeb91 
>   ui/pagepainter.cpp 0c8443cc93c0d81e0cf92a7f5bd9ac3c79a0fb3a 
> 
> Diff: https://git.reviewboard.kde.org/r/126375/diff/
> 
> 
> Testing
> ---
> 
> Windows.
> 
> 
> Thanks,
> 
> Patrick Spendrin
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 126913: use QScreen unconditionally instead of libkscreen

2016-01-30 Thread Aleix Pol Gonzalez


> On Jan. 30, 2016, 4:15 p.m., Albert Astals Cid wrote:
> > Hold an A4 paper against your screen at 100% zoom, is the page of proper 
> > size?

I just tested it, looks good.


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126913/#review91799
---


On Jan. 28, 2016, 4:07 a.m., Sebastian Kügler wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126913/
> ---
> 
> (Updated Jan. 28, 2016, 4:07 a.m.)
> 
> 
> Review request for Okular and Albert Astals Cid.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> This patch removes libkscreen usage and ports it to QScreen.
> 
> - Instead of retrieving and polishing the DPI from libkscreen, use
>   the widget's windowhandle to retrieve the current screen and return
>   that as the widget's DPI.
> 
> - Remove libkscreen from buildsystem
> 
> - Kill old libkscreen code. This wasn't built anyway, and wouldn't build
>   against new libkscreen anyway.
> 
> 
> Diffs
> -
> 
>   CMakeLists.txt 492de00 
>   config-okular.h.cmake 4b4b2ee 
>   core/utils.cpp 2aa8f07 
> 
> Diff: https://git.reviewboard.kde.org/r/126913/diff/
> 
> 
> Testing
> ---
> 
> little, started okular on my laptop and viewed a pdf, nothing odd going on...
> 
> 
> Thanks,
> 
> Sebastian Kügler
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 126375: Remove kdelibs4support from the generator plugins

2016-01-30 Thread Aleix Pol Gonzalez


> On Dec. 16, 2015, 5:42 p.m., Alex Richardson wrote:
> > generators/djvu/kdjvu.cpp, line 39
> > <https://git.reviewboard.kde.org/r/126375/diff/1/?file=422860#file422860line39>
> >
> > Use qCDebug() together with ecm_qt_declare_logging_category() ?
> 
> Patrick Spendrin wrote:
> Yes, I only saw that after the review was opened, I'll adapt this to the 
> way the other generators handle it.
> 
> Aleix Pol Gonzalez wrote:
> I'll fix it and commit the patch.

They're ifdef'd, not really required IMHO.


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126375/#review89607
---


On Dec. 16, 2015, 1:41 a.m., Patrick Spendrin wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126375/
> ---
> 
> (Updated Dec. 16, 2015, 1:41 a.m.)
> 
> 
> Review request for kdewin and Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> This removes kdelibs4support for all generators except the mobipocket one.
> The test executable for kimgio needs some windows fixes too, so I'll try
> to make a separate review for that.
> 
> 
> Diffs
> -
> 
>   CMakeLists.txt 72ff3e8754a9005dd09cf49e83d67b0a4f9258db 
>   generators/comicbook/CMakeLists.txt 
> 684613b5bd756696eff79b52f0e184588f19f3d5 
>   generators/comicbook/unrar.cpp 6290919286ee7c2fa8d64599aae44915750a2606 
>   generators/djvu/CMakeLists.txt 34dc1a139eaae868464fb158a35408000ffc2ed7 
>   generators/djvu/generator_djvu.cpp 740e38c665b7f3a0d174b56c2fbe2bbc5fb5cfe0 
>   generators/djvu/kdjvu.cpp 3a5b29e6869222ff94c503d6bc46e736b24e7f60 
>   generators/dvi/CMakeLists.txt 38f321a1118f68027a2e1e365f79ee607f67bfe7 
>   generators/dvi/pageSize.cpp fefedd5a5de843c47abba15162b9835848119f38 
>   generators/epub/CMakeLists.txt 41ecd23a4d04997aef297f190da8f1b06e0732d8 
>   generators/kimgio/CMakeLists.txt 5d9011b02ae76daac6b98e390b13857837dd9bc4 
>   generators/kimgio/generator_kimgio.cpp 
> 84c155b5ad8da5057a28faaffa417ecb60a64ab3 
>   generators/ooo/CMakeLists.txt eb6f63ca00c898c437c40c68466795b2b8f70f64 
>   generators/ooo/styleparser.cpp 0547b84b13287591ea5248d47065dbf925524fb1 
>   generators/poppler/CMakeLists.txt a696ffbb8218abb8094afbc0db1b249bc2d9c3c8 
>   generators/poppler/generator_pdf.cpp 
> 90db80a41ecef76733ab79ebc41c162725cf30ed 
>   generators/spectre/CMakeLists.txt d7eb0e28d4d15072e0c118dd79b005d8ac9ea9c1 
>   generators/tiff/CMakeLists.txt 89603085fef5fdfd135f04e1d4f0026772a663b0 
>   generators/tiff/generator_tiff.cpp cf4f2762a506a07288bb6fb1169ddbceb5a5eccb 
>   ui/guiutils.cpp 379d1e625e7b77a870ed04258a3fe1de3aadeb91 
>   ui/pagepainter.cpp 0c8443cc93c0d81e0cf92a7f5bd9ac3c79a0fb3a 
> 
> Diff: https://git.reviewboard.kde.org/r/126375/diff/
> 
> 
> Testing
> ---
> 
> Windows.
> 
> 
> Thanks,
> 
> Patrick Spendrin
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request 126379: Windows string fixes

2015-12-28 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126379/#review90208
---


+1

- Aleix Pol Gonzalez


On Dec. 27, 2015, 1:28 a.m., Patrick Spendrin wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126379/
> ---
> 
> (Updated Dec. 27, 2015, 1:28 a.m.)
> 
> 
> Review request for kdewin and Okular.
> 
> 
> Repository: okular
> 
> 
> Description
> ---
> 
> This patch changes multiline QStringLiterals to QString::fromLatin1
> as QStringLiterals doesn't understand multiline strings on windows.
> Also, strncasecmp is replaced by the portable qstricmp function provided
> by QByteArray header.
> 
> 
> Diffs
> -
> 
>   generators/dvi/dviRenderer_prescan.cpp 
> 783c7273c6f7d1be03f5e970dc23e0a24a31197f 
>   generators/dvi/psgs.cpp b1eedc42864abf5a868a5bc6eebf258b1f7cf168 
>   generators/dvi/special.cpp 6a9fe69b2d44cfed95284b4d37f767c00c73721c 
>   generators/epub/converter.cpp 16a6b5beabe1803ea4cdacc4d571edca7ff9ec23 
>   ui/latexrenderer.cpp 8e42a9f88a8aa4ff73b544bf41642d59ca86474a 
>   ui/pageview.cpp 13727e4647781cd9222956cae2c9e3fbc1a42324 
> 
> Diff: https://git.reviewboard.kde.org/r/126379/diff/
> 
> 
> Testing
> ---
> 
> Windows.
> 
> 
> Thanks,
> 
> Patrick Spendrin
> 
>

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request: Remove TODO and make what it is asking to do

2011-08-06 Thread Aleix Pol Gonzalez


 On Aug. 5, 2011, 10:07 p.m., Albert Astals Cid wrote:
  I wonder if we can ever end up in this code, because
 
 Albert Astals Cid wrote:
 Wops, here comes the full comment D
 
 I wonder if we can ever end up in this code, because the else is for zip 
 files containing a fb2 file but the .desktop file of the plugin says it 
 supports application/x-fictionbook+xml so i can not see a way that the code 
 flow ends up in that else branch of the if, so we can either just push your 
 code because it is techinically correct or remove all the if altogether :D

You call, I'm fine with committing and I'm fine with you removing all together 
:). Maintainer!


- Aleix


---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102220/#review5420
---


On Aug. 5, 2011, 7:52 a.m., Aleix Pol Gonzalez wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://git.reviewboard.kde.org/r/102220/
 ---
 
 (Updated Aug. 5, 2011, 7:52 a.m.)
 
 
 Review request for Okular.
 
 
 Summary
 ---
 
 While on the plane Albert and I, we decided to fix okular stuff.
 
 This was something to do, hope that helps.
 
 Deletes a resource that is never freed.
 
 
 Diffs
 -
 
   generators/fictionbook/document.cpp e943566 
 
 Diff: http://git.reviewboard.kde.org/r/102220/diff
 
 
 Testing
 ---
 
 None, didn't have any fictionbook to try.
 
 
 Thanks,
 
 Aleix
 


___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


Re: [Okular-devel] Review Request: Remove TODO and make what it is asking to do

2011-08-05 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102220/
---

(Updated Aug. 5, 2011, 7:52 a.m.)


Review request for Okular.


Summary (updated)
---

While on the plane Albert and I, we decided to fix okular stuff.

This was something to do, hope that helps.

Deletes a resource that is never freed.


Diffs
-

  generators/fictionbook/document.cpp e943566 

Diff: http://git.reviewboard.kde.org/r/102220/diff


Testing
---

None, didn't have any fictionbook to try.


Thanks,

Aleix

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel


[Okular-devel] Review Request: Change mouse cursor when changing the current tool.

2011-08-05 Thread Aleix Pol Gonzalez

---
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102221/
---

Review request for Okular.


Summary
---

Update the cursors when changing the current mode. Addresses the problems in 
the bug report.

- Use a opened/closed hand for browsing.
- Use cross for selection.


This addresses bug 271816.
http://bugs.kde.org/show_bug.cgi?id=271816


Diffs
-

  ui/pageview.cpp f103b2f 

Diff: http://git.reviewboard.kde.org/r/102221/diff


Testing
---

Play around with okular and see if it works as expected, which does apparently.


Thanks,

Aleix

___
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel