Commit Graph

4394 Commits

Author SHA1 Message Date
Sergio Martins
897e0debca Replace draggableForQObject with draggableForView 2022-07-10 17:58:27 +01:00
Sergio Martins
233736a20b Replace QPointer with a ViewGuard 2022-07-09 17:07:23 +01:00
Allen Winter
e3c08593b9 src/qtcommon/Platform_qt.h - QT_NAMESPACE 2022-07-09 12:05:54 -04:00
Allen Winter
f6315ba4c0 src/EventFilterInterface.h - QT_NAMESPACE 2022-07-09 11:51:31 -04:00
Allen Winter
1bb3e5de37 CMakeLists.txt - fix a typo that causing --warn-uninitialize 2022-07-09 11:42:47 -04:00
Allen Winter
54a29b5cae Merge branch 'master' into 2.0 2022-07-09 11:09:35 -04:00
Allen Winter
2f9f2c9ba6 Merge branch '1.6' 2022-07-09 09:17:19 -04:00
Allen Winter
ba7afe20b0 fix misspelling 2022-07-09 09:16:59 -04:00
Allen Winter
146338c9f4 Merge branch '1.6' 2022-07-09 09:14:53 -04:00
Allen Winter
0b5b06dc5a .gitignore - ignore python/examples-qt6/rc_assets.py 2022-07-09 09:12:17 -04:00
Allen Winter
460b898bea cmake-lint, cmake-format CMake files 2022-07-09 09:11:45 -04:00
Allen Winter
b3e398c530 Merge branch '1.6' 2022-07-08 17:35:24 -04:00
Allen Winter
6e5cfd70d1 pylint and autopep8 all python files 2022-07-08 17:34:42 -04:00
Allen Winter
4afc6b62b2 .pre-commit-config.yaml - add pylint,autopep8,cmake-lint,cmake-format 2022-07-08 17:33:12 -04:00
Sergio Martins
0785408a5c Add fwd header for DropAreaWithCentralFrame_p.h 2022-07-08 14:09:57 +01:00
Sergio Martins
2c5df301d8 Bump clang-format to 14.0 2022-07-08 06:56:59 +01:00
Sergio Martins
a0aef05b2d Merge branch '1.6' 2022-07-08 06:56:37 +01:00
Sergio Martins
3364d8ba76 Add .pre-commit-config.yaml
This one is simpler than the one in 2.0 branch, does not include
cmake formatting.
2022-07-08 06:55:59 +01:00
Sergio Martins
b5d1b6d02f vscode: Copy the compile_commands.json from build to source dir
No longer needed to symlink it to make clangd work
2022-07-08 06:53:59 +01:00
Sergio Martins
d958e1cc70 vscode: Copy the compile_commands.json from build to source dir
No longer needed to symlink it to make clangd work
2022-07-08 06:47:41 +01:00
Sergio Martins
9a8539fa42 qtquick: Add support for "Always show tabs" option
Shows the tab even if the group only has 1 dock widget
2022-07-07 18:05:33 +01:00
Sergio Martins
5386d44fdb qtquick: Move the "tabbar autohide" property to TabBar
It's a better location than in Stack
2022-07-07 14:36:48 +01:00
Sergio Martins
019692fd2f Store the "tab auto hide" state in the controller, not the view
Added a signal for the QtQuick view too
2022-07-07 13:52:03 +01:00
Sergio Martins
448313b1e3 Rename Group::m_tabWidget to Group::m_stack
Matches its class name now
2022-07-07 11:41:44 +01:00
Sergio Martins
b1605cc58b Rename Group::tabWidget() to Group::stack()
Matches its class name now
2022-07-07 11:37:47 +01:00
Sergio Martins
8383b227aa qtquick|examples: Add an option to hide title bar 2022-07-07 11:30:34 +01:00
Sergio Martins
cd41697ee6 Added Config::startDragDistance()
Allows the user to change the drag threshold without having
to inherit from Platform
2022-07-07 11:11:02 +01:00
Sergio Martins
4e99b44823 Fix some English typos in comments 2022-07-07 11:04:08 +01:00
Sergio Martins
54802ed856 Remove the last Qt event filter from the backend
Ported to our own event filter
2022-07-06 23:08:21 +01:00
Allen Winter
ddf6847d4e .krazy - fix comment 2022-07-06 09:10:04 -04:00
Sergio Martins
572b62aa9a Port DragController/Wayland code from Qt event filter
Uses our own event filter abstraction now
2022-07-05 23:22:28 +01:00
Sergio Martins
b74ca53ac8 Fix potential crash
It's a 2.0 bug on wayland though, but at least bail early.
2022-07-05 23:04:19 +01:00
Sergio Martins
6f177bc2df Assert that dock widget passed to MainWindow::addDockWidget is valid 2022-07-05 13:48:47 +01:00
Sergio Martins
74e9cc94e6 Also send DnD events through the event filter interface 2022-07-04 23:37:22 +01:00
Sergio Martins
8edf8737ce Port FallbackMouseGrabber to our own event filter abstraction
No longer uses Qt's event filter directly
2022-07-04 22:33:40 +01:00
Sergio Martins
b6460c11f7 Add EventFilterInterface::onMouseEvent()
Some event consumers don't want to overload N methods and just
overload one instead
2022-07-04 22:06:30 +01:00
Allen Winter
d75e691795 appveyor.yml - for Qt6 builds use Qt6.3 2022-07-04 09:20:53 -04:00
Sergio Martins
b68e348ff3 Add a .pre-commit-config.yaml file 2022-07-04 11:22:53 +01:00
Sergio Martins
54ad9ec2f2 cmake: format with cmake-format 2022-07-04 11:20:19 +01:00
Sergio Martins
9283a55364 Fix Platform only sending mouse press event
Was ignoring other mouse event types
2022-07-03 22:26:15 +01:00
Sergio Martins
35c1517709 Handle double click event in EventFilterInterface too 2022-07-03 22:21:57 +01:00
Sergio Martins
7b9bde123b Use ViewGuard instead of QPointer 2022-07-03 22:12:32 +01:00
Sergio Martins
7b780bc7e9 Add Windows to DisplayType enumerator too 2022-07-03 21:49:18 +01:00
Sergio Martins
84da42c262 Add Platform_qt::isLeftMouseButtonPressed() 2022-07-03 21:44:42 +01:00
Sergio Martins
1bcd425849 Add Platform::displayType() 2022-07-03 21:36:32 +01:00
Sergio Martins
aafa9526f6 Add Platform::organizationName()
So we don't use QCoreApplication::organizationName() directly
2022-07-03 20:56:48 +01:00
Sergio Martins
16565fcd46 Add Platform::setMouseCursor()
So we don't depend directly on qGuiApp
2022-07-03 20:04:53 +01:00
Sergio Martins
f288d953fc Add Platform::applicationName()
so controllers don't access qGuiApp directly
2022-07-03 19:55:26 +01:00
Sergio Martins
f1fb3f1eac Remove unneeded event filter from DockWidget.cpp
It has been ported already
2022-07-03 19:47:26 +01:00
Sergio Martins
70da9cc638 appveyor: Trying to fix the QtQuick tests
Error was: Failed to create OpenGL context for format QSurfaceFormat.
Reproduced in my docker and setting this env var fixed it.
2022-07-03 19:44:03 +01:00