Commit Graph

208 Commits

Author SHA1 Message Date
Uwe Rathmann a73ee6baba Squashed commit of the following:
commit e2887cdc9d7cbf69445c325fe074578e2f38da6c
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Mon Apr 11 09:58:03 2022 +0200

    wip

commit 63efe9f3ad95fdf3d9fb15c929a45b0dc7cc681c
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Mon Apr 11 09:39:18 2022 +0200

    wip

commit a2f3621fb6fea787f32c53428eee26f30c69510c
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Mon Apr 11 08:04:11 2022 +0200

    wip
2022-04-11 10:01:24 +02:00
Uwe Rathmann eaa5a63278 hash calls harmonized 2022-03-25 11:21:32 +01:00
Uwe Rathmann 55d5f99575 introducing QskHashValue to work around Qt5/6 incompatibilities 2022-03-25 10:28:06 +01:00
Uwe Rathmann 3b683ba6d4 reserving memory in advance 2022-03-24 17:13:09 +01:00
Uwe Rathmann ca36a1705d Q_DISABLE_COPY added 2022-03-24 17:12:34 +01:00
Uwe Rathmann d81e8991af pimpled 2022-03-24 11:14:46 +01:00
Uwe Rathmann b89fa86b67 using qAsConst 2022-03-24 10:39:33 +01:00
Uwe Rathmann 80a42f6d56 using reference parameters 2022-03-24 08:09:30 +01:00
Uwe Rathmann 057866e7ff disable copying 2022-03-24 08:08:40 +01:00
Uwe Rathmann f44208213c Squashed commit of the following:
commit 547927f937a3260d5b23068f06cd181de9b7c763
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Wed Mar 23 15:38:40 2022 +0100

    wip

commit ca06b1da4bf9c5b30ef2857f0b6c1e4fb137a64e
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Wed Mar 23 15:30:31 2022 +0100

    using private classes

commit 4977b0afa481039f22b64e7f55262be8053a26c2
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Wed Mar 23 15:18:20 2022 +0100

    avoid using private Qt headers in examples
2022-03-23 15:39:17 +01:00
Uwe Rathmann 1cc0dff8d5 uncrustified 2022-03-23 11:54:34 +01:00
Uwe Rathmann 598224e487 qmake setup changed 2022-03-18 12:32:57 +01:00
Uwe Rathmann ae2c6d87a8 upport for Qt < Qt 5.12 dropped 2022-03-08 11:53:46 +01:00
Uwe Rathmann 18b7f9590e using references 2022-02-04 16:18:14 +01:00
Peter Hartmann ac8ef9cd5a
Box renderer: Support border gradients (#158)
* QskBoxBorderColors: Use gradients instead of colors

* QskBoxBorderColors: rename API

* render gradients on borders

* boxes example: Also draw gradient borders

* calculate proper numbers of needed border colors

* fixup with example

* support rounded corners

* support more colors in rounded color gradients

I THINK WE DON'T REALLY NEED THIS COMMIT

* We don't need this commit either

* Revert "We don't need this commit either"

This reverts commit 2dc38064f7fee1d0505262fe5cebcf9e1fb16cea.

* Revert "support more colors in rounded color gradients"

This reverts commit 5754d2d0773d8273d42ae1775b53d40f5e6af26a.

* fix borders for rect ellipses

* play around a bit

* small fixes

* some helper stuff and missing stuff

* user border colors

* close to something working somehow

* works a bit better

* put it into an own function

* rearrange a bit

* something's off

* still off, but seems like we need an additional line

* works but hackish

* now it works

* bring back samples

* correction

* pimp up example

* fix normal rendering

* some more debugging etc.

* turn around gradients

* turn around rectangular gradients as well

* turn around easier

* more test cases

* fix fill case

* more test cases

* clean up a bit

* clean up example

* clean up some more

* incorporate feedback from Uwe

* fix bug when using horizontal gradients
2022-02-04 16:11:11 +01:00
Uwe Rathmann 262e5517f7 avoid using the same procedure name 2022-01-21 07:28:34 +01:00
Uwe Rathmann 622c6f06c2 trailing semicolons removed 2021-12-27 10:21:03 +01:00
Uwe Rathmann ca2cdf7663 beautified 2021-12-23 19:05:59 +01:00
Uwe Rathmann af8df9f4be minor improvements 2021-12-23 18:16:18 +01:00
Uwe Rathmann 0b5b622d1a minor improvements 2021-12-22 10:55:48 +01:00
Uwe Rathmann b76d96bb2e forgotten debug code removed 2021-12-13 16:53:18 +01:00
Uwe Rathmann 738de14d4c hiding the devicePixelRato scaling in the nodes 2021-12-13 16:43:34 +01:00
Uwe Rathmann e4ffc3f074 manually aligning textures to avoid rounding issues 2021-12-10 13:39:41 +01:00
Uwe Rathmann be16e74336 wip 2021-12-08 08:26:55 +01:00
Uwe Rathmann b5bc26eb63 using degrees for arcs ( not multiplied by 16, what QPainter wants ) 2021-12-02 17:15:41 +01:00
Uwe Rathmann 14040bf652 workaround for monochrome gradients with additional stops 2021-10-25 08:29:12 +02:00
Peter Hartmann b89621a3d4
Iot dashboard arc rendering (#134)
* add QskArcNode and QskArcRenderer

* IOT example: Use QskArcNode instead of own arc node

* move some functionality to the arc renderer

* add QskArcMetrics

* add methods to QskSkinlet

* remove circular bar graph node

We can now use updateArcNode() and don't need our own method.

* support linear gradients in the arc renderer

* clean up

* incorporate Uwe's changes

* add overloads for updateArcNode() when the angles are set dynamically

The angles don't always come from the style, so we need overloads
in QskSkinlet to set them dynamically.
2021-10-20 07:50:25 +02:00
Uwe Rathmann 15102be421 code duplication removed 2021-10-19 06:44:17 +02:00
Uwe Rathmann f9ca36443e Qt 6.2 adjustments 2021-09-21 08:51:01 +02:00
Uwe Rathmann 1e9080ee82 typo fixed 2021-09-18 14:06:31 +02:00
Uwe Rathmann 341d60e39b QskGradientStops introduced 2021-09-17 13:35:11 +02:00
Uwe Rathmann 89ceca4fb4 missing const qualifier added 2021-08-06 14:22:50 +02:00
Uwe Rathmann 923affe749 uncrustified 2021-08-04 09:31:16 +02:00
Uwe Rathmann 44f9f36d0d beautified 2021-07-14 13:30:24 +02:00
Uwe Rathmann 34b158b023 code changes to help the static code analyzer 2021-07-12 08:26:04 +02:00
Uwe Rathmann a73df141c6 avoid overlapping tick labels 2021-04-19 09:28:19 +02:00
Uwe Rathmann d59d31ceff position of tick labels fixed 2021-02-23 12:03:41 +01:00
Uwe Rathmann 5cb33ad79b renamed to QskQuickItem::UpdateFlags 2021-02-09 08:13:20 +01:00
Uwe Rathmann 40b257a36f hash function for QskGraphic added 2021-02-05 13:21:35 +01:00
Uwe Rathmann 956e830691 boundingLabelSize introduced 2021-02-01 10:22:54 +01:00
Uwe Rathmann fbf2a33a9a uncrustified 2020-12-05 15:09:31 +01:00
Uwe Rathmann 4803701a56 QskScaleRenderer added ( work in progress ) 2020-11-22 15:28:56 +01:00
Uwe Rathmann 8fb18ab145 codemoved to QskSGNode 2020-11-22 15:27:58 +01:00
Uwe Rathmann e8351e4496 adjustments for Qt 6.0.0 beta5 2020-11-21 20:36:47 +01:00
Uwe Rathmann 4fd41e7be2 some classes for scales/axes 2020-11-13 15:34:02 +01:00
Uwe Rathmann 774a34a6b8 finally the code seems to work with Qt 6.0.0 Beta 2 2020-11-01 16:57:59 +01:00
Uwe Rathmann 75cdda5f6a working towards Qt6 2020-11-01 15:44:15 +01:00
Uwe Rathmann 271b595609 code moved to QskTextureRenderer 2020-11-01 10:43:16 +01:00
Uwe Rathmann c9e959e73f makeing code more readable 2020-11-01 09:28:20 +01:00
Uwe Rathmann 4d7d9735dc prepairing Qt6 usage 2020-10-26 18:06:06 +01:00
Uwe Rathmann 07cdcc56df code improved 2020-10-26 14:13:57 +01:00
Uwe Rathmann bb0cb27e69 version ifdefing simplified 2020-10-20 17:47:19 +02:00
Uwe Rathmann a5cf44a869 missing include added 2020-10-20 17:46:22 +02:00
Uwe Rathmann c9717a9d33 render bug for ellipsoid monochrome boxes fixed 2020-08-05 14:02:03 +02:00
Uwe Rathmann d276dcb7ae debuf functions improved 2020-08-05 14:01:40 +02:00
Uwe Rathmann 4bc74e02df more C++11 specifier 2020-05-03 14:00:19 +02:00
Uwe Rathmann 5cbeca4921 more C++11 specifier 2020-05-03 13:59:27 +02:00
Uwe Rathmann 8fccc35156 detection of non-translating transformations fixed 2019-12-05 11:26:48 +01:00
Uwe Rathmann 3046650f0d QskGraphic::Commandtypes added 2019-12-04 18:33:30 +01:00
Uwe Rathmann d67d83dd85 using QOpenGLPaintDevice::setPaintFlipped 2019-10-29 07:02:30 +01:00
Uwe Rathmann 93e8009c78 0 filling of the FBO in the OpenGL path 2019-10-28 09:41:12 +01:00
Uwe Rathmann 1f59962360 devicePixelRatio detection moved to QskTextureRenderer 2019-10-27 08:11:47 +01:00
Uwe Rathmann 6dc7fcd6c9 don't recreate textures when the target size for non scalable graphics
has changed
2019-10-16 10:08:05 +02:00
Uwe Rathmann 896772c9b4 making cppcheck happier 2019-05-16 08:14:32 +02:00
Uwe Rathmann 8fd6910ca4 manually scaling textures according to window coordinates 2019-04-10 19:39:06 +02:00
Uwe Rathmann 40e6fa9b52 For some reason the position of the eleided text is wrong
with QTextOption::NoWrap - even if word wrapping
 for elided text does not make any sense.
2019-03-22 15:53:07 +01:00
Uwe Rathmann 37fb088111 avoid layout issues when creating a QTextLayout with eliding and wrapping 2019-03-19 17:36:34 +01:00
Uwe Rathmann dd090a9f6e comment as reminder added 2019-01-21 15:21:02 +01:00
Uwe Rathmann e1ca897478 uncrustified 2019-01-07 09:13:53 +01:00
Uwe Rathmann 4e54d1cb58 uncrustified 2019-01-04 13:42:16 +01:00
Uwe Rathmann 9ea7409f68 handling of '\n' in texts fixed 2018-12-13 11:29:40 +01:00
Uwe Rathmann 280ce5149d aspectRatio as parameter added, using IgnoreAspectRatio for graphics
what fixes resizing the background of the automotive example
2018-11-25 16:47:27 +01:00
Uwe Rathmann 85f816e42d broken implementation of Qt::AlignBottom fixed 2018-10-29 20:01:05 +01:00
Uwe Rathmann 1ddb7aee6b pixel offset fixed 2018-10-05 15:43:47 +02:00
Uwe Rathmann da0fb28290 QskPaintedNode/QskTextureRenderer added 2018-10-04 16:15:42 +02:00
Uwe Rathmann a3c224c865 trying to work around MSVC issues 2018-09-23 16:36:58 +02:00
Uwe Rathmann 2a3811fcd9 QskGlobal include cleanup 2018-08-03 08:30:23 +02:00
Uwe Rathmann 0a92cb82db playing with clang-format 2018-08-03 08:15:28 +02:00
Uwe Rathmann 68bc2f032c dh 2018-07-31 17:32:25 +02:00
Uwe Rathmann aaac57de94 unused member removed 2018-07-19 14:10:48 +02:00
Uwe Rathmann 4b67e7f37b better handling of devicePixelRatio 2018-07-13 15:09:25 +02:00
Uwe Rathmann a950203e7b fixed for multiple windows with different thread contexts 2018-04-17 14:46:50 +02:00
Uwe Rathmann 3ddcb3706f check for invalid contexts added 2018-02-06 07:51:33 +01:00
Uwe Rathmann b083479b21 using QString() instead of QString::null 2018-01-16 20:34:54 +01:00
Uwe Rathmann 6589f7a696 QskScrollArea once more changed, this time again without having to copy
the viewport clip node
2018-01-16 20:26:18 +01:00
Uwe Rathmann b1c3acde8e QskScrollArea reimplemented to have a proper filtering of child events 2018-01-12 15:46:15 +01:00
Uwe Rathmann 2df8d81174 layout code fixed 2018-01-05 09:36:55 +01:00
Uwe Rathmann 277d8dd8d6 stable calculation of text base lines, so that text don't "wobble"
anymore during translations of margins/paddings
2018-01-04 13:59:51 +01:00
Uwe Rathmann 6108af2c84 unused parameter removed 2018-01-03 17:24:27 +01:00
Uwe Rathmann 184157a025 code simplified 2018-01-03 17:23:40 +01:00
Uwe Rathmann ed9433c229 no reason for recreating a texture, when it is only translated 2018-01-03 15:44:40 +01:00
Uwe Rathmann ee4317ccd4 satisfying clang pedantic checks 2017-12-07 17:04:05 +01:00
Uwe Rathmann 6644be15bd using QGlobalStatic 2017-12-01 09:33:13 +01:00
Uwe Rathmann 5fad5bbef0 code simplified 2017-10-30 15:23:30 +01:00
Uwe Rathmann 6db25ff7bc making clazy happier 2017-10-30 14:38:30 +01:00
Uwe Rathmann c3b6830eb5 making clazy happier 2017-10-30 08:33:43 +01:00
Uwe Rathmann 9caad94075 making clang happy 2017-10-30 08:08:58 +01:00
Uwe Rathmann 19b64d5b97 compiler warning fixed 2017-10-25 10:41:34 +02:00
Uwe Rathmann 610bc48931 APIs fot creating text nodes changed 2017-10-23 07:46:46 +02:00
Uwe Rathmann d7d3047141 QskSkinRenderer removed 2017-10-20 20:26:39 +02:00
Uwe Rathmann 2aa7877152 cleaning up QskTextNode 2017-10-20 15:29:50 +02:00
Uwe Rathmann f21bed63c7 started to remove QskSkinRenderer 2017-10-20 13:09:30 +02:00
Uwe Rathmann b3e4360ad1 avoiding some pedantic compiler warnings 2017-10-18 19:51:29 +02:00
Uwe Rathmann e6f0088ae4 All box subcontrols are displayd with vertex lists instead of
textures
    now. Implementation is almost complete beside of the not yet done Qt
    antialiasing mode. Not all sort of linear gradients ( see
    QLinearGradients ) are implemented - needs 1-2 days more.
    The aspect flags for box primitives have been substantially changed
from
    too atomic to more strutured units.
    The skins are currently incomplete - will be fixed later.
2017-10-17 17:34:00 +02:00
Uwe Rathmann 6479937294 All box subcontrols are displayd with vertex lists instead of textures
now. Implementation is almost complete beside of the not yet done Qt
antialiasing mode. Not all sort of linear gradients ( see
QLinearGradients ) are implemented - needs 1-2 days more.
The aspect flags for box primitives have been substantially changed from
too atomic to more strutured units.
The skins are currently incomplete - will be fixed later.
2017-10-17 17:29:02 +02:00
Uwe Rathmann 1866ecb2f3 bad hash value calculation of QskBoxNode fixed 2017-09-03 14:55:21 +02:00
Uwe Rathmann ff9e9ab63c starting to configure box subcontrols/nodes with
QskBoxColors/QskBorderMetrics
2017-08-28 17:42:11 +02:00
Uwe 3cdfeaaf1c initial commit 2017-07-21 18:21:34 +02:00