1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Use the new hscommon.plat unit.

This commit is contained in:
Virgil Dupras
2011-09-22 09:32:09 -04:00
parent 43c4dcb267
commit 1fafe04f19
9 changed files with 26 additions and 23 deletions

View File

@@ -11,6 +11,7 @@ from PyQt4.QtCore import QSize
from PyQt4.QtGui import (QVBoxLayout, QHBoxLayout, QLabel, QSizePolicy, QSpacerItem, QWidget,
QLineEdit, QApplication)
from hscommon.plat import ISWINDOWS, ISLINUX
from hscommon.trans import tr
from hscommon.util import tryint
@@ -76,11 +77,11 @@ class PreferencesDialog(PreferencesDialogBase):
def _setupUi(self):
PreferencesDialogBase._setupUi(self)
if sys.platform == 'linux2':
if ISLINUX:
# Under linux, whether it's a Qt layout bug or something else, the size threshold text edit
# doesn't have enough space, so we make the pref pane higher to compensate.
self.resize(self.width(), 490)
elif sys.platform == 'win32':
elif ISWINDOWS:
self.resize(self.width(), 420)
def _load(self, prefs, setchecked):