Commit Graph

225 Commits

Author SHA1 Message Date
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
Uwe Rathmann 2438b0f7ee playing with shadows 2021-09-18 14:48:25 +02:00
Uwe Rathmann 1c3c04a745 using QskGradientStops 2021-09-17 13:47:43 +02:00
Uwe Rathmann 341d60e39b QskGradientStops introduced 2021-09-17 13:35:11 +02:00
Uwe Rathmann 2219a6fe8e code moved to QskGradientStop.[h|cpp] 2021-09-16 10:01:53 +02:00
Uwe Rathmann 71da4dcdff QskCorner removed - using QskBoxShapeMetrics instead 2021-09-15 17:54:44 +02:00
Uwe Rathmann 06b0fe56bc missing noexcept keywords added 2021-09-15 13:46:02 +02:00
Uwe Rathmann 295a964cd5 missing noexcept keywords added 2021-09-15 13:45:26 +02:00
Uwe Rathmann 4092ec0a8a QskAspect::States introduced to be more accurate about state vs. states 2021-09-14 13:05:56 +02:00
Uwe Rathmann 923affe749 uncrustified 2021-08-04 09:31:16 +02:00
Uwe Rathmann 13867df163 making clang happy 2021-07-14 14:43:12 +02:00
Uwe Rathmann c57924d7eb qskFuzzyFloor/Ceil improved 2021-07-14 13:29:46 +02:00