286 Commits

Author SHA1 Message Date
Uwe Rathmann
f991a21a0a QMetaType definitions added 2022-03-30 18:30:22 +02:00
Uwe Rathmann
7d0092ccb3 QskStateCombination operators added 2022-03-30 18:21:31 +02:00
Uwe Rathmann
baee63ea6b debug operators improved 2022-03-30 12:28:45 +02:00
Uwe Rathmann
848a22b2a2 interpolation between monochrome gradients improved 2022-03-29 11:14:23 +02:00
Uwe Rathmann
81e2ea2920 qHash added 2022-03-29 08:08:06 +02:00
Uwe Rathmann
a38a4a101e more State operators 2022-03-28 20:33:42 +02:00
Uwe Rathmann
f68095a0d1 making code more readable 2022-03-27 19:05:40 +02:00
Uwe Rathmann
7778baecc5 alpha -> opacity 2022-03-27 17:54:16 +02:00
Uwe Rathmann
eaa5a63278 hash calls harmonized 2022-03-25 11:21:32 +01:00
Uwe Rathmann
f86e38ef12 using reserve where possible 2022-03-25 10:29:12 +01:00
Uwe Rathmann
55d5f99575 introducing QskHashValue to work around Qt5/6 incompatibilities 2022-03-25 10:28:06 +01:00
Uwe Rathmann
d285b7e85c Q_DISABLE_COPY added 2022-03-24 11:12:45 +01:00
Uwe Rathmann
b89fa86b67 using qAsConst 2022-03-24 10:39:33 +01:00
Uwe Rathmann
9d515ba68e pointless QObject inheritance removed 2022-03-24 08:27:17 +01:00
Uwe Rathmann
1cc0dff8d5 uncrustified 2022-03-23 11:54:34 +01:00
Uwe Rathmann
7f5d289808 obsolete code for earlier versions removed 2022-03-20 14:22:11 +01:00
Uwe Rathmann
13d00d176f support for QGradient::Preset 2022-03-18 16:50:34 +01:00
Uwe Rathmann
b02e6ccbc3 constexpr, where possible 2022-03-18 16:08:40 +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
ab0fe2ac1c constructor fixed 2022-01-21 07:49:38 +01:00
Uwe Rathmann
de349c3423 status bit initialization improved 2022-01-21 07:33:28 +01:00
Uwe Rathmann
b5da0da76d status bits introduced to cache information, that would be recaclulated
many times otherwise
2022-01-21 07:29:07 +01:00
Uwe Rathmann
9f7824cd17 minor improvements 2022-01-10 08:44:02 +01:00
Uwe Rathmann
d1f6902c27 toTransparentF added 2022-01-07 13:55:51 +01:00
Uwe Rathmann
13cb2f8ca3 QskRgb::totransparentF added 2022-01-07 13:23:29 +01:00
Uwe Rathmann
5acce30878 Qt 5.6 incompatibility fixed 2022-01-07 12:46:24 +01:00
Uwe Rathmann
72f28783a9 qskInterpolatedSize added 2022-01-04 13:46:54 +01:00
Uwe Rathmann
1d7b551b05 QskBoxHints introduced 2022-01-04 13:44:53 +01:00
Uwe Rathmann
a3e1065096 QRectF interpolator added 2021-12-29 15:30:44 +01:00
Uwe Rathmann
6c46c0160d some functions copied from QskFunctions to QskPlatform 2021-12-26 12:57:02 +01:00
Uwe Rathmann
0d43fbcc27 qskPlatformIntegration/qskMaybeDesktopPlatform added 2021-12-26 12:12:18 +01:00
Uwe Rathmann
ca2cdf7663 beautified 2021-12-23 19:05:59 +01:00
Peter Hartmann
0657f1120c
aspects: Fix off-by-one error when printing subcontrols (#151) 2021-11-22 15:50:18 +01:00
Uwe Rathmann
0d9dbf4c58 QML export as QskGadientStops does nor work - we need to stay with
QVector
2021-10-27 15:08:06 +02:00
Uwe Rathmann
4c26392d72 wrong include 2021-10-27 15:07:17 +02:00
Uwe Rathmann
a1b67ee7fb setColor/setColors fixed 2021-10-25 08:32:46 +02:00
Uwe Rathmann
4744d85725 more constructors to avoid losing alpha values 2021-10-25 08:31:32 +02:00
Uwe Rathmann
2bfc8ee9f9 toAbsolute using width or height 2021-10-20 12:42:48 +02:00
Uwe Rathmann
73dbfeb708 QskArcMetrics adjustments 2021-10-20 09:27:05 +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
5791341996 memory leak detection simplified 2021-10-08 07:47:00 +02:00
Uwe Rathmann
766105b201 leak statistics fixed 2021-10-07 18:37:46 +02:00
Uwe Rathmann
d75ed9d6de object info added 2021-10-07 17:47:15 +02:00
Uwe Rathmann
22e75daf6a hiding code in QskObjectCounter.cpp 2021-10-07 13:49:13 +02:00
Uwe Rathmann
f9ca36443e Qt 6.2 adjustments 2021-09-21 08:51:01 +02:00
Uwe Rathmann
899256ce86 making QskBoxBorderMetrics a Q_GADGET 2021-09-18 15:01:04 +02:00
Uwe Rathmann
b2bf7c30e0 making QskShadowMetrics a Q_GADGET 2021-09-18 14:54:25 +02:00