Skip to content
Snippets Groups Projects
Commit 32b996eb authored by inso's avatar inso
Browse files

Dirty hooks for windows builds (to display icons)

parent 35eb6173
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ QToolButton { ...@@ -46,7 +46,7 @@ QToolButton {
<item> <item>
<widget class="QLabel" name="label_welcome"> <widget class="QLabel" name="label_welcome">
<property name="text"> <property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;TestText&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="textFormat"> <property name="textFormat">
<enum>Qt::RichText</enum> <enum>Qt::RichText</enum>
...@@ -77,7 +77,7 @@ QToolButton { ...@@ -77,7 +77,7 @@ QToolButton {
</size> </size>
</property> </property>
<property name="toolButtonStyle"> <property name="toolButtonStyle">
<enum>Qt::ToolButtonFollowStyle</enum> <enum>Qt::ToolButtonTextBesideIcon</enum>
</property> </property>
<property name="autoRaise"> <property name="autoRaise">
<bool>false</bool> <bool>false</bool>
...@@ -110,7 +110,7 @@ QToolButton { ...@@ -110,7 +110,7 @@ QToolButton {
</size> </size>
</property> </property>
<property name="toolButtonStyle"> <property name="toolButtonStyle">
<enum>Qt::ToolButtonFollowStyle</enum> <enum>Qt::ToolButtonTextBesideIcon</enum>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -137,7 +137,7 @@ QToolButton { ...@@ -137,7 +137,7 @@ QToolButton {
</size> </size>
</property> </property>
<property name="toolButtonStyle"> <property name="toolButtonStyle">
<enum>Qt::ToolButtonFollowStyle</enum> <enum>Qt::ToolButtonTextBesideIcon</enum>
</property> </property>
</widget> </widget>
</item> </item>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
import sys, os, subprocess, multiprocessing import sys, os, subprocess, multiprocessing
from cx_Freeze import setup, Executable from cx_Freeze import setup, Executable
from PyQt5 import QtCore
############################################################################# #############################################################################
# preparation des options # preparation des options
...@@ -18,8 +19,15 @@ packages = ["libnacl"] ...@@ -18,8 +19,15 @@ packages = ["libnacl"]
includefiles = [] includefiles = []
if sys.platform == "win32": if sys.platform == "win32":
includefiles.append("platforms/win32/libEGL.dll") app = QtCore.QCoreApplication(sys.argv)
pyqt_path = QtCore.QCoreApplication.libraryPaths()[0]
print(pyqt_path)
libEGL_path = os.path.join(os.path.dirname(pyqt_path), "libEGL.dll")
qt5svg_path = os.path.join(os.path.dirname(pyqt_path), "Qt5Svg.dll")
includefiles.append(libEGL_path)
includefiles.append(qt5svg_path)
includefiles.append("platforms/win32/libsodium.dll") includefiles.append("platforms/win32/libsodium.dll")
elif sys.platform == "darwin": elif sys.platform == "darwin":
pass pass
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment