Commit Graph

11 Commits

Author SHA1 Message Date
Emil Lundberg
ad28c0f9bf
Use std::vector instead of dynamic-length array 2018-01-22 14:09:00 +01:00
Emil Lundberg
91495df002
Make QR scanning work in both Mac and Linux 2018-01-22 13:45:09 +01:00
Emil Lundberg
10f255e409
Use x() and y() methods to find top right corner for screenshots 2018-01-22 11:02:58 +01:00
Emil Lundberg
8584c8b3a5
Include above-and-left-of-primary pixels in QR screenshots
`QGuiApplication::primaryScreen()->grabWindow(...)` only includes pixels
below and to the right of the top left corner of the primary screen (at
least in Linux). Consider a screen arrangement like:

                          +-------------+
    +---------++---------+|             |
    +         ||         ||             |
    +    3    || PRIMARY ||      2      |
    +---------++---------++-------------+

With this screen arrangement, the top of screen 2 and all of screen 3
would be left out of the screenshot.

Combining the results of calling `grabWindow(...)` on each `QScreen`
resolves the issue.
2018-01-16 15:48:17 +01:00
Emil Lundberg
c219b26cf2
Fix indentation in screenshot.h 2018-01-16 15:48:16 +01:00
Dag Heyman
9677596b60
qr scan: Use virtual geometry for screenshot 2017-02-27 15:23:34 +01:00
Dag Heyman
e7a45abe7b
Support multiple monitors in QR scan 2017-02-15 15:00:30 +01:00
Dag Heyman
9d6e248cae
Add QR parse logic 2017-02-15 10:13:57 +01:00
Dag Heyman
2777c0c9d3
Convert screenshot to bitarray 2017-02-14 13:12:24 +01:00
Dag Heyman
b41cade4fa
Return base64 data 2017-02-13 13:36:48 +01:00
Dag Heyman
6df435663b
Add frame for calling c++ screenshot code 2017-02-13 13:03:58 +01:00