-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add QLocale #1086
base: main
Are you sure you want to change the base?
WIP: Add QLocale #1086
Conversation
#[rust_name = "first_day_of_week"] | ||
fn firstDayOfWeek(self: &QLocale) -> DayOfWeek; | ||
|
||
// QString QLocale::formattedDataSize(qint64 bytes, int precision = 2, QLocale::DataSizeFormats format = DataSizeIecFormat) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DataSizeFormats is QFlags, do we have prior art on how to model that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We unfortunately don't have anything for flags yet i don't think, we support enums but not flags.
@LeonMatthesKDAB something to figure out for 0.8 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, sounds useful to find an ergonomic way to use Flags for 0.8. We don't have anything yet though.
7a3503e
to
66a08f2
Compare
Added a test |
05c8552
to
018040e
Compare
a9b5564
to
a18034f
Compare
8ceb564
to
737b966
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1086 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 71 71
Lines 11967 11967
=========================================
Hits 11967 11967 ☔ View full report in Codecov by Sentry. |
24c2177
to
aa291a5
Compare
@@ -46,7 +46,7 @@ set(CRATE qt_types_standalone) | |||
cxx_qt_import_crate( | |||
MANIFEST_PATH rust/Cargo.toml | |||
CRATES ${CRATE} | |||
QT_MODULES Qt::Core Qt::Gui Qt::Qml | |||
QT_MODULES Qt::Core Qt::Gui Qt::Widgets Qt::Qml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could try adding QuickControls2 here which might help with the order, as qt_quickcontrols is enabled in cxx-qt-lib. But this ordering issue is still painful when it happens :-/
d42d379
to
a5669e7
Compare
582c3d9
to
f5c3b94
Compare
Not complete yet because: