Commit Graph

164 Commits (aa6a420bdc0d945d7f9be511d07b181ecd93d16c)

Author SHA1 Message Date
Alex Huszagh 744571ebae Added unittests for comprehensive widget coverage.
Added file to specify unittest coverage, and added numerous unittests.
2022-04-30 13:31:01 -05:00
Alex Huszagh 48b7d6d75d Fix QCalendarWidget.
Fixes the QToolButton views for the QCalendarWidget, displaying the
desired behavior for both the month and year select. Also fixes the
icons for the QPrevNextCalButton (a subclass of QToolButton) to fix the
next and previous icons. Also, Qt6 now has the menu-arrow correctly
displayed.

Fixes #39.
2022-04-29 15:55:37 -05:00
Alex Huszagh 42b1cf7f55 Added unittests for ToolButtonStyle.
Added tests for both auto-raised and not auto-raised QToolButtons with
all ToolButtonStyles.
2022-04-29 12:58:40 -05:00
Alex Huszagh 0377357dc0 Added unittests for auto-raised QToolButtons.
Added unittests for different arrow types both auto-raised and not.
2022-04-29 12:38:17 -05:00
Alex Huszagh aeb45a3e91 Added example for #38. 2022-04-29 11:52:10 -05:00
Alex Huszagh 9ed3ed5e86 Update README sections to better describe extending stylesheets. 2022-04-29 11:45:08 -05:00
Alex Huszagh 0e3d5150c1 Add example of overwriting standard icons.
Added `example/standard_icons.py` which subclasses `QCommonStyle` to
override standard icons, while keeping the default style. This respects
the stylesheet, while allowing custom standard icons. Added this example
to the documentation.

Closes #33.
2022-04-29 11:40:45 -05:00
Alex Huszagh 3131987eb7 Added pull request templates. 2022-04-29 09:55:58 -05:00
Alex Huszagh 8a834231a2 Add issue template for bug report. 2022-04-29 09:50:55 -05:00
Alex Huszagh 0012c78599 Add issue templates. 2022-04-29 09:41:37 -05:00
Alex Huszagh 1ea115e266 Fix table sort indicator and padding.
Ensures table sort indicator is present on the right, is always visible by clipping just the right amount of content, and fixes the padding issues with the tables before. If the sort indicator is not present, there is no clipping.

Closes #35.
2022-04-29 09:32:33 -05:00
Alex Huszagh c29d290eb8 Fix padding in QHeaderView sections.
Also patches the workaround for #31, by avoiding any hacks to get the desired behavior. Sets the `subcontrol-origin` to `margin` and `subcontrol-position` to `right`, and uses `::up-arrow` and `::down-arrow` subcontrols only when `showSortIndicator="true"`.

Closes #37.
2022-04-29 09:22:09 -05:00
Alex Huszagh 565eb038bf Update README due to master -> main renaming. 2022-04-28 15:31:21 -05:00
Alex Huszagh 9ad5917cb5 Fix min-height in QToolButton affecting QFileDialog.
Removed the `min-height` styles from `QToolButton[autoRaise="false"]` and `QToolButton[autoRaise="false"]:checked, QToolButton[autoRaise="false"]:pressed` to fix the issues with the clear text icon in #28. This does not affect the UI anyway, so has no downsides.

Fixes #28.
2022-04-28 15:29:44 -05:00
Alex Huszagh 90f679d600 Fix arrow placement on QToolButton.
Fixes issues between the arrow placement in the `menu-arrow` and `menu-indicator` of a QToolButton, which was inconsistent between Qt5 and Qt6. Using `subcontrol-origin: content;` and then adjusting `padding-right: -1.11em;` fixes the issue.

Fixes #36.
2022-04-28 15:18:43 -05:00
Alex Huszagh 836febe922 Fix hover/pressed/checked events for auto-raised QToolButtons.
Fixes #34.
2022-04-28 13:51:05 -05:00
Alex Huszagh 3243107b0a Bug fix for missing QStyle in Qt5. 2022-04-28 13:03:36 -05:00
Alex Huszagh 047d5cc984 Use better icons for the examples and tests. 2022-04-28 12:57:05 -05:00
Alex Huszagh db1019ddd8 Bug fixes for QToolButton
Fixed styles for auto-raised QToolButtons. Also added fixes for standard icons in test suites, to ensure they work in Qt5 and Qt6. Added auto-raised icons to `example/widgets.py`.

Closes #22.
2022-04-28 10:56:39 -05:00
Alex Huszagh e54c825b90 Fix QHeaderView column margins with arrows.
Fixes #31. Sets `-5em` left and right margins as a hack to ensure that
the headers are properly spaced.
2022-04-27 18:18:58 -05:00
Alex Huszagh 102976f25f Fix bottom margin in QHeaderView rows with arrows.
Partially addresses #31. Only fixes the row header margins, and not the
margins for the QHeaderView columns.
2022-04-27 18:17:19 -05:00
Alex Huszagh 09f02a1185 Compile resource files during configuration.
Added `--compiled-resource` flag, which can be used to invoke `pyrcc5`.
The `pyrcc5` executable can be controlled via the `PYRCC5` environment
variable or the `--pyrcc5` flag. Updated the documentation to reflect
this, including the default build scripts.
2022-04-27 17:32:20 -05:00
Alex Huszagh c14c9f657e Update VCS script to ignore all changes in dist. 2022-04-27 17:04:30 -05:00
Alex Huszagh ad10af6fc3 Rename git.py to vcs.py to avoid git command conflicts. 2022-04-27 16:40:12 -05:00
Alex Huszagh f753556c2c Allow tracking/untracking of distribution files.
Provides `git.py`, which enables/disables the tracking of all files in `dist` via the `--track-dist` and `--no-track-dist` mutually exclusive options. This is done via modifying `.gitignore`, since `update-index assume-unchanged` can't handle directories. Therefore, `.gitignore` is automatically untracked. To track `.gitignore`, run `python git.py --track-gitignore`.

Closes #29.
2022-04-27 16:34:23 -05:00
Alex Huszagh 0221df47e3 Add version to configure.py. 2022-04-27 13:55:48 -05:00
Alex Huszagh f307bed419 Fix dialog exec in PyQt6.
Closes #32.
2022-04-27 12:38:47 -05:00
Alex Huszagh ae5956fc0c Update build file locations.
- Move all built files to `dist/`.
- Update `configure.py` to allow building both QRC and PyQt6-based
resources.
- Update test suites and example widgets for new resource locations.
- Update README and install documentation for new resource locations.

Fixes #30.
2022-04-27 12:35:35 -05:00
Alex Huszagh c2064b90c9 Update CMake build/install documentation.
Fixes #24.
2022-04-26 11:51:27 -05:00
Alex Huszagh 040d6d260f Add test case for issue #25.
Currently cannot reproduce issue #25, we've added a sample test case to
test any changes for it.
2022-04-26 11:21:00 -05:00
Alex Huszagh 4a04f66a0b Fix missing native icon warning in test suite.
Fix using `icon_url` of `close.svg` in the native test suite, due to an
invalid `style_prefix`. Closes #27.
2022-04-26 09:07:27 -05:00
Alex Huszagh a9be9b96e7 Fix default test settings, fixed #26. 2022-04-26 08:53:23 -05:00
Alexander Huszagh 79a9825c26
LICENSE notification updates 2021-07-26 09:46:01 -05:00
Alex Huszagh 6efb52c129 Moved breeze.qrc to dist. 2021-07-21 11:27:13 -05:00
Alex Huszagh 374d283cf0 Minor patch to README table of contents. 2021-07-21 11:23:20 -05:00
Alex Huszagh 8aff25b3a1 Added install directions for CMake.
- Moved generated directories to `dist/` for cleaner builds.
2021-07-21 11:21:14 -05:00
Alexander Huszagh e3d35390bc
Capitalize Extensions for Better Readability 2021-07-20 19:34:35 -05:00
Alex Huszagh 024179a9cb Minor README updates. 2021-07-20 19:31:00 -05:00
Alex Huszagh f886ba8cf1 README updates for extensions. 2021-07-20 19:27:57 -05:00
Alex Huszagh 2298fcd8bb Add full support for the Advanced Docking System
closes #20
2021-07-20 18:15:07 -05:00
Alex Huszagh 228009860b Added comprehensive support for the Advance Docking System. 2021-07-20 17:09:57 -05:00
Alex Huszagh 37e1e0c063 Added initial support for extensions and UI fixes.
- Renamed icons with `-` to `_`.
- Added initial support for the Advanced Docking System.
- Added extension for QDockWidget tooltips.
- Bug fixes for QTabWidget.
- Bug fixes for the separator in the QDockWidget.
2021-07-20 13:48:42 -05:00
Alex Huszagh 846254032c Add support for the extensions syntax in configurations. 2021-07-19 21:51:24 -05:00
Alex Huszagh 458fb583dc Tenative commit to debug AdvancedDockingSystem. 2021-07-19 13:25:51 -05:00
Alex Huszagh 3bf2427ce2 Added support for PyQt6. 2021-07-18 10:11:09 -05:00
Alexander Huszagh 7c34e5dd3d
Removed outdated limitation, which required an undocumented fix. 2021-07-17 01:51:52 -05:00
Alexander Huszagh 60a383063f
Update README.md 2021-07-17 01:42:44 -05:00
Alex Huszagh d620f2226b Bug fixes for #11 2021-07-17 00:09:44 -05:00
Alex Huszagh 735d6486ee Bug fix for #15. 2021-07-16 23:24:48 -05:00
Alex Huszagh 64b6e7ca51 Added gallery images for Windows. 2021-07-16 23:02:35 -05:00