Commit Graph

55 Commits

Author SHA1 Message Date
Allen Winter
df692686e7 various - update copyright year 2020-01-07 11:36:56 -05:00
Sergio Martins
9c6fd9ba0e Add support for lazy resize
In this mode the resize is only done when mouse is released.

Fixes #21
2019-12-29 17:55:19 +00:00
Sergio Martins
927510dfff Support re-ordering tabs with mouse
Just set KDDockWidgets::Config::Flag_AllowReorderTabs before creating
the dock widgets.

Fixes #20
2019-12-26 15:19:27 +00:00
Allen Winter
41d07ef8c6 examples - include guards. use qrand() 2019-12-10 14:48:10 -05:00
Sergio Martins
8e437f598b Remove old readme from the example, it's no longer relevant 2019-10-22 16:44:18 +01:00
Sergio Martins
e4eac7a688 demo: Fix startup delay 2019-10-22 14:17:57 +01:00
Sergio Martins
44bcfdf53c Simplify the demo, make it more verbose
So people see how the API is used.
using vectors of structs with parameters is very compact but
is harder on the reader of a new API
2019-10-22 13:39:41 +01:00
Sergio Martins
a9f5917a54 demo: Make it look nice
Logo now scales better
2019-10-22 13:10:01 +01:00
Sergio Martins
fa8aaeff50 Use KDAB artwork for the dockwidgets example
Work in progress but already looks good.
2019-10-21 23:08:59 +01:00
Sergio Martins
787f7802be Move the private code into a private/ folder
It's nice to have a similar include hierarchy at build time and install
time.

It also makes things more explicit
2019-10-20 19:24:54 +01:00
Sergio Martins
a3bb7e6b4b Remove examples/CMakeLists.txt
Examples are standalone now
2019-10-20 17:55:27 +01:00
Sergio Martins
511a035df1 Install more missing _p.h headers to private/
The custom separator example is disabled for now, as we're not
installing the multisplitters headers yet
2019-10-07 13:55:09 +01:00
Sergio Martins
a0787f1488 examples: Move custom_titlebar code into kddockwidgets_example
Guarded with a command line switch, no need to have two examples
2019-10-06 22:26:09 +01:00
Sergio Martins
0e5f5bf679 examples: tidy 2019-10-06 14:47:42 +01:00
Sergio Martins
1adefed05d examples: Remove the embedded option
It was just for testing the MFC case, which is fixed and integrated
into the unit-tests. Not something interesting for end-users
2019-10-06 14:39:05 +01:00
Sergio Martins
2ee1cac097 examples: Use QCommandLineParser 2019-10-06 14:34:31 +01:00
Sergio Martins
d1d9c027c7 example: Move the main window to its own class
Renamed ExampleDockableWidget to MyWidget
2019-10-06 14:12:38 +01:00
Sergio Martins
47c2b7477b examples: Remove the QtQuick example from master branch
Use 'quick' branch for QtQuick development and only merge back when
done
2019-10-06 13:40:43 +01:00
Sergio Martins
e0f76ba38b cmake: target renaming for the examples 2019-10-06 13:40:43 +01:00
Sergio Martins
9504a728d4 Rename basic_external to dockwidgets
This will be our main example now
2019-10-06 13:29:40 +01:00
Sergio Martins
e08ce5a636 Remove basic example, as the basic_external is enough 2019-10-06 13:19:09 +01:00
Jean-Michaël Celerier
f6909b0fa5 Make KDDockWidgets installable, find_packageable and useable from external projects 2019-09-19 11:35:54 +02:00
Sergio Martins
8df3eddd9b Fix crash when trying to drag a single tab
and the tab was in a floating window and we were using "TabsAlwaysVisible"
2019-09-12 17:22:29 +01:00
Sergio Martins
abbc79f0e0 Progress with the QtQuick port 2019-09-07 16:20:22 +01:00
Sergio Martins
f0078c3649 Fix dragging window by title bar when using document mode
When using document mode the click goes to the tab bar, not the
tab widget
2019-08-28 17:05:45 +01:00
Sergio Martins
c1ea98825e Improve includes 2019-08-12 16:41:00 +01:00
Sergio Martins
17b3048aeb cmake: Rename target to kddockwidgets instead of docks 2019-08-08 16:03:59 +01:00
Sergio Martins
266e683f98 Abstract Separator too, it inherits from QWidgetAdapter 2019-08-06 23:17:08 +01:00
Sergio Martins
8aa81d8f99 Add example of customizing SeparatorWidget 2019-08-06 14:10:13 +01:00
Sergio Martins
8f05c3fa72 cmake: include_directories-- 2019-08-05 23:55:19 +01:00
Sergio Martins
fb837b7713 Move DockWidget.cpp into widgets/
As it's specific to QtWidgets. It's mostly empty now
and inheriting from DockWidgetBase, but we'll move a few stuff.
2019-08-05 23:35:44 +01:00
Sergio Martins
7a06126194 examples: Add a custom title bar example 2019-08-05 15:54:09 +01:00
Sergio Martins
a0dda5f0ec example: Add option to appear with the MainWindow embedded 2019-08-01 14:56:47 +01:00
Sergio Martins
6754075c68 Set icon and title to native FloatingWindow title bar too 2019-07-31 11:22:08 +01:00
Sergio Martins
d2f7503359 Added a comment 2019-07-31 09:54:16 +01:00
Sergio Martins
73954d40ff Fix aero-snap when there's native childs eating WM_NCHITTEST 2019-07-31 09:32:43 +01:00
Sergio Martins
10c2b0fa77 Reenable layout storing 2019-07-23 17:08:54 +01:00
Sergio Martins
ddb772d54f Fix clazy build 2019-07-22 09:34:15 +01:00
Sergio Martins
f8560c18ca Comment out LauoutSaver public api for now
Still working on it
2019-07-21 18:25:30 +01:00
Sergio Martins
2b5ce7a197 Merge pull request #12 from KDAB/cmake_cleanup
Clean up cmake files
2019-07-20 22:46:16 +01:00
Sergio Martins
d98e5dd966 Wayland debug++ 2019-07-20 19:05:01 +01:00
Sergio Martins
d71acc7312 Add some debug code to test changing window position on Wayland 2019-07-20 18:21:17 +01:00
Sergio Martins
fbcd41937a Add an event filter for debugging mouse 2019-07-20 17:35:24 +01:00
Sergio Martins
fd5b2ad2f1 Use AA_UseHighDpiPixmaps in the example
it's a best practice
2019-07-20 17:25:25 +01:00
Mike Krus
1824eb6892 Clean up cmake files
Use modern syntax in most places.
2019-07-19 22:45:22 +01:00
Sergio Martins
24dfb34a6f Less DropArea qobject_casts 2019-07-17 22:05:12 +01:00
Laurent Montel
9bf52e5ded Add icon on DockWidget 2019-07-15 12:10:23 +02:00
Sergio Martins
7a6e9df2ed Add support for placeholders
So dock widgets remember their previous position so can be restored.
TODO: Support playing with dock widget visibility
2019-06-25 19:38:50 +01:00
Sergio Martins
e1ba281254 Silence some clazy warnings in the tests and examples 2019-06-21 13:05:28 +01: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