Commit graph

1302 commits

Author SHA1 Message Date
Albert Astals Cid 0c2aa70aca Merge remote-tracking branch 'origin/KDE/4.13' 2014-04-02 23:44:22 +01:00
Albert Astals Cid a7f3a1ac37 Protect us against broken drivers/screens
Some drivers screens return 0x0 as their screen size so we can't use it
to calculate the dpi

BUGS: 332746
BUGS: 332494
FIXED-IN: 4.13.0
2014-04-02 23:43:38 +01:00
Albert Astals Cid 8ee72f3301 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-31 02:00:25 +02:00
Albert Astals Cid 444f66ac29 Some more output that can be of help 2014-03-31 02:00:09 +02:00
Albert Astals Cid 5f211f5646 Prepare for 4.13 RC 2014-03-25 20:25:17 +01:00
Albert Astals Cid 74d97571c3 Prepare for 4.12.4 2014-03-25 20:24:07 +01:00
Albert Astals Cid 6041d1fcd2 prepare for Beta3 2014-03-17 22:25:03 +01:00
Albert Astals Cid d175d829f2 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-12 23:08:04 +01:00
Christoph Feck 60cc5dc98e TextDocumentGenerator: Use black as default text color
REVIEW: 111681
BUGS: 253583
BUGS: 322547
FIXED-IN: 4.12.90
2014-03-12 23:01:42 +01:00
Albert Astals Cid 83c75c7d04 Prepare for 4.13 Beta 2 2014-03-11 19:48:44 +01:00
Albert Astals Cid 397557e458 Prepare for 4.13 Beta 1 2014-03-06 00:34:26 +01:00
Montel Laurent 5e16604fb3 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-02 14:00:25 +01:00
Montel Laurent 7b79ca1b36 Pedentic-- 2014-03-02 13:59:49 +01:00
Albert Astals Cid 9858322668 Merge remote-tracking branch 'origin/KDE/4.13' 2014-03-01 17:11:15 +01:00
Albert Astals Cid 3c79ac8ea1 Merge remote-tracking branch 'origin/KDE/4.12' into KDE/4.13 2014-03-01 17:03:23 +01:00
Albert Astals Cid a75a7ed086 Do not start a text generation thread if we're closing
Fixes occasional crash and makes no sense either :D
2014-03-01 17:01:14 +01:00
Albert Astals Cid b8778575f4 master is now 4.14 2014-02-28 00:12:35 +01:00
Albert Astals Cid 7829a47570 Prepare for 4.12.3 2014-02-28 00:10:30 +01:00
Jaan Vajakas a80922d45e Improve XY Cut layout recognition code
It was a simple bug in the XY Cut layout recognition code that made it too eager to see columns everywhere.
Also removed the dependence of the layout analysis algorithms on the display DPI (introduced by the recently added feature of using KScreen) to make their behavior more predictable and reproducible.

BUGS: 326207
BUGS: 331090
FIXED-IN: 4.13.0
REVIEW: 115759
2014-02-25 23:59:41 +01:00
Michal Humpula c07ee043a3 Multiple Tiles Managers per Page
It's straighforward implementation. Every single place, where there were call for (or with) TilesManager, now has a DocumentObserver as companion. The m_tiledManager reference in PagePrivate was changed to QMap<DocumentObserver, TilesManager>.

REVIEW: 113986
2014-02-19 23:41:22 +01:00
Albert Astals Cid 66c6432f5b Prepare for 4.12.2 2014-01-28 23:01:01 +01:00
Albert Astals Cid 8814a6fa3d Do not crash if we don't pass down a widget to show on 2014-01-13 01:47:31 +01:00
Eugene Shalygin ed35594627 Use DPI of current screen for PDF rendering
Includes some fixes from Albert:
 * kscreen cmake fixes
   Don't make libkscreen mandatory, give the proper version we need
 * Fix the @since
 * Kill Resolution and use a QSizeF
   I first thought QSizeF didn't make sense, but well what's a dpi if not a number of pixels in width and some others in height?
 * Remove unwanted const
 * Remove unneeded utils.h includes
 * Fix comments on realDPIXY()
 * Make it compile in non X11

REVIEW: 111829
2014-01-13 01:37:56 +01:00
Albert Astals Cid 52ab967075 Add the error message for the error 2014-01-12 19:21:11 +01:00
Albert Astals Cid 0aec32fc7d Don't try to print something with invalid sizes
Unfortunately as we can't add new strings to stable versions it'd say "unwnown error" if that happens
Don't think it's too bad since this shouldn't be happening much

BUGS: 329562
2014-01-12 19:21:10 +01:00
Albert Astals Cid c324c532d1 Don't try to print something with invalid sizes
Unfortunately as we can't add new strings to stable versions it'd say "unwnown error" if that happens
Don't think it's too bad since this shouldn't be happening much

BUGS: 329562
2014-01-12 19:17:10 +01:00
Jan Kundrát 25d6407ffc Merge branch 'KDE/4.12' 2014-01-11 14:51:30 +01:00
Jan Kundrát 2bd0ec5fda The doesConsumeX method was defined but never used
Having functions which are defined but not used serves no gain. This patch
therefore removes the extra method and updates the comment reference in the
second one to make it standalone.

REVIEW: 114959
2014-01-11 00:25:28 +01:00
Jan Kundrát 677e0660fa Remove unused arguments
REVIEW: 114958
2014-01-11 00:25:09 +01:00
Albert Astals Cid 59e8643697 Prepare for 4.12.1 2014-01-09 00:27:35 +01:00
Albert Astals Cid 10b6560cf7 Merge remote-tracking branch 'origin/KDE/4.12' 2014-01-05 01:32:53 +01:00
Albert Astals Cid 9adbd054e4 Do not resetSearch if we're closing down
It's useless as it will be reset anyway on the close down procedure
and it will cause a crash if you are unlucky.

Reason:
  * In the document observers qset pageview comes before
  * We are closing and notifySetup with an empty vector
  * pageview empties its vector in notifySetip
  * part sees the notifySetup and resets the search
  * resetting the search calls another notifySetup with the non empty page vector
    that will be deleted asap when we go back to the first notifySetup

There are another billion ways to fix this:
 * Don't allow nested notifySetup
 * Clear the running searches before sending the first notifySetup
 * Empty the pagesVector before sending the first notifySetup
 * etc

But i feel this is the less invasive one (even if it may not be the most technically correct)

BUGS: 329582
FIXED-IN: 4.12.1
2014-01-05 01:32:19 +01:00
Jon Mease 43246c563b Viewport transition refinements for Find and Undo/Redo actions
REVIEW: 114060

This patch introduces viewport transitions for undo/redo actions on annotations and forms.  When an annotation/form action is undone/redone but the associated annotation/form is not currently visible, the viewport is updated to center on the undo/redo action. If the annotation/form is visible, the viewport is not updated.

The viewport transitions for the Find action have also been updated to this same algorithm.  Previously the viewport was moved to center on each matching search term even if the search term was already visible in the viewport. This lead to unnecessary viewport transitions if the search term matched several items in a single paragraph for example.

These proposed changes to the viewport transition behavior are consistent with the find and undo behavior of many existing applications including Kate, Open Office, and Foxit PDF Reader.
2013-12-29 23:27:30 +01:00
Albert Astals Cid 25f96c52ea Merge remote-tracking branch 'origin/KDE/4.12' 2013-12-15 23:47:49 +01:00
Albert Astals Cid 88e4bbbbf5 Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-12-15 23:47:27 +01:00
Albert Astals Cid 5dfffec650 Make sure string passed to -J is no more than 255 bytes
lpr refuses to print referencing http://tools.ietf.org/search/rfc2911#section-4.1.2
Unfortunately cutting at 255 bytes may mess up the end of the name, but oh well
BUGS: 326617
FIXED-IN: 4.11.5
2013-12-15 23:46:27 +01:00
Albert Astals Cid 6c0299151f update for the release 2013-12-11 20:14:18 +01:00
Albert Astals Cid 7264e77407 Merge remote-tracking branch 'origin/KDE/4.12' 2013-11-28 00:06:37 +01:00
Albert Astals Cid 56c6b61311 Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-11-28 00:06:13 +01:00
Albert Astals Cid 9c3165d214 Going back and forward in history may also change the page
So notify those that care about tha page and not about the viewport
2013-11-28 00:05:24 +01:00
Egor Matirov f98f55db9d Extend AudioPlayer so that it gives info about if something is playing at the moment or not
Reviewed by Jaydeep Solanki

REVIEW: 114019
2013-11-27 23:27:30 +01:00
Albert Astals Cid d2d4528bea Increase versions for 4.12 RC 2013-11-25 22:23:02 +01:00
Albert Astals Cid 7881731a2b Prepare for 4.11.4 release 2013-11-23 17:53:45 +01:00
Albert Astals Cid 78fa306931 Prepare for Beta3 2013-11-20 00:29:47 +01:00
Albert Astals Cid ff34a5e493 prepare for beta1 2013-11-04 23:17:10 +01:00
Albert Astals Cid b991b11ce2 increase devel version 2013-11-04 23:10:57 +01:00
Albert Astals Cid 5a1afc51e3 Pass down to lpr the printer margins
This makes automagically work the printing on printers with
hard-margins since the QPrinter dialog margins are initialized to the printer
hard-margins. If you still want the old and mostly unuseful
behaviour of not having any margin (and thus your printer not printing things on the borders) you
can always set the margins to 0 in the dialog

BUGS: 319476
FIXED-IN: 4.12.0
2013-10-29 21:25:54 +01:00
Albert Astals Cid e475ac9f4a prepare for 4.11.3 2013-10-26 11:54:43 +02:00
Jaydeep Solanki e9ccc4867b epub video support 2013-10-24 00:20:04 +02:00
Jaan Vajakas dff8bf1b36 Improve searching code
Also simplified code a bit by removing unnecessary calls to toLower in TextPagePrivate::findTextInternalForward and TextPagePrivate::findTextInternalBackward I also fixed a small bug: the letter capital I with dot above (U+0130) did not match itself in case-insensitive mode on Qt 4.8.4 (U+0130 still does not match lowercase i (U+0069), which can be considered another bug, that I didn't fix (although this behavior conforms to the Unicode case folding rules)).

(I did not implement the Knuth-Morris-Pratt algorithm that I promised in a comment of Bug 323263 because on second thought I find that the win, if any, would probably be negligible except for some very special documents and special query strings.)

BUGS: 323262
BUGS: 323263
REVIEW: 112135
2013-10-18 16:30:07 +02:00