2021-03-04 04:20:17 +01:00
|
|
|
{
|
2024-12-04 10:24:09 +01:00
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
# Check if still backwards compatible
|
|
|
|
platformTheme = "gnome";
|
|
|
|
style.name = "adwaita";
|
|
|
|
};
|
2021-03-04 04:20:17 +01:00
|
|
|
|
2024-12-04 10:24:09 +01:00
|
|
|
test.stubs = {
|
|
|
|
qgnomeplatform = { };
|
|
|
|
qgnomeplatform-qt6 = { };
|
|
|
|
adwaita-qt = { };
|
|
|
|
adwaita-qt6 = { };
|
2021-03-04 04:20:17 +01:00
|
|
|
};
|
2024-12-04 10:24:09 +01:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QT_QPA_PLATFORMTHEME="gnome"'
|
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QT_STYLE_OVERRIDE="adwaita"'
|
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QT_PLUGIN_PATH'
|
|
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
|
|
'QML2_IMPORT_PATH'
|
|
|
|
'';
|
|
|
|
test.asserts.warnings.expected = [
|
|
|
|
"The option `qt.platformTheme` has been renamed to `qt.platformTheme.name`."
|
|
|
|
"The value `gnome` for option `qt.platformTheme` is deprecated. Use `adwaita` instead."
|
|
|
|
];
|
2021-03-04 04:20:17 +01:00
|
|
|
}
|