Commit Graph

1069 Commits

Author SHA1 Message Date
Sergio Martins
270d177d53 docs++ 2019-06-19 10:37:45 +01:00
Sergio Martins
cdcef34497 DockWidget::setFloating(false) now restores to the correct tab 2019-06-19 10:37:18 +01:00
Sergio Martins
ca4421e963 DockWidget::setFloating(false) now restores to previous tab
TODO: Restore to areas (non-tabbed). Will require a bigger refactoring.
2019-06-18 23:29:18 +01:00
Sergio Martins
0410963a3c Fix calling DockWidget::setFloating(true)
The used titlebar wasn't the right one.
2019-06-18 22:02:59 +01:00
Sergio Martins
d60baf9325 docs: random docs 2019-06-18 21:25:46 +01:00
Sergio Martins
aa7ae24b8b DockWidget: Rework setFloating/isFloating a bit
- setFloating() now works if the widget was tabbed.
- isFloating() changes the definition of floating a bit:
  If a widget is tabbed into another one then it's docked, not tabbed.
  To be floating it has to have it's own window and that window not have
  any other dock widgets, which excludes side-by-side and tabbed stuff, even if it's
  in a floating group (FloatingWindow)
2019-06-18 21:23:51 +01:00
Sergio Martins
5a78ef27c1 TabBar: Exposed code that detached a tab
Called TabBar::detachTab(DockWidget).
2019-06-18 21:14:33 +01:00
Sergio Martins
481f466038 Introduce FloatingWindow::hasSingleFrame() and hasSingleDockWidget() 2019-06-18 18:47:16 +01:00
Sergio Martins
e8bf44d238 tests: Add a minimal tst_isTabbed() 2019-06-18 18:29:27 +01:00
Sergio Martins
0e5409dae7 Introduce DockWidget::isTabbed() 2019-06-18 18:16:12 +01:00
Sergio Martins
7c302dc2d1 docs++ 2019-06-18 18:05:15 +01:00
Sergio Martins
48f4f389a2 More docs and improve Anchor::isValid() 2019-06-18 15:52:55 +01:00
Sergio Martins
18347d919f Rename Anchor::Options to Anchor::Type
Because an anchor can only have 1 type, you can't combine different flags.
2019-06-18 15:29:12 +01:00
Sergio Martins
708bf9941a docs: Document Anchor::Option 2019-06-18 14:57:56 +01:00
Sergio Martins
fa7c9c6b7f Update .gitignore to ignore doxygen artifacts 2019-06-18 14:46:07 +01:00
Sergio Martins
525d72b1c9 docs++
Just @file for now
2019-06-18 14:44:33 +01:00
Sergio Martins
55d0968d96 tests: Print the warning category 2019-06-17 18:24:14 +01:00
Sergio Martins
824ff58464 Merge branch 'master' into kdab_master 2019-05-18 11:16:08 +01:00
Laurent Montel
364d2aae40 Use debug category
Change-Id: I18f56a9c85c50da81693004fec03ee6fe93bc9ce
Reviewed-on: https://codereview.kdab.com/68187
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-05-17 23:43:27 +02:00
Laurent Montel
b06a9c8d60 Fix forward declaration. Remove not necessary includes
Change-Id: If2dc2c52fa8dbabd9aeca03ba96e01c1c6bce37d
Reviewed-on: https://codereview.kdab.com/68186
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-05-15 16:36:42 +02:00
Sergio Martins
8d763e0df9 try to fix macOS build 2019-05-11 23:07:59 +01:00
Sergio Martins
0edcb3e459 Fix rendering the indicators on Linux without a compositor
We use setMask() to punch holes
2019-05-11 22:43:11 +01:00
Sergio Martins
933287e9c3 Add KDDockWidgets::windowManagerSupportsTranslucency() 2019-05-11 22:30:33 +01:00
Sergio Martins
56c33782ec Merge branch 'master' into kdab_master 2019-05-11 22:07:39 +01:00
Laurent Montel
83906dfa21 Remove unused method
Change-Id: I2ee427564bb79c46f58c31991b0468fa2fc73554
Reviewed-on: https://codereview.kdab.com/67900
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-05-07 10:11:57 +02:00
Sergio Martins
38a61fa691 Move WidgerResizeHandler into KDDockWidgets namespace 2019-04-29 22:53:42 +01:00
Sergio Martins
36e7053476 Rename WidgetResizeHandlerBase to WidgetResizeHandler 2019-04-29 22:51:07 +01:00
Sergio Martins
139518405c Remove unneeded hierarchy from WidgetResizeHandler
A single one is enough
2019-04-29 22:45:17 +01:00
Sergio Martins
56cfd8602c Merge branch 'kdab_master' 2019-04-29 21:58:17 +01:00
Laurent Montel
b8d3874609 This method is not implemented
Change-Id: I78b308417c28224e4ecfec4a4164965cad453677
Reviewed-on: https://codereview.kdab.com/67840
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-04-29 22:54:21 +02:00
Laurent Montel
aafa550123 Remove unused rubberband class
Change-Id: I3541e0c71bcfe2a2eae67c556cb758c06a591592
Reviewed-on: https://codereview.kdab.com/67839
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-04-29 22:54:05 +02:00
Sergio Martins
35f89639e6 Fix clazy warnings about pass by ref 2019-04-29 11:46:41 +01:00
Sergio Martins
b4759285dd Fix clazy warnings related to missing Q_OBJECT and object parent 2019-04-29 11:11:27 +01:00
Allen Winter
3dc933e922 .krazy - SKIP ECM cmake files 2019-04-28 09:48:25 -04:00
Allen Winter
beae5b26a4 .clazy - clazy config 2019-04-28 09:43:32 -04:00
Sergio Martins
7950a1b277 Remove dead code 2019-04-27 18:32:27 +01:00
Sergio Martins
767195bbc6 Return early when nonsense happens
shouldn't happen though, but at least add a warning there
2019-04-27 18:16:30 +01:00
Sergio Martins
937bc2b2db Fix possible null pointer dereference 2019-04-27 18:16:13 +01:00
Sergio Martins
0bd95de60e Fix possible null pointer dereference 2019-04-27 18:11:02 +01:00
Sergio Martins
e5a6040d09 Update .gitignore 2019-04-26 18:44:01 +01:00
Laurent Montel
a9b17aee02 Add ECMEnableSanitizers to allow to compile it with ASAN support
Change-Id: Ia2d9fc073d716e1ed9d525fdfdbf762bedc80e3b
Reviewed-on: https://codereview.kdab.com/67814
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-04-26 15:19:28 +02:00
Laurent Montel
8b388d26cd Use enum here
Change-Id: I33ee5509bd167afdc80709eb61aab774c253dacb
Reviewed-on: https://codereview.kdab.com/67813
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-04-26 11:03:01 +02:00
Laurent Montel
985787faec Check QVector::isEmpty() and not QVector::size() == 0
Change-Id: I1d5523a2bbeac2a1f3bb95e8cb56602505868000
Reviewed-on: https://codereview.kdab.com/67812
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-04-26 11:02:49 +02:00
Laurent Montel
bed08825c8 Use Q_EMIT keyword
Change-Id: Iafc17a2cbbbd3c5ee8f9d9e5c1c12a092e5797fa
Reviewed-on: https://codereview.kdab.com/67811
Reviewed-by: Sérgio Martins <sergio@kdab.com>
2019-04-26 11:02:17 +02:00
Sergio Martins
4d50ac8fb3 Merge branch 'master' into kdab_master 2019-04-25 16:23:04 +01:00
Sergio Martins
a03035d7a6 Fix krazy warnings about includes 2019-04-25 16:22:48 +01:00
Sergio Martins
5d14370407 Use qAsConst() 2019-04-25 16:22:48 +01:00
Sergio Martins
602557d5d8 Fix some detachments 2019-04-25 16:22:48 +01:00
Sergio Martins
c25a7a378e Fix clazy warning 2019-04-25 16:22:48 +01:00
Allen Winter
497ad706df DropArea.cpp, Frame.cpp, TitleBar.cpp - minor include cleaning 2019-04-25 16:22:48 +01:00