Commit Graph

944 Commits

Author SHA1 Message Date
Sergio Martins
09b2d749fa fuzzer: Don't hide hidden dock widgets and don't show visible ones 2019-10-12 10:13:12 +01:00
Sergio Martins
954fb271d3 fuzzer: Also serialize the AddDockWidget operation 2019-10-11 17:04:26 +01:00
Sergio Martins
2769c8a789 fuzzer: Fix serializing QRect and QSize 2019-10-11 15:09:24 +01:00
Sergio Martins
38619e734f fuzzer: dump to json when it fails 2019-10-11 14:18:20 +01:00
Sergio Martins
005e811eaa fuzzer: Fix hidding/showing operations
They werent receiving a dock widget name.
Normalized them, they now receive Fuzzer* via ctor
2019-10-11 13:33:13 +01:00
Sergio Martins
4d7da1e6f3 tests: Fix build
Fuzzer.cpp was filtered out by .gitignore
2019-10-11 13:27:13 +01:00
Sergio Martins
233d3f14cc fuzzer: AddDockWidget operation now works 2019-10-11 13:20:16 +01:00
Sergio Martins
e432c0d409 fuzzer: Move fuzzer into a fuzzer/ directory 2019-10-11 12:45:34 +01:00
Sergio Martins
16876695e3 fuzzer: Add an OperationType_AddDockWidget operation
fuzzer will have to be refactored before finishing it
2019-10-11 12:12:13 +01:00
Sergio Martins
1493ee6bb2 tests: Wait for FloatingWindow to be deleted when closing dockwidget 2019-10-11 11:41:35 +01:00
Sergio Martins
b20d0f0412 tests: Add missing include guards 2019-10-11 11:41:31 +01:00
Sergio Martins
a2e610ee4b tests: share waitForEvent() and waitForDeleted() 2019-10-11 11:38:21 +01:00
Sergio Martins
5fdf551907 fuzzer: Refactor operations a bit 2019-10-11 11:24:43 +01:00
Sergio Martins
0322dcf553 fuzzer: Chose the dock widget to run the operation on 2019-10-11 09:01:29 +01:00
Sergio Martins
e530170753 fuzzer: Randomize operations too 2019-10-11 08:53:51 +01:00
Sergio Martins
0b24cf70c2 fuzzer: Fail if there's a warning 2019-10-11 08:48:20 +01:00
Sergio Martins
83625bdda3 tests: Move the qDebug filter to Testing.h
So it can be shared with the fuzzer
2019-10-11 08:46:51 +01:00
Sergio Martins
d01c8ac646 tests: Initial implementation of the fuzzer
Also the Testing now has some sort of framework for so anyone can
write tests easier in the future. Still wip.
2019-10-09 18:35:04 +01:00
Sergio Martins
c0d8b8e083 Remove the old fuzzer, we're doing an overhaul 2019-10-09 15:36:43 +01:00
Sergio Martins
5a5e6f3762 Add Q_DECLARE_OPERATORS_FOR_FLAGS for FrameOptions 2019-10-08 18:01:11 +01:00
Sergio Martins
ac313c5a24 Don't save floating geometry on clear()
clear() shouldn't save anything.
Fixes floating dockwidgets not having proper geometry when shown
after clear() was called.
2019-10-08 14:59:31 +01:00
Sergio Martins
58e90bd7c4 Make MainWindow_None the default, instead of MainWindow_HasCentralFrame
Central Frame is the old Qt way. With KDDockWidgets everwhere
is fair game to dock and undock.
2019-10-07 14:02:30 +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
a0d05b4e2b Move Frame::Options enum to KDDockWidgets.h
So we can forward declare Frame and not include private headers
in FrameworkWidgetFactory.h
2019-10-07 13:43:48 +01:00
Sergio Martins
00b6eab2d3 Don't build examples for now
Only a standalone build work, as the examples use <kddockwidget/
qualified includes, so require kddockwidgets to be built and
installed first
2019-10-07 00:22:38 +01:00
Sergio Martins
21579f2743 Minor method renames 2019-10-07 00:16:16 +01:00
Sergio Martins
01249374e9 Install the *_p.h headers into a private/ folder
As the API is not stable
2019-10-06 23:43:01 +01:00
Sergio Martins
ea75b84af3 cmake: Install missing headers 2019-10-06 23:05:01 +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
7d57af3b8c cmake: Don't advertise QtQuick support yet 2019-10-06 13:31:09 +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
Sergio Martins
b5fad9a601 docs++ 2019-10-05 12:54:25 +01:00
Sergio Martins
0d4551d42a Update .gitignore 2019-10-04 17:34:31 +01:00
Sergio Martins
eb96288534 docs: Improved @file docs 2019-10-04 17:33:42 +01:00
Sergio Martins
3c482e743a Fix invalid downcast detected by ASAN
~Frame() triggers MultiSplitterLayout to emit visibleWidgetCountChanged()
which the Frame being destroyed is connected to. So disconnect before
~QWidget runs.
2019-10-02 12:53:27 +01:00
Sergio Martins
8663e02614 Minor indentation fix 2019-10-02 12:06:34 +01:00
Sergio Martins
62b32208a1 Merge pull request #14 from albert-astals-cid-kdab/add_const_ref
Add a few const &
2019-09-30 18:38:49 +01:00
Albert Astals Cid
262d57b890 Add a few const &
as suggested by clang-tidy
2019-09-30 15:57:03 +02:00
Sergio Martins
c5149ab13c Fix title bar being visible with Flag_HideTitleBarWhenTabsVisible
Frame::updateTitleBarVisibility() was bailing out early. That
guard looks like some leftover, m_dropArea isn't even dereferenced
there, so just remove the guard.
2019-09-30 11:00:38 +01:00
Sergio Martins
cf90980094 Fix toggleAction() not emitting its signals
User might connect to it.
Use a less violent way of guarding against recursion
2019-09-24 22:08:57 +01:00
Sergio Martins
b5d83e68a2 Unit-test the state of toggleAction() ttoo 2019-09-24 18:35:03 +01:00
Sergio Martins
35b67a2cd3 Don't use 0 width/height static anchors on Windows yet.
It doesn't like 0 sized widgets
2019-09-24 17:23:48 +01:00
Sergio Martins
566c7d0f41 React to QTabWidget::tabCloseRequested 2019-09-24 17:13:50 +01:00