Browse Source

Fix qt6 build

Signed-off-by: falkTX <falktx@falktx.com>
pull/1933/head
falkTX 1 month ago
parent
commit
2f7c939413
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 8 additions and 10 deletions
  1. +4
    -8
      source/Makefile.deps.mk
  2. +4
    -0
      source/frontend/Makefile
  3. +0
    -2
      source/frontend/qt_compat.py

+ 4
- 8
source/Makefile.deps.mk View File

@@ -365,14 +365,6 @@ FRONTEND_TYPE = 5
endif
endif

ifneq ($(PYUIC5)$(PYRCC5),)
PYRCC ?= $(PYRCC5)
PYUIC ?= $(PYUIC5)
else ifneq ($(PYUIC6),)
PYRCC ?= $(RCC_QT6) -g python
PYUIC ?= $(PYUIC6)
endif

# ---------------------------------------------------------------------------------------------------------------------
# Set Qt tools, part2

@@ -384,6 +376,8 @@ ifeq ($(FRONTEND_TYPE),5)
MOC = $(MOC_QT5)
RCC = $(RCC_QT5)
UIC = $(UIC_QT5)
PYRCC ?= $(PYRCC5)
PYUIC ?= $(PYUIC5)
HAVE_THEME = $(HAVE_QT5)
QT_CXX_FLAGS = $(QT5_CXX_FLAGS)
QT_LINK_FLAGS = $(QT5_LINK_FLAGS)
@@ -391,6 +385,8 @@ else ifeq ($(FRONTEND_TYPE),6)
MOC = $(MOC_QT6)
RCC = $(RCC_QT6)
UIC = $(UIC_QT6)
PYRCC ?= $(RCC_QT6) -g python
PYUIC ?= $(PYUIC6)
HAVE_THEME = $(HAVE_QT6)
QT_CXX_FLAGS = $(QT6_CXX_FLAGS)
QT_LINK_FLAGS = $(QT6_LINK_FLAGS)


+ 4
- 0
source/frontend/Makefile View File

@@ -172,7 +172,11 @@ else
endif

resources_rc.py: $(RESDIR)/resources.qrc $(RESDIR)/*/*.png $(RESDIR)/*/*.svg $(RESDIR)/*/*.svgz
ifeq ($(FRONTEND_TYPE),6)
$(PYRCC) $< | sed -e 's/PySide6/PyQt6/' > $@
else
$(PYRCC) $< -o $@
endif

test: $(OBJS) $(LIBS) test.cpp
@echo "Linking test"


+ 0
- 2
source/frontend/qt_compat.py View File

@@ -31,8 +31,6 @@ elif qt_config == 6:
QStyle,
)

# TODO fill up everything else

Qt.AlignCenter = Qt.AlignmentFlag.AlignCenter
Qt.AlignLeft = Qt.AlignmentFlag.AlignLeft



Loading…
Cancel
Save