caomengxuan666
a08314a2b9
feat: add support for Qt6 and fix compilation issues
...
- Replace deprecated QLayout::setMargin() with setContentsMargins().
- Replace QPalette::Foreground with QPalette::WindowText to adapt to Qt6's QPalette role changes.
- Ensure compatibility with both Qt5 and Qt6 to avoid API-related compilation errors.
Test Results:
- Successfully compiles and runs on both Qt5 and Qt6 environments.
- The fixes maintain functional consistency and do not introduce new issues.
This update improves cross-version compatibility and provides better support for future migration to Qt6.
2025-04-24 20:00:53 +08:00
Jean Pierre Cimalando
c9a946f783
Add <QPainterPath> where necessary
2020-08-03 16:16:38 +02:00
Johannes Hilden
d4dbe4717e
Reduce animation duration
2017-11-02 22:12:41 +03:00
Johannes Hilden
291ceb945b
Fix scrollbar hide on mouse out behavior
2017-10-30 20:44:56 +03:00
Johannes Hilden
caa722c399
Fix horizontal scrollbar bug
2017-10-30 20:17:41 +03:00
Johannes Hilden
828c881fca
Add stubs for qtmateriallist and qtmateriallistitem
2017-10-27 16:51:12 +03:00
Johannes Hilden
998fb6bd89
Make member pointers const when possible
2017-10-16 23:13:14 +03:00
Johannes Hilden
053d427bc2
Add stub for qtmaterialmenu_internal
2017-10-16 21:33:51 +03:00
Johannes Hilden
9ad24d127c
Fill out scaffolding code in menu component
2017-10-15 16:54:35 +03:00
Johannes Hilden
4bf7a1f1ca
Add include statements
2017-10-15 16:41:09 +03:00
Johannes Hilden
159258bf8d
Add menu stubs
2017-10-15 16:40:11 +03:00
Johannes Hilden
38640724c3
Opacity should be 1 on menu drop shadow
2017-10-15 16:34:37 +03:00
Johannes Hilden
a6ef42ee59
Remove commented out code
2017-10-15 16:22:19 +03:00
Johannes Hilden
2e8922f9b9
Fix drop shadow on auto complete menu
2017-10-15 16:20:07 +03:00
Johannes Hilden
a9605c94bb
Adjust transition duration value
2017-10-15 14:46:15 +03:00
Johannes Hilden
41c5f156a2
Implement fade effect for Auto Complete
2017-10-15 14:45:11 +03:00
Johannes Hilden
5aefcce24d
Add state machine for Auto Complete
2017-10-15 13:38:53 +03:00
Johannes Hilden
837762c647
Add itemSelected signal to Auto Complete
2017-10-15 12:59:46 +03:00
Johannes Hilden
46eeb4f063
Use tinted overlay in Auto Complete drop-down menu items
2017-10-15 12:51:28 +03:00
Johannes Hilden
3872ddb36a
Give Auto Complete menu some time to disappear
2017-10-15 12:43:05 +03:00
Johannes Hilden
c65c32fe52
Hide menu on mouse button press
2017-10-15 11:48:25 +03:00
Johannes Hilden
80e9a5a4b8
Make sure ripple is destroyed when overlay host widget is (segfault error)
2017-10-15 11:39:23 +03:00
johanneshilden
8a64b5a981
Figure out segfault
2017-10-13 22:37:05 +03:00
johanneshilden
aef66be2ed
Move test data to example class
2017-10-13 06:51:39 +03:00
johanneshilden
5f52329c59
Add some docblock comments
2017-10-13 00:33:59 +03:00
johanneshilden
8248df4efb
Add experimental Auto Complete component
2017-10-13 00:27:50 +03:00
johanneshilden
c0712f210a
Add call to update in setOverlayMode
2017-10-12 22:47:10 +03:00
johanneshilden
62108fd5b7
Fix Drawer peculiarities
2017-10-12 22:10:43 +03:00
johanneshilden
f72cb03f0b
Update painter code to take into account text alignment
2017-10-12 09:51:53 +03:00
johanneshilden
7c608fad0f
Add text alignment option to Flat Button
2017-10-12 09:42:02 +03:00
johanneshilden
ded3bf2bd0
Add stub for SnackBar layout
2017-10-12 07:03:07 +03:00
johanneshilden
fc6f67dac0
Fix icon button painting for different sizes
2017-10-11 23:33:55 +03:00
johanneshilden
067cf211b3
Build out AppBar layout
2017-10-11 23:16:13 +03:00
johanneshilden
f954d5e9c5
Add AppBar to examples
2017-10-11 22:25:22 +03:00
johanneshilden
3a7d7a19fd
Add overlayMode property to QtMaterialDrawer
2017-10-07 15:54:56 +03:00
johanneshilden
2ee5d6dd5d
Use resource alias to load fonts, as per suggestion from fperillo
2017-10-06 23:11:41 +03:00
johanneshilden
8859e2ae2f
Add a bunch of stubs for new components
2017-10-06 15:05:09 +03:00
johanneshilden
146de0e0a4
Change pen style to Qt::DashLine for disabled input line
2017-10-06 14:59:16 +03:00
johanneshilden
b1665177e5
Make scrollbar handle corners rounded as well
2017-10-06 14:47:48 +03:00
johanneshilden
c533fd84cb
Fix indentation
2017-10-06 10:28:05 +03:00
johanneshilden
0e999a564c
Fix #21
2017-10-06 08:29:38 +03:00
johanneshilden
2971360d7e
Fix #16
2017-10-06 08:03:01 +03:00
fperillo
6c5d20bc01
Dotted underline when widget is disabled
2017-10-05 22:01:50 +02:00
johanneshilden
776e089399
Rename underscore to underline
2017-10-05 17:35:22 +03:00
johanneshilden
85310163dd
Merge branch 'textfield-underscore' of https://github.com/fperillo/qt-material-widgets into fperillo-textfield-underscore
2017-10-05 17:23:02 +03:00
johanneshilden
b3b0f18be9
Add AppBar files
2017-10-05 17:11:41 +03:00
Francesco Perillo
1c7892d8b1
QtMaterialTextField: implemeted hiding of underscore
2017-10-05 15:31:14 +02:00
johanneshilden
83b5b10bbe
Add qtmaterialappbar stub files
2017-10-05 14:31:52 +03:00
johanneshilden
5d584d44c3
Add autoRaise property to Drawer
2017-10-05 11:13:21 +03:00
johanneshilden
14e12bee5e
Make ScrollBar look more like Progress
2017-10-04 12:40:30 +03:00