Commit Graph

1393 Commits

Author SHA1 Message Date
Uwe Rathmann 0ed9afe2b4 QskBoxShadowNode introduced ( from playground/shadows )
- shader code migrated from glsl to vulkan-glsl
   - #ifdef "Geschnetzel" introduced to support old and rhi graphic APIs
   - iotdashboard, shadows examples adjusted
2022-06-04 17:56:14 +02:00
Peter Hartmann d456237feb switch button: Fix size hint
This fixes the case where the Groove is bigger than the Handle, e.g.
with the Material 3 switch buttons.
2022-06-03 17:28:16 +02:00
Peter Hartmann abc52e1bb8 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
Uwe Rathmann a66d4645e8 Qt5 compiler error fixed 2022-06-02 16:15:25 +02:00
Uwe Rathmann c3c0b2cd33 bye, bye QskTextureNode 2022-06-02 16:09:49 +02:00
Uwe Rathmann 54b55c0324 default graphic pipeline without native OpenGL calls.
code is QRHI compiant now
2022-06-02 16:02:42 +02:00
Uwe Rathmann 5dc4200cdc typo fixed 2022-06-01 18:29:05 +02:00
Uwe Rathmann a35cc9936a mirroring added 2022-06-01 18:27:05 +02:00
Uwe Rathmann 86e438a0ed QFrameBufferObject::takeTexture also leaks with Qt 5.15 2022-06-01 17:50:16 +02:00
Uwe Rathmann 5ab536f0e3 fixed fot Qt5 2022-06-01 17:41:33 +02:00
Uwe Rathmann 86658ee2dc raster rendering does not solve the problems with the experimantel RHI
state in Qt5 ( no problems with Qt6 RHI and Qt5 without RHI )
2022-06-01 17:04:37 +02:00
Uwe Rathmann e1a58f84ee QskPaintedNode improved 2022-06-01 16:57:57 +02:00
Uwe Rathmann c291cde259 includes fixed 2022-06-01 16:51:11 +02:00
Uwe Rathmann c64d386477 QskPaintedNode reimplemented to work with RHI and software renderer
Code will be moved in parts to QskTextureRenderer to do something
similar with QskTextureNode.
2022-05-31 17:56:49 +02:00
Uwe Rathmann 8593a5cf2e hide QskGraphicNode, QskTextNode in QskSkinlet, where possible.
We will have less dependencies, when moving QskGraphicNode to something
that works better with the QRhi abstraction
2022-05-30 15:16:46 +02:00
Uwe Rathmann dae4ee02d5 deprecation warnings fixed 2022-05-02 16:51:24 +02:00
Peter Hartmann 13ff41722c
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 9f706beab1 iconst keywords removed to avoid clang warnings about implicitely
deleted functions. But do we really need QSK_EVENT_DISABLE_COPY ?
2022-04-22 09:00:26 +02:00
Uwe Rathmann bce7d6e1dc unused lambda capture removed 2022-04-22 08:39:01 +02:00
Uwe Rathmann 019a6899db avoid conflicts with RGB from wingdi.h 2022-04-22 08:21:20 +02:00
Uwe Rathmann 8e0008cf59 Merge branch 'master' of https://github.com/uwerat/qskinny 2022-04-22 08:13:44 +02:00
Uwe Rathmann 8680423c33 avoid warnings about narrowing size_t to int 2022-04-22 08:13:19 +02:00
Uwe Rathmann 4e0d1197da handling of devicePixelratio for pixmaps fixed 2022-04-21 13:08:50 +02:00
Uwe Rathmann 12a3dd06da boilerplate code to have QskSegmentedBar in the gallery. 2022-04-20 15:25:15 +02:00
Uwe Rathmann 8f04d21739 formal adjustments 2022-04-20 14:20:41 +02:00
Uwe Rathmann 50ee82fbaa QskSegmentedBar ( inspired by the IOS segmented control ) added 2022-04-20 14:14:37 +02:00
Uwe Rathmann e689575510 suing QskMenu::Segement instead of Qskmenu::Cell to be in line with other
controls
2022-04-20 13:58:53 +02:00
Uwe Rathmann 22060f6aaf missing moc include 2022-04-20 13:54:27 +02:00
Uwe Rathmann d011d5d1ea all node role enums should have RoleCount 2022-04-20 13:50:14 +02:00
Uwe Rathmann df31b57e7c Qsk::Position removed ( Qt::Edge is good enough ) 2022-04-17 13:19:33 +02:00
Uwe Rathmann d0b926b868 using Qt::Edge instead of Qsk::Position 2022-04-17 12:37:13 +02:00
Uwe Rathmann e514b659e8 resetPlacementPolicy added 2022-04-16 20:38:50 +02:00
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 ab095afb13 using left/top/right/bottom 2022-04-16 16:01:40 +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
Uwe Rathmann c4f5a4bc93 compiler error fixed 2022-04-16 11:32:51 +02:00
Uwe Rathmann 6dd3b44f52 placementPolicy as property 2022-04-15 13:19:52 +02:00
Uwe Rathmann bf37fe000c using QMetaObject instead of QTimer for delayed calls 2022-04-14 08:26:49 +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 a1d60803f2 avoid crash with vnc plugin 2022-04-11 12:05:00 +02:00
Uwe Rathmann dc14dda5ea respecting the graphicsApi 2022-04-11 10:11:57 +02:00
Uwe Rathmann a73ee6baba Squashed commit of the following:
commit e2887cdc9d7cbf69445c325fe074578e2f38da6c
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Mon Apr 11 09:58:03 2022 +0200

    wip

commit 63efe9f3ad95fdf3d9fb15c929a45b0dc7cc681c
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Mon Apr 11 09:39:18 2022 +0200

    wip

commit a2f3621fb6fea787f32c53428eee26f30c69510c
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Mon Apr 11 08:04:11 2022 +0200

    wip
2022-04-11 10:01:24 +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 eaf57ef1f0 project file fixed 2022-04-07 17:45:38 +02:00
Uwe Rathmann 741af6a8a6 hiding isTransparentForPositioner 2022-04-07 17:19:59 +02:00
Uwe Rathmann c17e3defd3 qskItemSize() removed, QQuickItem::size() is available since Qt 5.10 2022-04-07 15:43:45 +02:00
Uwe Rathmann c44c30fa41 forgotten debug statement removed 2022-04-06 10:56:48 +02:00
Uwe Rathmann 676e0d5e9f colorswitch example removed 2022-04-06 08:41:32 +02:00
Uwe Rathmann 1cb2110f5d sending a second StyleChange once the transition is done 2022-04-05 15:31:17 +02:00
Uwe Rathmann 2a6d27d78d wip 2022-04-05 11:38:23 +02:00
Uwe Rathmann 4d7db7c479 wip 2022-04-05 10:41:36 +02:00
Uwe Rathmann 8c2093d151 QskCheckBox improvements 2022-04-05 10:15:08 +02:00
Uwe Rathmann 6ef1f8a45d QskCheckBox improvements 2022-04-05 08:48:16 +02:00
Uwe Rathmann 752a97524b the geometry for the tick can change 2022-04-04 18:32:17 +02:00
Uwe Rathmann ae5a348b50 spelling aligned with Qt checkboxes ( triState -> tristate ) 2022-04-04 14:39:24 +02:00
Uwe Rathmann 49cdc1a029 formal cheges, check box added to gallery 2022-04-04 14:14:07 +02:00
Clemens Manert a05d1e3471
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 f4a9b15f11 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 6728ad2bdc only check if types do match without doing the conversion 2022-04-03 16:31:54 +02:00
Uwe Rathmann ff316ce1ed Q_DECLARE_TYPEINFO fixed 2022-04-03 16:31:34 +02:00
Uwe Rathmann 4d724bb6fe compiler error fixed 2022-04-01 17:00:05 +02:00
Uwe Rathmann a40ca46556 font initialization changed 2022-04-01 14:42:18 +02:00
Uwe Rathmann 01afcd8557 using c++11 2022-04-01 14:41:56 +02:00
Uwe Rathmann e2d6823927 skin transition heavily changed 2022-03-31 18:09:03 +02:00
Uwe Rathmann 27ee0fe423 using QVariant::metaType 2022-03-31 12:25:24 +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 511c6ddcd3 try to convert if start/end values have different types 2022-03-29 11:15:08 +02:00
Uwe Rathmann 848a22b2a2 interpolation between monochrome gradients improved 2022-03-29 11:14:23 +02:00
Uwe Rathmann 94a7ae4509 using qskEffectiveSkin 2022-03-29 08:09:19 +02:00
Uwe Rathmann aa3c01dee3 making hintTable() public 2022-03-29 08:08:46 +02:00
Uwe Rathmann 81e2ea2920 qHash added 2022-03-29 08:08:06 +02:00
Uwe Rathmann 1eae47aefa tracking states of the aspects in a QskSkinHintTable 2022-03-28 21:28:56 +02:00
Uwe Rathmann a38a4a101e more State operators 2022-03-28 20:33:42 +02:00
Uwe Rathmann 5dae58fc44 making code slightly more readable 2022-03-28 20:17:56 +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 3aa320f233 accepting hover events as default 2022-03-26 16:22:47 +01:00
Uwe Rathmann 28c47725e2 do not like protected keywords in macros 2022-03-25 18:17:14 +01:00
Uwe Rathmann d6c4968d3c using QSK_EVENT_DISABLE_COPY 2022-03-25 18:04:41 +01:00
Uwe Rathmann 1b94e86e4b Q_OBJECT added 2022-03-25 16:22:02 +01:00
Uwe Rathmann 6907cd0e28 remove/take fixed 2022-03-25 13:39:18 +01: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 04ec8b52a1 making clazy happier 2022-03-25 07:46:48 +01:00
Uwe Rathmann 73f11cffd9 making clazy happier 2022-03-24 17:33:40 +01:00
Uwe Rathmann 115141bc21 reserving memory in advance 2022-03-24 17:33:01 +01:00
Uwe Rathmann eeb9e04b60 making clazy happier 2022-03-24 17:30:50 +01:00
Uwe Rathmann b572c23561 using const methods 2022-03-24 17:18:27 +01:00
Uwe Rathmann fe372f64e4 Q_DISABLE_COPY added 2022-03-24 17:13:47 +01:00
Uwe Rathmann 3b683ba6d4 reserving memory in advance 2022-03-24 17:13:09 +01:00
Uwe Rathmann ca36a1705d Q_DISABLE_COPY added 2022-03-24 17:12:34 +01:00
Uwe Rathmann 828986de2e bad return statements fixed 2022-03-24 17:10:11 +01:00
Uwe Rathmann 07f9829ffa QskDialogButtonBox::isDefaultButtonKeyEvent fixed 2022-03-24 11:44:08 +01:00
Uwe Rathmann a8b176aa71 QskSkinTransition pimpled 2022-03-24 11:17:03 +01:00
Uwe Rathmann d81e8991af pimpled 2022-03-24 11:14:46 +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 6455c26f86 making QskGraphic a Q_GADGET 2022-03-24 10:26:33 +01:00
Uwe Rathmann 28907c75d8 QskStandardSymbol as namespace 2022-03-24 08:50:53 +01:00
Uwe Rathmann 5c62725cd1 using reference parameters 2022-03-24 08:45:06 +01:00
Uwe Rathmann 74a09c8f7e using const method 2022-03-24 08:42:54 +01:00
Uwe Rathmann cc21fec436 using qAsConst 2022-03-24 08:41:11 +01:00
Uwe Rathmann 9d515ba68e pointless QObject inheritance removed 2022-03-24 08:27:17 +01:00
Uwe Rathmann e06d213365 using const getter 2022-03-24 08:20:05 +01:00
Uwe Rathmann 107e121d3b using QStringLiteral 2022-03-24 08:19:24 +01:00
Uwe Rathmann 9fe2771225 class moved to anonymous namespace 2022-03-24 08:18:15 +01:00
Uwe Rathmann 95dab4301d using c++11 2022-03-24 08:11:29 +01:00
Uwe Rathmann c963ec7deb beautified 2022-03-24 08:10:57 +01:00
Uwe Rathmann eaa554addc using reference parameter 2022-03-24 08:10:29 +01:00
Uwe Rathmann 44ca6c964f Q_EMIT added 2022-03-24 08:10:04 +01:00
Uwe Rathmann 80a42f6d56 using reference parameters 2022-03-24 08:09:30 +01:00
Uwe Rathmann 057866e7ff disable copying 2022-03-24 08:08:40 +01:00
Uwe Rathmann 12a3476e71 return code for all remove operations 2022-03-24 08:01:52 +01:00
Uwe Rathmann 63a9eb1a6a rong return statement removed 2022-03-24 07:59:28 +01:00
Uwe Rathmann 24e8c28d9e unused code removed 2022-03-24 07:59:02 +01:00
Uwe Rathmann f44208213c Squashed commit of the following:
commit 547927f937a3260d5b23068f06cd181de9b7c763
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Wed Mar 23 15:38:40 2022 +0100

    wip

commit ca06b1da4bf9c5b30ef2857f0b6c1e4fb137a64e
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Wed Mar 23 15:30:31 2022 +0100

    using private classes

commit 4977b0afa481039f22b64e7f55262be8053a26c2
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date:   Wed Mar 23 15:18:20 2022 +0100

    avoid using private Qt headers in examples
2022-03-23 15:39:17 +01:00
Uwe Rathmann 9be4562d8f compiler errors for Qt6 fixed 2022-03-23 14:43:05 +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 3bfdd9ed93 workaround for emit usages in qt headers 2022-03-20 13:14:06 +01:00
Uwe Rathmann 25e40103d3 outdated comment fixed 2022-03-20 13:12:30 +01:00
Uwe Rathmann bc3ef26584 include guards formalized 2022-03-20 13:11:34 +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 36c759dc41 qskIsStandardKeyInput added 2022-03-11 14:24:10 +01:00
Uwe Rathmann d7d5c8cff3 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 820bb9cdc2 obsolete version check removed 2022-03-09 07:25:18 +01:00
Uwe Rathmann ff3c3321da QskDialogButton::resetButton 2022-03-08 16:15:37 +01:00
Uwe Rathmann cdb17476b5 platform depending code moved to QskSkin 2022-03-08 15:59:35 +01:00
Uwe Rathmann 7f63392eed TODO note added 2022-03-08 12:08:15 +01:00
Uwe Rathmann ae2c6d87a8 upport for Qt < Qt 5.12 dropped 2022-03-08 11:53:46 +01:00
Uwe Rathmann 2bfb68c7de formal changes 2022-03-08 11:18:10 +01:00
Uwe Rathmann 49de58cdc4 cacheSize as property 2022-03-08 11:17:48 +01:00
Uwe Rathmann 01a79a1b0b updates in setPopupFlags fixed 2022-03-08 11:17:17 +01:00
Uwe Rathmann f17a73f53b updateFocusFrame is protected now 2022-03-08 11:16:14 +01:00
Uwe Rathmann b79e46e256 comment added 2022-02-20 11:06:48 +01:00
Clemens Manert adc4875629
Bugfix: Respect QskControl::Disabled aspect. (#162) 2022-02-20 10:54:01 +01:00
Uwe Rathmann 9cc840f0f8 compatibility method for early Qt versions 2022-02-08 09:01:18 +01:00
Uwe Rathmann 05dd8ea087 setting the placement bit only when being undefined in the request 2022-02-08 09:00:13 +01:00
Uwe Rathmann d38d4429f5 source as string 2022-02-08 08:59:34 +01:00
Uwe Rathmann 96e210ce3c Qt 6.3 ( beta1 ) incompatibilities fixed 2022-02-06 14:32:26 +01:00