Browse Source

Cleanup

tags/1.9.5
falkTX 10 years ago
parent
commit
8656de5f9e
3 changed files with 4 additions and 8 deletions
  1. +2
    -2
      source/carla_app.py
  2. +1
    -1
      source/carla_host.py
  3. +1
    -5
      source/carla_shared.py

+ 2
- 2
source/carla_app.py View File

@@ -29,7 +29,7 @@ if config_UseQt5:
from PyQt5.QtGui import QColor, QPalette
from PyQt5.QtWidgets import QApplication
else:
from PyQt4.QtCore import QSettings
from PyQt4.QtCore import Qt, QSettings
from PyQt4.QtGui import QApplication, QColor, QPalette

# ------------------------------------------------------------------------------------------------------------
@@ -243,7 +243,7 @@ class CarlaApplication(object):
else:
self.fApp.setWindowIcon(QIcon(":/scalable/carla.svg"))

if MACOS and config_UseQt5:
if MACOS:
self.fApp.setAttribute(Qt.AA_DontShowIconsInMenus)

print("Using \"%s\" theme" % self.fApp.style().objectName())


+ 1
- 1
source/carla_host.py View File

@@ -272,7 +272,7 @@ class HostWindow(QMainWindow, PluginEditParentMeta):
# ----------------------------------------------------------------------------------------------------
# Set up GUI (special stuff for Mac OS)

if MACOS and config_UseQt5:
if MACOS:
self.ui.act_file_quit.setMenuRole(QAction.QuitRole)
self.ui.act_settings_configure.setMenuRole(QAction.PreferencesRole)
self.ui.act_help_about.setMenuRole(QAction.AboutRole)


+ 1
- 5
source/carla_shared.py View File

@@ -56,11 +56,7 @@ from carla_backend import *
# ------------------------------------------------------------------------------------------------------------
# Platform specific stuff

if MACOS and not config_UseQt5:
from PyQt4.QtGui import qt_mac_set_menubar_icons
qt_mac_set_menubar_icons(False)

elif WINDOWS:
if WINDOWS:
WINDIR = os.getenv("WINDIR")

# ------------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save