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) # Imports (Global)


if config_UseQt5: 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.QtGui import QColor, QCursor, QFontMetrics, QPainter, QPainterPath
from PyQt5.QtWidgets import QDialog, QInputDialog, QLineEdit, QMenu, QVBoxLayout, QWidget from PyQt5.QtWidgets import QDialog, QInputDialog, QLineEdit, QMenu, QVBoxLayout, QWidget
else: 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 QColor, QCursor, QFontMetrics, QPainter, QPainterPath
from PyQt4.QtGui import QDialog, QInputDialog, QLineEdit, QMenu, QVBoxLayout, QWidget from PyQt4.QtGui import QDialog, QInputDialog, QLineEdit, QMenu, QVBoxLayout, QWidget


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


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

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


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

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


Loading…
Cancel
Save