Browse Source

Make sure about dialogs on Windows are non-resizable

tags/1.9.5
falkTX 10 years ago
parent
commit
d32b79a662
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      source/carla_widgets.py

+ 8
- 2
source/carla_widgets.py View File

@@ -25,11 +25,11 @@ from carla_config import *
# Imports (Global)

if config_UseQt5:
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QByteArray, QSettings
from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt, QByteArray, QSettings
from PyQt5.QtGui import QColor, QCursor, QFontMetrics, QPainter, QPainterPath
from PyQt5.QtWidgets import QDialog, QInputDialog, QLineEdit, QMenu, QVBoxLayout, QWidget
else:
from PyQt4.QtCore import pyqtSignal, pyqtSlot, QByteArray, QSettings
from PyQt4.QtCore import pyqtSignal, pyqtSlot, Qt, QByteArray, QSettings
from PyQt4.QtGui import QColor, QCursor, QFontMetrics, QPainter, QPainterPath
from PyQt4.QtGui import QDialog, QInputDialog, QLineEdit, QMenu, QVBoxLayout, QWidget

@@ -191,6 +191,9 @@ class CarlaAboutW(QDialog):
self.adjustSize()
self.setFixedSize(self.size())

if WINDOWS:
self.setWindowFlags(self.windowFlags()|Qt.MSWindowsFixedSizeDialogHint)

def done(self, r):
QDialog.done(self, r)
self.close()
@@ -209,6 +212,9 @@ class JuceAboutW(QDialog):
self.adjustSize()
self.setFixedSize(self.size())

if WINDOWS:
self.setWindowFlags(self.windowFlags()|Qt.MSWindowsFixedSizeDialogHint)

def done(self, r):
QDialog.done(self, r)
self.close()


Loading…
Cancel
Save