397 Commits

Author SHA1 Message Date
Uwe Rathmann
896e33bf77 moc include added 2022-04-16 20:38:06 +02:00
Uwe Rathmann
09a12fc7a8 pre Qt 5.15 code removed 2022-04-16 17:02:53 +02:00
Uwe Rathmann
1f0ad384ac dropping support for Qt < 5.15 2022-04-16 16:29:58 +02:00
Uwe Rathmann
628e57a9ff obsolete comment removed 2022-04-16 16:00:19 +02:00
Uwe Rathmann
d52453311f heuristic for initializing the cascading property moved from skin to
QskMenu
2022-04-16 12:25:39 +02:00
Peter Hartmann
7693c8d911
fix build on Windows (#176)
* fix build on Windows

fixes the following error from CI:

common\QskAspect.cpp(199): error C2666: 'QFlags<QskAspect::State>::operator &': 3 overloads have similar conversions
D:\a\qskinny\Qt\5.15.2\msvc2019_64\include\QtCore/qflags.h(146): note: could be 'QFlags<QskAspect::State> QFlags<QskAspect::State>::operator &(Enum) noexcept const'
        with
        [
            Enum=QskAspect::State
        ]
D:\a\qskinny\Qt\5.15.2\msvc2019_64\include\QtCore/qflags.h(145): note: or       'QFlags<QskAspect::State> QFlags<QskAspect::State>::operator &(uint) noexcept const'
D:\a\qskinny\Qt\5.15.2\msvc2019_64\include\QtCore/qflags.h(144): note: or       'QFlags<QskAspect::State> QFlags<QskAspect::State>::operator &(int) noexcept const'
common\QskAspect.cpp(199): note: or       'built-in C++ operator&(QFlags<QskAspect::State>::Int, quint16)'
common\QskAspect.cpp(199): note: while trying to match the argument list '(QskAspect::States, const quint16)'

* fix build on Windows

fixes the following error from CI:

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\include\memory(3124): error C2027: use of undefined type 'QskMenuSkinlet::PrivateData'
D:\a\qskinny\qskinny\src\controls\QskMenuSkinlet.h(54): note: see declaration of 'QskMenuSkinlet::PrivateData'
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\include\memory(3123): note: while compiling class template member function 'void std::default_delete<QskMenuSkinlet::PrivateData>::operator ()(_Ty *) noexcept const'
        with
        [
            _Ty=QskMenuSkinlet::PrivateData
        ]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\include\memory(3233): note: see reference to function template instantiation 'void std::default_delete<QskMenuSkinlet::PrivateData>::operator ()(_Ty *) noexcept const' being compiled
        with
        [
            _Ty=QskMenuSkinlet::PrivateData
        ]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\include\memory(3160): note: see reference to class template instantiation 'std::default_delete<QskMenuSkinlet::PrivateData>' being compiled
D:\a\qskinny\qskinny\src\controls\QskMenuSkinlet.h(55): note: see reference to class template instantiation 'std::unique_ptr<QskMenuSkinlet::PrivateData,std::default_delete<QskMenuSkinlet::PrivateData>>' being compiled
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\include\memory(3124): error C2338: can't delete an incomplete type
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.31.31103\include\memory(3125): warning C4150: deletion of pointer to incomplete type 'QskMenuSkinlet::PrivateData'; no destructor called
D:\a\qskinny\qskinny\src\controls\QskMenuSkinlet.h(54): note: see declaration of 'QskMenuSkinlet::PrivateData
2022-04-13 11:24:18 +02:00
Uwe Rathmann
69e4152b4c QskPlacementPolicy introduced 2022-04-08 16:46:20 +02:00
Uwe Rathmann
449f08bf98 beautified 2022-04-08 15:37:55 +02:00
Uwe Rathmann
21ad84e291 Qsk::Visibility added 2022-04-08 15:37:32 +02:00
Uwe Rathmann
ff316ce1ed Q_DECLARE_TYPEINFO fixed 2022-04-03 16:31:34 +02:00
Uwe Rathmann
01afcd8557 using c++11 2022-04-01 14:41:56 +02:00
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