qt5base-lts/src
Marc Mutz 23c1b132b1 QPdf: Extract Method is_monochrome()
The old code repeatedly evaluated QImage::colorTable(), which returns
a vector by value.

Instead, factor the checks performed on the color table into
a helper function and pass the color table to it, reducing
the number of evaluations from three to one.

Also makes the code more readable, because the condition now
fits on a single line.

Change-Id: I82773c235047e76b87c8a9d630f7df9440430351
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
2014-09-02 19:06:49 +02:00
..
3rdparty Merge remote-tracking branch 'origin/5.4' into dev 2014-09-01 11:35:53 +02:00
android Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4 2014-08-19 00:42:00 +02:00
angle Let ANGLE use multithreaded devices if necessary. 2014-08-28 11:09:55 +02:00
concurrent QtConcurrent::run: allow to select the thread pool on which to run the task 2014-08-05 18:05:04 +02:00
corelib Remove the enum for specifying {In|Out|InOut|OutIn} subtypes. 2014-09-02 19:06:42 +02:00
dbus Replace the const QString global static with a QStringLiteral 2014-08-13 09:07:38 +02:00
gui QPdf: Extract Method is_monochrome() 2014-09-02 19:06:49 +02:00
network ssl: disable (broken) i/o on DER encoded keys 2014-08-30 17:36:23 +02:00
opengl Merge remote-tracking branch 'origin/5.3' into 5.4 2014-08-12 13:05:02 +02:00
openglextensions
platformheaders Rework platformheaders qdoc conf 2014-08-22 09:26:27 +02:00
platformsupport Merge remote-tracking branch 'origin/5.4' into dev 2014-09-01 11:35:53 +02:00
plugins Merge remote-tracking branch 'origin/5.4' into dev 2014-09-01 11:35:53 +02:00
printsupport Merge remote-tracking branch 'origin/5.3' into 5.4 2014-08-12 13:05:02 +02:00
sql Merge remote-tracking branch 'origin/5.3' into dev 2014-07-29 12:56:06 +02:00
testlib Fix valgrind support in QTestLib's benchmarking 2014-08-22 22:17:45 +02:00
tools QDoc: fix Node::setPageType() when type name is "faq" 2014-08-31 14:17:11 +02:00
widgets Do not draw combo box items as checked 2014-09-02 10:32:53 +02:00
winmain Merge remote-tracking branch 'origin/5.3' into 5.4 2014-08-12 13:05:02 +02:00
xml Merge remote-tracking branch 'origin/5.3' into dev 2014-07-14 10:35:51 +02:00
src.pro Load winsys and gl dynamically in the windows plugin 2014-05-22 22:00:59 +02:00