Commit Graph

857 Commits

Author SHA1 Message Date
Uwe Rathmann eb5eb60216 all node role enums should have RoleCount 2022-04-20 13:50:14 +02:00
Uwe Rathmann e0f7397eb7 using Qt::Edge instead of Qsk::Position 2022-04-17 12:37:13 +02:00
Uwe Rathmann 905d2485f3 resetPlacementPolicy added 2022-04-16 20:38:50 +02:00
Uwe Rathmann 099890543b dropping support for Qt < 5.15 2022-04-16 16:29:58 +02:00
Uwe Rathmann 870cfbd27d heuristic for initializing the cascading property moved from skin to
QskMenu
2022-04-16 12:25:39 +02:00
Uwe Rathmann 95a88a7cdb compiler error fixed 2022-04-16 11:32:51 +02:00
Uwe Rathmann 0a6a3e6c5e placementPolicy as property 2022-04-15 13:19:52 +02:00
Uwe Rathmann 9c8c588245 using QMetaObject instead of QTimer for delayed calls 2022-04-14 08:26:49 +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 b4fdd468e1 hiding isTransparentForPositioner 2022-04-07 17:19:59 +02:00
Uwe Rathmann 35f98bedbb qskItemSize() removed, QQuickItem::size() is available since Qt 5.10 2022-04-07 15:43:45 +02:00
Uwe Rathmann d9c2227f5c forgotten debug statement removed 2022-04-06 10:56:48 +02:00
Uwe Rathmann 5791a9f6e4 colorswitch example removed 2022-04-06 08:41:32 +02:00
Uwe Rathmann f91bcdaa76 sending a second StyleChange once the transition is done 2022-04-05 15:31:17 +02:00
Uwe Rathmann bf6afd15a9 wip 2022-04-05 11:38:23 +02:00
Uwe Rathmann f0aded9fe1 wip 2022-04-05 10:41:36 +02:00
Uwe Rathmann 9d2e517036 QskCheckBox improvements 2022-04-05 10:15:08 +02:00
Uwe Rathmann cd9211c241 QskCheckBox improvements 2022-04-05 08:48:16 +02:00
Uwe Rathmann 29dbaa2189 the geometry for the tick can change 2022-04-04 18:32:17 +02:00
Uwe Rathmann 94269b0206 spelling aligned with Qt checkboxes ( triState -> tristate ) 2022-04-04 14:39:24 +02:00
Uwe Rathmann c7388cb730 formal cheges, check box added to gallery 2022-04-04 14:14:07 +02:00
Clemens Manert cdf062e5bd Add a Checkbox (#169)
* Add checkbox

* Add checkbox tests

* Add checkbox-groups

* Add checkbox-groups tests
2022-04-04 08:53:20 +02:00
Uwe Rathmann 5a5ad5ddd9 stop animation, when start/endValues are chaged. Otherwise we will run
into crashes, when value types have not been aligned or can't be aligned
2022-04-03 16:32:04 +02:00
Uwe Rathmann a3e07ed417 only check if types do match without doing the conversion 2022-04-03 16:31:54 +02:00
Uwe Rathmann eec8c71ebc compiler error fixed 2022-04-01 17:00:05 +02:00
Uwe Rathmann 919b8ba21d font initialization changed 2022-04-01 14:42:18 +02:00
Uwe Rathmann 89bd7a35ef skin transition heavily changed 2022-03-31 18:09:03 +02:00
Uwe Rathmann 1084609db2 using QVariant::metaType 2022-03-31 12:25:24 +02:00
Uwe Rathmann e772d40350 try to convert if start/end values have different types 2022-03-29 11:15:08 +02:00
Uwe Rathmann 048835a618 using qskEffectiveSkin 2022-03-29 08:09:19 +02:00
Uwe Rathmann 1d4cc69223 making hintTable() public 2022-03-29 08:08:46 +02:00
Uwe Rathmann cefe16ca28 tracking states of the aspects in a QskSkinHintTable 2022-03-28 21:28:56 +02:00
Uwe Rathmann e392b76f15 making code slightly more readable 2022-03-28 20:17:56 +02:00
Uwe Rathmann a109f0172a accepting hover events as default 2022-03-26 16:22:47 +01:00
Uwe Rathmann cd2908244d do not like protected keywords in macros 2022-03-25 18:17:14 +01:00
Uwe Rathmann 155d565a0a using QSK_EVENT_DISABLE_COPY 2022-03-25 18:04:41 +01:00
Uwe Rathmann 41ded3ccf9 making clazy happier 2022-03-25 07:46:48 +01:00
Uwe Rathmann ec3da9af4f making clazy happier 2022-03-24 17:33:40 +01:00
Uwe Rathmann a3e7b96694 reserving memory in advance 2022-03-24 17:33:01 +01:00
Uwe Rathmann 564079c318 making clazy happier 2022-03-24 17:30:50 +01:00
Uwe Rathmann ca6a029b96 using const methods 2022-03-24 17:18:27 +01:00
Uwe Rathmann b04c4b8060 Q_DISABLE_COPY added 2022-03-24 17:13:47 +01:00
Uwe Rathmann 995b54a497 bad return statements fixed 2022-03-24 17:10:11 +01:00
Uwe Rathmann 3a6d052c30 QskSkinTransition pimpled 2022-03-24 11:17:03 +01:00
Uwe Rathmann 6e94c5a937 Q_DISABLE_COPY added 2022-03-24 11:12:45 +01:00
Uwe Rathmann 71abc95f8f using reference parameters 2022-03-24 08:45:06 +01:00
Uwe Rathmann 9443111b05 using const method 2022-03-24 08:42:54 +01:00
Uwe Rathmann e306907802 using qAsConst 2022-03-24 08:41:11 +01:00
Uwe Rathmann d3d4cbb51f beautified 2022-03-24 08:10:57 +01:00
Uwe Rathmann 56a721ff81 using reference parameter 2022-03-24 08:10:29 +01:00
Uwe Rathmann 7d464da5b0 Q_EMIT added 2022-03-24 08:10:04 +01:00
Uwe Rathmann b3aa2a2f7f disable copying 2022-03-24 08:08:40 +01:00
Uwe Rathmann 018a605460 return code for all remove operations 2022-03-24 08:01:52 +01:00
Uwe Rathmann 42f293e3ea unused code removed 2022-03-24 07:59:02 +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 084d9958ee workaround for emit usages in qt headers 2022-03-20 13:14:06 +01:00
Uwe Rathmann 3e68490da9 include guards formalized 2022-03-20 13:11:34 +01:00
Uwe Rathmann 9159b50dd6 qmake setup changed 2022-03-18 12:32:57 +01:00
Uwe Rathmann 79494fc5fa qskIsStandardKeyInput added 2022-03-11 14:24:10 +01:00
Uwe Rathmann 750af90094 Squashed commit of the following:
commit 02f95db2e5a105cad4ac0bc07f5dcfc655546f9d
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Fri Mar 11 14:14:35 2022 +0100

    wip
2022-03-11 14:16:41 +01:00
Uwe Rathmann 52222d3bdd obsolete version check removed 2022-03-09 07:25:18 +01:00
Uwe Rathmann 5aed34f52f platform depending code moved to QskSkin 2022-03-08 15:59:35 +01:00
Uwe Rathmann 89e4dc1546 TODO note added 2022-03-08 12:08:15 +01:00
Uwe Rathmann 64ed933cd8 upport for Qt < Qt 5.12 dropped 2022-03-08 11:53:46 +01:00
Uwe Rathmann ee08a307ce updates in setPopupFlags fixed 2022-03-08 11:17:17 +01:00
Uwe Rathmann fab37f428e updateFocusFrame is protected now 2022-03-08 11:16:14 +01:00
Uwe Rathmann 932f238416 comment added 2022-02-20 11:06:48 +01:00
Clemens Manert b296f572e2 Bugfix: Respect QskControl::Disabled aspect. (#162) 2022-02-20 10:54:01 +01:00
Uwe Rathmann 1ec16afd9a compatibility method for early Qt versions 2022-02-08 09:01:18 +01:00
Uwe Rathmann 0e7b2048d1 setting the placement bit only when being undefined in the request 2022-02-08 09:00:13 +01:00
Uwe Rathmann 287a34e62c source as string 2022-02-08 08:59:34 +01:00
Uwe Rathmann 263a522e1a Qt 6.3 ( beta1 ) incompatibilities fixed 2022-02-06 14:32:26 +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 50ffa5b9e1 wheel scrolling improved 2022-01-17 09:46:27 +01:00
Uwe Rathmann ab1e7d537e wheel scrolling improved 2022-01-12 13:29:42 +01:00
Uwe Rathmann f830ac23ed Merge branch 'master' of https://github.com/uwerat/qskinny 2022-01-10 14:59:52 +01:00
Uwe Rathmann fc3cfc6101 wheelEvent handling improved 2022-01-10 14:59:22 +01:00
Uwe Rathmann 4d4558464d compiler issue fixed 2022-01-10 12:20:56 +01:00
Uwe Rathmann b8a7b5269c wrnings disabled 2022-01-10 08:47:27 +01:00
Uwe Rathmann 013fba769c wheel + Ctrl/Shift scrolls pagewise 2022-01-10 08:46:20 +01:00
Uwe Rathmann 90bfdcb915 QskScrollBox::scrollOffset reintroduced 2022-01-07 15:34:13 +01:00
Uwe Rathmann b1a5b8a53d changes reverted 2022-01-07 15:09:05 +01:00
Uwe Rathmann 212efb8861 forgotten declarations removed 2022-01-07 13:55:30 +01:00
Uwe Rathmann f1c48a4b9a menu separators added 2022-01-06 18:36:15 +01:00
Uwe Rathmann 9f2f35b1fe useless call removed 2022-01-05 12:05:44 +01:00
Uwe Rathmann 703b96d250 wheel event handling improved 2022-01-05 11:59:32 +01:00
Uwe Rathmann bce93a196f QskPageIndicator improved 2022-01-04 15:58:49 +01:00
Uwe Rathmann 7a1ea07914 mouse handling modified 2022-01-04 15:54:16 +01:00
Uwe Rathmann 96cb249a88 QskPageIndicator improved 2022-01-04 14:34:15 +01:00
Uwe Rathmann acbc66ea80 QskPageIndicator improved 2022-01-04 13:58:34 +01:00
Uwe Rathmann 57ad556afe code simplified 2022-01-04 13:47:40 +01:00
Uwe Rathmann f49a73c78d QskBoxHints introduced 2022-01-04 13:44:53 +01:00
Uwe Rathmann 8b9c0c0381 QskPopup::execPopup introduced 2022-01-01 18:13:33 +01:00
Uwe Rathmann d5b19fe12d QskMenu::exec added 2021-12-30 11:13:48 +01:00
Uwe Rathmann e389df5b70 QskMenu::Cursor transition fixed 2021-12-29 17:19:19 +01:00
Uwe Rathmann c37f792054 using positionHint methods 2021-12-29 17:05:29 +01:00
Uwe Rathmann f70ea29b0a missing include added 2021-12-29 16:54:16 +01:00