Commit Graph

252 Commits

Author SHA1 Message Date
Peter Hartmann 0299217762 Material: Switch palettes to Material 3
Also, remove the old Material 2 palettes, since the weights etc.
changed.
2022-06-02 18:25:12 +02:00
Peter Hartmann 7889f53a02 Windows: Fix placement policy of all items (#188)
Before, on Windows nothing would be displayed because of the
following error:

implicit truncation from 'QskPlacementPolicy::Policy' to bit-field
changes value from 2 to -2
2022-05-02 16:05:58 +02:00
Uwe Rathmann 293499db23 avoid conflicts with RGB from wingdi.h 2022-04-22 08:21:20 +02:00
Uwe Rathmann 357dd9b68c Qsk::Position removed ( Qt::Edge is good enough ) 2022-04-17 13:19:33 +02:00
Uwe Rathmann e0f7397eb7 using Qt::Edge instead of Qsk::Position 2022-04-17 12:37:13 +02:00
Uwe Rathmann 894491fda8 moc include added 2022-04-16 20:38:06 +02:00
Uwe Rathmann b12925d171 pre Qt 5.15 code removed 2022-04-16 17:02:53 +02:00
Uwe Rathmann 099890543b dropping support for Qt < 5.15 2022-04-16 16:29:58 +02:00
Uwe Rathmann 729b39ee13 obsolete comment removed 2022-04-16 16:00:19 +02:00
Uwe Rathmann 870cfbd27d heuristic for initializing the cascading property moved from skin to
QskMenu
2022-04-16 12:25:39 +02:00
Peter Hartmann 94a186b553 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 8b362edb29 QskPlacementPolicy introduced 2022-04-08 16:46:20 +02:00
Uwe Rathmann d12bfe014b beautified 2022-04-08 15:37:55 +02:00
Uwe Rathmann eca1ada982 Qsk::Visibility added 2022-04-08 15:37:32 +02:00
Uwe Rathmann fa0659b575 Q_DECLARE_TYPEINFO fixed 2022-04-03 16:31:34 +02:00
Uwe Rathmann e2238690e0 using c++11 2022-04-01 14:41:56 +02:00
Uwe Rathmann 17aedfb216 QMetaType definitions added 2022-03-30 18:30:22 +02:00
Uwe Rathmann 0067ed2d8b QskStateCombination operators added 2022-03-30 18:21:31 +02:00
Uwe Rathmann 326783e4df debug operators improved 2022-03-30 12:28:45 +02:00
Uwe Rathmann b3ed43dc96 interpolation between monochrome gradients improved 2022-03-29 11:14:23 +02:00
Uwe Rathmann 3b7a892424 qHash added 2022-03-29 08:08:06 +02:00
Uwe Rathmann 2b0c2f70dd more State operators 2022-03-28 20:33:42 +02:00
Uwe Rathmann 53184fb555 making code more readable 2022-03-27 19:05:40 +02:00
Uwe Rathmann 217f0e0df5 alpha -> opacity 2022-03-27 17:54:16 +02:00
Uwe Rathmann 57c2a25e92 hash calls harmonized 2022-03-25 11:21:32 +01:00
Uwe Rathmann ea88ab6e4c using reserve where possible 2022-03-25 10:29:12 +01:00
Uwe Rathmann e7c056047b introducing QskHashValue to work around Qt5/6 incompatibilities 2022-03-25 10:28:06 +01:00
Uwe Rathmann 6e94c5a937 Q_DISABLE_COPY added 2022-03-24 11:12:45 +01:00
Uwe Rathmann 0dbf6cfbd4 using qAsConst 2022-03-24 10:39:33 +01:00
Uwe Rathmann 5cd3de9943 pointless QObject inheritance removed 2022-03-24 08:27:17 +01:00
Uwe Rathmann 1987a28430 uncrustified 2022-03-23 11:54:34 +01:00
Uwe Rathmann 9f093674ff obsolete code for earlier versions removed 2022-03-20 14:22:11 +01:00
Uwe Rathmann c589e06dc5 support for QGradient::Preset 2022-03-18 16:50:34 +01:00
Uwe Rathmann bfa3d6d6bd constexpr, where possible 2022-03-18 16:08:40 +01:00
Uwe Rathmann 9159b50dd6 qmake setup changed 2022-03-18 12:32:57 +01:00
Uwe Rathmann 64ed933cd8 upport for Qt < Qt 5.12 dropped 2022-03-08 11:53:46 +01:00
Uwe Rathmann 9e068f7af3 using references 2022-02-04 16:18:14 +01:00
Peter Hartmann 61cbb6cfa1 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 389d20a2d9 constructor fixed 2022-01-21 07:49:38 +01:00
Uwe Rathmann 3c7fbdad1a status bit initialization improved 2022-01-21 07:33:28 +01:00
Uwe Rathmann dd0c272514 status bits introduced to cache information, that would be recaclulated
many times otherwise
2022-01-21 07:29:07 +01:00
Uwe Rathmann 221b9e90b9 minor improvements 2022-01-10 08:44:02 +01:00
Uwe Rathmann e6dc1e311b toTransparentF added 2022-01-07 13:55:51 +01:00
Uwe Rathmann baadd6fa96 QskRgb::totransparentF added 2022-01-07 13:23:29 +01:00
Uwe Rathmann d8c7485ab1 Qt 5.6 incompatibility fixed 2022-01-07 12:46:24 +01:00
Uwe Rathmann cf1afeb498 qskInterpolatedSize added 2022-01-04 13:46:54 +01:00
Uwe Rathmann f49a73c78d QskBoxHints introduced 2022-01-04 13:44:53 +01:00
Uwe Rathmann 10b200d52c QRectF interpolator added 2021-12-29 15:30:44 +01:00
Uwe Rathmann 2fd66b314e some functions copied from QskFunctions to QskPlatform 2021-12-26 12:57:02 +01:00
Uwe Rathmann 73ccabb65f qskPlatformIntegration/qskMaybeDesktopPlatform added 2021-12-26 12:12:18 +01:00