Commit Graph

772 Commits

Author SHA1 Message Date
Uwe Rathmann 517f17088a warning disabled 2019-10-27 08:10:25 +01:00
Uwe Rathmann 6dc7fcd6c9 don't recreate textures when the target size for non scalable graphics
has changed
2019-10-16 10:08:05 +02:00
Uwe Rathmann eb4cf2c2ae making readOnly a state 2019-09-27 07:34:25 +02:00
Uwe Rathmann 98f3500ab2 nasty layout bug fixed 2019-09-24 16:49:52 +02:00
Uwe Rathmann c1e153f036 expanding rowCount/columnCount fixed 2019-09-24 16:48:13 +02:00
Uwe Rathmann fdb27d93c3 signature fixed 2019-09-24 16:47:06 +02:00
Uwe Rathmann a8f888ca08 micro optimzation 2019-09-23 16:59:48 +02:00
Uwe Rathmann 9b4cc90063 using siueConstraint 2019-09-23 13:21:55 +02:00
Uwe Rathmann 5b094af452 dump method added 2019-09-23 13:20:56 +02:00
Uwe Rathmann 4224613e15 qskBoundedConstraint fixed 2019-09-20 17:57:02 +02:00
Uwe Rathmann 77c9809574 qskConstrainedItemSize fixed 2019-09-20 10:23:48 +02:00
Uwe Rathmann e49228381e avoid pointless default path 2019-09-20 07:45:50 +02:00
Uwe Rathmann 61e92ce6b0 avoid pointless default path 2019-09-20 07:45:07 +02:00
Uwe Rathmann 1707eefbec code more readable 2019-09-20 07:44:39 +02:00
Uwe Rathmann ceaae8aa60 layoutSizeHint reimplemented 2019-09-20 07:44:03 +02:00
Uwe Rathmann 81817d53da dependency to QskLayoutHint removed 2019-09-20 07:43:16 +02:00
Uwe Rathmann c6553c3310 block resizing of children, when having no width/height 2019-09-20 07:08:08 +02:00
Uwe Rathmann 03c7913f18 check for exceeding extra settings added 2019-09-20 07:06:52 +02:00
Uwe Rathmann ff5e7574d5 padding added 2019-09-20 07:04:17 +02:00
Uwe Rathmann fa26e10c0e calculation of size hints fixed 2019-09-19 09:42:37 +02:00
Uwe Rathmann fdea935991 layoutSizeHint fixed 2019-09-19 09:21:34 +02:00
Uwe Rathmann da7f40ca07 using sizeConstraint instead of sizeHint 2019-09-18 09:12:39 +02:00
Uwe Rathmann 425fb3978f auto layouting code improved 2019-09-18 08:57:08 +02:00
Uwe Rathmann f4887a6e51 checks added 2019-09-18 08:56:16 +02:00
Uwe Rathmann f2b4a5982e handling of the IgnoreFlag added 2019-09-18 08:44:32 +02:00
Uwe Rathmann 171337d399 addColumnSpacer/addRowSpacer added 2019-09-18 08:43:54 +02:00
Uwe Rathmann 86f9415211 checks added 2019-09-18 08:43:09 +02:00
Uwe Rathmann 287631e0d7 layoutSizeHint improved 2019-09-18 08:42:42 +02:00
Uwe Rathmann c71c496235 using updateResources for loading the image 2019-09-18 08:41:53 +02:00
Uwe Rathmann 422c40c397 handling of spacers fixed 2019-09-16 12:39:16 +02:00
Uwe Rathmann 1d04c19999 minor optimization for invisible items with retainSizeWhenHidden flag 2019-09-16 12:38:10 +02:00
Uwe Rathmann 8ee2377c76 spacer for grid layouts: qreal -> QSizeF 2019-09-16 12:36:29 +02:00
Uwe Rathmann 2a122d4e05 int -> qreal 2019-09-16 12:32:37 +02:00
Uwe Rathmann 15ae3901a9 qskSizeConstraint fixed 2019-09-16 12:30:59 +02:00
Uwe Rathmann 5f751ede09 respecting the layout hints when autolayouting children 2019-09-16 12:30:00 +02:00
Uwe Rathmann 5974b4115d spacer -> spacing 2019-09-16 07:32:28 +02:00
Uwe Rathmann 1571b1f59a handling of spacings fixed 2019-09-15 19:48:18 +02:00
Uwe Rathmann 38974f747b qskConstrainedItemSize also respecting the minimum constraint 2019-09-15 19:26:46 +02:00
Uwe Rathmann 82e18ff967 missing polish added 2019-09-15 19:00:51 +02:00
Uwe Rathmann 71d3896efe QskLayoutEngine2D::sizeHint fixed 2019-09-15 14:32:51 +02:00
Uwe Rathmann 84248098ca don't return constraining parameters 2019-09-15 14:31:13 +02:00
Uwe Rathmann 13d2814bc9 return -1 for the constraining direction 2019-09-14 15:41:34 +02:00
Uwe Rathmann 1e733c4e5c invalidation on changes of visisbility added 2019-09-14 15:40:20 +02:00
Uwe Rathmann 4c156706a5 index error fixed 2019-09-14 15:37:32 +02:00
Uwe Rathmann fb5885b3d7 mismatch warnigs added 2019-09-14 15:31:48 +02:00
Uwe Rathmann 65feaac031 convenience methods for inserting and changing the layoutAlignmentHint
in one call
2019-09-14 15:28:49 +02:00
Uwe Rathmann 027db164d0 whitespaces removed 2019-09-14 15:27:41 +02:00
Uwe Rathmann 3975553dd7 convenience method QskControl:.sizeConstraint added 2019-09-14 15:27:04 +02:00
Uwe Rathmann 4840947a5a setting of explicit width/height fixed 2019-09-13 06:57:48 +02:00
Uwe Rathmann 29bb2e8093 compiler warning fixed 2019-09-13 06:55:28 +02:00
Uwe Rathmann 30312b3728 sizeConstraint added 2019-09-13 06:54:55 +02:00
Uwe Rathmann 46e8820cdd beautified 2019-09-13 06:52:47 +02:00
Uwe Rathmann 3f0e398d2b Qt 5.6 incompatibility fixed 2019-09-13 06:46:16 +02:00
Uwe Rathmann eb6dd49be2 hide m_columnCount 2019-09-12 10:44:41 +02:00
Uwe Rathmann 4d0a80ce6d stop animators, when the window becomes invisible 2019-09-12 10:44:06 +02:00
Uwe Rathmann 2bd067f4ea ignore the minimum in qskConstrainedItemSize 2019-09-11 06:52:23 +02:00
Uwe Rathmann 7311b5be56 don't use bounding maximum size of the children as maximum size 2019-09-11 06:51:40 +02:00
Uwe Rathmann 177bb699bc processing of all type of size constraints ( minimum/preferred/maximum )
completed
2019-09-10 17:01:47 +02:00
Uwe Rathmann 9e87cb7b23 dh 2019-09-09 08:49:26 +02:00
Uwe Rathmann 11fdeaf3c1 making clang happy 2019-09-09 08:43:06 +02:00
Uwe Rathmann 9d79b2edf9 isVisibleToLayout added 2019-09-06 19:57:25 +02:00
Uwe Rathmann 3c84c13691 isVisibleToLayout added 2019-09-06 19:56:41 +02:00
Uwe Rathmann e8c46bf0b9 QskQuickItem::isVisibleToParent added 2019-09-06 19:56:03 +02:00
Uwe Rathmann ff27fff0a0 margin/padding confusion fixed 2019-09-06 12:07:18 +02:00
Uwe Rathmann 2500111ee5 making contentsSizeHint protected 2019-09-05 15:16:33 +02:00
Uwe Rathmann b1a2236a90 making contentsSizeHint protected 2019-09-05 13:09:04 +02:00
Uwe Rathmann 153a682fd5 missing namespace qualifier added 2019-09-05 12:37:27 +02:00
Uwe Rathmann 27bb868f9d using QskControl::LayoutHints 2019-09-05 12:08:31 +02:00
Uwe Rathmann 72aee9970c using QskControl::alignmentHint instead of QskStackBox:.setAlignmentOf 2019-09-05 11:45:25 +02:00
Uwe Rathmann 6a588dc95a moving alignment/retainSizeWhenHidden from layouts to QskControl 2019-09-05 10:46:42 +02:00
Uwe Rathmann ab5dc1924e wrong qulifier removed 2019-09-05 07:05:28 +02:00
Uwe Rathmann f4ce23a422 QskLayoutConstraint::itemRect -> QskLayoutConstraint::boundedRect 2019-09-04 12:51:58 +02:00
Uwe Rathmann a52c8d2e7b obsolete code removed from QskLayoutConstraint 2019-09-04 12:11:07 +02:00
Uwe Rathmann 74c349e6c6 blocking of LayoutRequest events to QskControlPrivate 2019-09-04 08:08:13 +02:00
Uwe Rathmann b80b9b709c splitting QskControl.cpp 2019-09-04 06:59:43 +02:00
Uwe Rathmann fcd455a545 pointless Q_INVOKABLE removed 2019-09-03 08:42:23 +02:00
Uwe Rathmann dbae418b1d code moved to QskLayoutConstraint 2019-09-01 15:33:36 +02:00
Uwe Rathmann 83efc6afe7 local type definition removed 2019-09-01 13:12:41 +02:00
Uwe Rathmann a93c263c87 using QskLayoutConstraint 2019-09-01 13:01:01 +02:00
Uwe Rathmann 4e2e2ce30e Disabled state always by using events 2019-09-01 11:45:34 +02:00
Uwe Rathmann bebdd80c9e fallback for pointless constraints added 2019-08-23 09:09:52 +02:00
Uwe Rathmann fe2dc81d07 setting a default constraint value 2019-08-09 10:16:14 +02:00
Uwe Rathmann fb3c3427bd QSizeF() alread initializes -1, -1 2019-08-09 10:15:03 +02:00
Uwe Rathmann 7075879244 handling of multicells improved 2019-07-29 17:34:24 +02:00
Uwe Rathmann 66041bca22 grid layout code improved 2019-07-28 17:06:50 +02:00
Uwe Rathmann 0c7774ba11 typo fixed 2019-07-27 12:51:26 +02:00
Uwe Rathmann f5ee8a3853 QGridLayoutEngine replaced by QskGridLayoutEngine also for QskGridBox 2019-07-27 12:36:52 +02:00
Uwe Rathmann 50d85a524e QskLayoutConstraint::effectiveConstraint hidden 2019-07-25 18:38:54 +02:00
Uwe Rathmann ff0118fe23 effectiveSizeHint improved 2019-07-25 18:38:09 +02:00
Uwe Rathmann c37a99e059 no animtors for invisible windows 2019-07-19 12:18:16 +02:00
Uwe Rathmann 401adac3ba QskLinearBox::count, src/layouts/QskGridBox::count 2019-07-17 17:54:16 +02:00
Uwe Rathmann fae80c3107 effectiveSizeHint added 2019-07-17 17:52:15 +02:00
Uwe Rathmann 353cabe4ac using effectiveCount instead of count 2019-07-13 11:01:48 +02:00
Uwe Rathmann 761c05d316 license note added 2019-07-13 11:01:27 +02:00
Uwe Rathmann 7788cdf1c9 QskLinearLayoutEngine::clear added 2019-07-13 10:36:12 +02:00
Uwe Rathmann e9ff7cca40 QskLayoutChain prepared to be usable for grid layouts 2019-07-13 10:03:04 +02:00
Uwe Rathmann 4f48a3ab92 QskLinearLayoutEngine setter indicating changes 2019-07-12 15:37:42 +02:00
Uwe Rathmann 16a67678f3 resetChain -> updateLayoutChain 2019-07-12 15:26:55 +02:00
Uwe Rathmann a762d51099 code moved to QskLayoutConstraint 2019-07-12 15:24:06 +02:00
Uwe Rathmann f53b28727f using auto 2019-07-12 15:17:02 +02:00
Uwe Rathmann 49c216b582 addCell -> expandTo 2019-07-09 14:52:43 +02:00
Uwe Rathmann bfe2b58ae3 item -> entry 2019-07-09 14:49:50 +02:00
Uwe Rathmann 8555cc3cc4 convenience functions added 2019-07-09 14:49:24 +02:00
Uwe Rathmann 6838260606 QskLinearBox::spacingAtIndex added 2019-07-09 14:27:50 +02:00
Uwe Rathmann f52b8a2e46 QskDialogSubWindow::done fixed 2019-07-05 13:18:12 +02:00
Uwe Rathmann 6fb347eef9 making the code more readable 2019-07-04 14:22:55 +02:00
Uwe Rathmann 42388cb267 debug operators, minor improvements 2019-07-02 18:18:15 +02:00
Uwe Rathmann d600fe9d7b debug operator improved 2019-07-02 18:17:57 +02:00
Uwe Rathmann 148a258160 bad contentsSizeHint implementation relying on the current size fixed 2019-07-02 16:26:05 +02:00
Uwe Rathmann 247d7cb7a9 reset fixed 2019-07-01 16:48:57 +02:00
Uwe Rathmann 9593226e0c code moved to QskLayoutChain 2019-07-01 14:45:25 +02:00
Uwe Rathmann c139bf2f99 not using QMetaObject::newInstance anymore, incompatibilities with Qt >=
12.4 fixed
2019-06-25 20:27:40 +02:00
Uwe Rathmann b1f56594bc QskControl::maybeUnresized() added 2019-06-23 12:53:38 +02:00
Uwe Rathmann 309106965d QskAnimationHint::UpdateFlag introduced 2019-06-22 16:26:10 +02:00
Uwe Rathmann a4a49bb7ae blocking consecutive LayoutRequest events until the next request for
sizeHints happens
2019-06-22 16:17:12 +02:00
Uwe Rathmann ed071ecb65 delete childrenRect from the public API. It does not make sense for a
system, where the parent is responsible for laying out the children
2019-06-22 16:15:37 +02:00
Uwe Rathmann 447eeb9cb2 don't export QskDirtyItemFilter 2019-06-22 16:14:56 +02:00
Uwe Rathmann 1c5cbc10d1 growFlag -> canGrow 2019-06-20 11:46:34 +02:00
Uwe Rathmann 79597b61ca QskSizePolicy - more constrained policies 2019-06-20 11:45:32 +02:00
Uwe Rathmann abfdb4894e saving some bytes 2019-06-19 14:32:59 +02:00
Uwe Rathmann ee65ee1857 replacing QGridLayoutEngine by QskLinearLayoutEngine, QskStackBox
without QGridLayoutEngine
2019-06-19 14:08:45 +02:00
Uwe Rathmann 8b6e00cc68 debug operator added 2019-06-19 13:26:29 +02:00
Uwe Rathmann 6e10527a93 warnings about invalid size policies added 2019-06-19 13:25:29 +02:00
Uwe Rathmann 6a093b9343 respecting minimum/maximum sizes 2019-06-19 13:24:53 +02:00
Uwe Rathmann e60373aa3c forgotten debug statement removed 2019-06-14 13:02:31 +02:00
Uwe Rathmann 56acfbb056 calling QskWindow::effectivePreferredSize only once 2019-06-14 13:00:28 +02:00
Uwe Rathmann 1918bc7cd8 [Misc] one dimensional version of sizeHint added 2019-06-13 14:00:30 +02:00
Uwe Rathmann ba823301b9 QskLayoutHint added 2019-06-04 08:00:00 +02:00
Uwe Rathmann 7ad6072d67 defensive chacks added 2019-06-04 07:59:30 +02:00
Uwe Rathmann 4e23dd9428 more method for future use 2019-05-17 22:33:38 +02:00
Uwe Rathmann 40bbe2d7d9 more functions 2019-05-17 22:33:02 +02:00
Uwe Rathmann c923200e52 obsolete declaration removed 2019-05-17 07:00:08 +02:00
Uwe Rathmann aea6f829ae allow setWatchedItem( nullptr ) 2019-05-16 13:57:55 +02:00
Uwe Rathmann 3426e78ed4 more efficient implementation of qskAlignedRect 2019-05-16 08:23:10 +02:00
Uwe Rathmann 0b8d857714 takeHint added, removeHint with return code 2019-05-16 08:14:53 +02:00
Uwe Rathmann 896772c9b4 making cppcheck happier 2019-05-16 08:14:32 +02:00
Uwe Rathmann 4f5c919706 QskLayoutConstraint::Type as bits 2019-05-12 15:26:57 +02:00
Uwe Rathmann 20a9b3bc76 shifting code to qmlexport 2019-05-12 15:19:49 +02:00
Uwe Rathmann 6113667976 code shifted to qmlexport 2019-05-12 13:54:22 +02:00
Uwe Rathmann 18bea9a46f code moved from QskLayoutItem to QskLayoutConstraint 2019-05-12 12:27:25 +02:00
Uwe Rathmann 62e91ebcee missing polish calls added 2019-05-12 12:26:34 +02:00
Uwe Rathmann d19d82a65f qskSetTransparentForPositioner added 2019-05-12 12:18:41 +02:00
Uwe Rathmann 61ecd2f52e dh 2019-05-12 10:11:50 +02:00
Uwe Rathmann 1216c9aeeb using rowCount/columnCount 2019-05-10 11:58:01 +02:00
Uwe Rathmann 7761fccca6 properties added 2019-05-10 08:09:48 +02:00
Uwe Rathmann f9a71be21c indentation fixed 2019-05-10 07:57:25 +02:00
Uwe Rathmann f5fa8d6fa3 making QskLayoutBox a QskBox 2019-05-10 07:45:10 +02:00
Uwe Rathmann 01d5fedca7 making the panel optional 2019-05-10 07:44:13 +02:00
Uwe Rathmann 16d071489e innerBox reminder added 2019-05-10 07:33:59 +02:00
Uwe Rathmann d53cb4116b code cleanup 2019-05-10 06:45:23 +02:00
Uwe Rathmann 3a616d3c6a missing QSK_EXPORT declarations added 2019-05-09 19:11:25 +02:00
Uwe Rathmann aecd7406f3 minor changes 2019-05-06 16:36:52 +02:00
Uwe Rathmann 748bdebc61 layoutRectForWidth fixed 2019-04-30 09:05:08 +02:00
Uwe Rathmann 5453e84022 using 1e6 as dummy dimension 2019-04-30 09:04:46 +02:00
Uwe Rathmann 196b8f7688 implementation of dynamic constraints reorganized 2019-04-26 18:11:13 +02:00
Uwe Rathmann dd39017dbe implementation of dynamic constraints reorganized 2019-04-26 18:09:59 +02:00
Uwe Rathmann 8dc73dfdac defensive checks added 2019-04-26 18:07:35 +02:00
Uwe Rathmann a9b5eeec96 declaration without implementation removed 2019-04-26 18:06:23 +02:00
Uwe Rathmann 98a7fff0a4 qskControlCast added 2019-04-26 11:56:09 +02:00
Uwe Rathmann 91c16e8076 making layout calculations of the skinlets independent from the current
of the control
2019-04-25 14:23:39 +02:00
Uwe Rathmann 3f1c5fc948 layout code fixed 2019-04-24 19:19:47 +02:00
Uwe Rathmann ba365909d8 qskValidOrInnerRect improved 2019-04-24 08:39:13 +02:00
Uwe Rathmann b2d9663a20 resolving loop harmonized with QskSkinHintTable 2019-04-23 11:34:34 +02:00
Uwe Rathmann 54f8591c33 QskTabBar::Panel | QskAspect::Spacing added 2019-04-23 08:51:17 +02:00
Uwe Rathmann 925613b81c animatedValue fixed 2019-04-19 17:04:36 +02:00
Uwe Rathmann d03779cc6d effectivePlacement fixed 2019-04-18 16:17:35 +02:00
Uwe Rathmann 89f1148a7b finding the corresponding tabBar fixed 2019-04-18 16:16:44 +02:00
Uwe Rathmann bbc3c6bc62 more checks for QskDialogSubWindow::exec 2019-04-18 16:15:41 +02:00
Uwe Rathmann 05d9b98dd7 pan gesture detection modified 2019-04-18 16:13:49 +02:00
Uwe Rathmann d55af92fb6 const version for qskFindAncestorOf added 2019-04-18 16:13:05 +02:00
Uwe Rathmann 3c8cea78ee suicide assertion added 2019-04-18 16:12:33 +02:00
Uwe Rathmann 126fb5b9bd registering QskGradientStop 2019-04-18 16:11:38 +02:00
Uwe Rathmann c91e3039d4 making some getters public 2019-04-18 16:11:05 +02:00
Uwe Rathmann 9ba37738af tabbars for all edges ( left, right, top, bottom ) 2019-04-17 16:33:17 +02:00
Uwe Rathmann 9e06fbecd1 missing export declarations added 2019-04-17 15:37:03 +02:00
Uwe Rathmann 713c80c805 don't animate before being initially painted 2019-04-16 11:54:34 +02:00
Uwe Rathmann 045059b71d using z ordering instead of child reordering, to keep the focus tab
chain working
2019-04-11 14:03:20 +02:00
Uwe Rathmann 8fd6910ca4 manually scaling textures according to window coordinates 2019-04-10 19:39:06 +02:00
Uwe Rathmann c539e3bb24 snapToGrid disable as it leads to rounding errors 2019-04-10 19:38:29 +02:00
Uwe Rathmann 8058615c02 qskInnerRectF added 2019-04-10 19:37:59 +02:00
Uwe Rathmann f1600a396d code duplication removed 2019-04-08 13:25:06 +02:00
Uwe Rathmann 44368f97a8 QskLayout -> QskLayoutBox 2019-04-08 13:08:58 +02:00
Uwe Rathmann 0ccffad3ac always reurning false for contains() to help test tools 2019-04-04 18:00:22 +02:00
Uwe Rathmann f681e0e2db workround for Qt < 5.10 added 2019-04-04 17:59:17 +02:00
Uwe Rathmann 9a3b175798 static assertion added 2019-04-02 17:50:08 +02:00
Uwe Rathmann 250cce0d76 using feature files 2019-04-02 09:07:09 +02:00
Uwe Rathmann ba95c58aa2 CONFIG+=hide_symbols added 2019-04-01 17:41:21 +02:00
Uwe Rathmann 7cbe60f5fc project file include mechanism based on QMAKEFEATURES 2019-03-31 13:05:25 +02:00
Uwe Rathmann 3d80322afe autoDelete parameter for QskLayout::clear added 2019-03-31 10:33:23 +02:00
Uwe Rathmann d09d08c338 closing the input panel, when the corresponding input item gets
destroyed
2019-03-30 19:17:45 +01:00
Uwe Rathmann d3e9c1f010 missing signal added 2019-03-30 19:11:35 +01:00
Uwe Rathmann 58a942bb2d trailing blanks removed 2019-03-26 16:11:50 +01:00
Uwe Rathmann 35990ac233 missing update calls added 2019-03-26 16:10:15 +01:00
Uwe Rathmann 8e8431f186 ignoring the horizontal size hint of the input proxy 2019-03-25 09:21:21 +01:00
Uwe Rathmann 4c881bedb4 reordering tab buttons instead of using z values 2019-03-23 09:43:15 +01:00
Uwe Rathmann 40e6fa9b52 For some reason the position of the eleided text is wrong
with QTextOption::NoWrap - even if word wrapping
 for elided text does not make any sense.
2019-03-22 15:53:07 +01:00
Uwe Rathmann 33cf1f0f3b oh boy ! 2019-03-21 14:07:00 +01:00
Uwe Rathmann 37fb088111 avoid layout issues when creating a QTextLayout with eliding and wrapping 2019-03-19 17:36:34 +01:00
Uwe Rathmann 943e2b6de8 QskSkinnable::resetHint added 2019-03-19 17:36:12 +01:00
Uwe Rathmann 53f3dc519d qskAncestorOf -> qskFindAncestorOf 2019-03-16 16:11:27 +01:00