qt: remove remaining Qt 4 support

Qt 4 was removed from nixpkgs so it doesn't make sense to support it
anymore.
This commit is contained in:
Thiago Kenji Okada 2023-10-18 11:58:05 +01:00
parent 05649393ac
commit b4ea37c633

View file

@ -38,7 +38,7 @@ in {
options = { options = {
qt = { qt = {
enable = mkEnableOption "Qt 4, 5 and 6 configuration"; enable = mkEnableOption "Qt 5 and 6 configuration";
platformTheme = mkOption { platformTheme = mkOption {
type = types.nullOr (types.enum [ "gtk" "gnome" "qtct" "kde" ]); type = types.nullOr (types.enum [ "gtk" "gnome" "qtct" "kde" ]);
@ -170,14 +170,5 @@ in {
xsession.importedVariables = [ "QT_QPA_PLATFORMTHEME" ] xsession.importedVariables = [ "QT_QPA_PLATFORMTHEME" ]
++ lib.optionals (cfg.style.name != null) [ "QT_STYLE_OVERRIDE" ]; ++ lib.optionals (cfg.style.name != null) [ "QT_STYLE_OVERRIDE" ];
# Enable GTK+ style for Qt4 in Gtk/GNOME.
# It doesnt support the platform theme packages.
home.activation.useGtkThemeInQt4 =
mkIf (cfg.platformTheme == "gtk" || cfg.platformTheme == "gnome")
(hm.dag.entryAfter [ "writeBoundary" ] ''
$DRY_RUN_CMD ${pkgs.crudini}/bin/crudini $VERBOSE_ARG \
--set "${config.xdg.configHome}/Trolltech.conf" Qt style GTK+
'');
}; };
} }