Permalink
Browse files

QML UI: Scale on Desktop for development

  • Loading branch information...
1 parent 4f27e35 commit ba945272ce0f0e9e952afe1b99c2ec50a82312ca @thp thp committed Feb 24, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/gpodder/qmlui/__init__.py
View
13 src/gpodder/qmlui/__init__.py
@@ -627,8 +627,11 @@ def __init__(self, args, gpodder_core):
# Enable OpenGL rendering without requiring QtOpenGL
# On Harmattan we let the system choose the best graphicssystem
- if '-graphicssystem' not in args and not gpodder.ui.harmattan and not gpodder.win32:
- args += ['-graphicssystem', 'opengl']
+ if '-graphicssystem' not in args and not gpodder.ui.harmattan:
+ if gpodder.ui.fremantle:
+ args += ['-graphicssystem', 'opengl']
+ elif not gpodder.win32:
+ args += ['-graphicssystem', 'raster']
self.app = QApplication(args)
signal.signal(signal.SIGINT, signal.SIG_DFL)
@@ -696,6 +699,12 @@ def __init__(self, args, gpodder_core):
self.view.setAttribute(Qt.WA_Maemo5AutoOrientation, True)
self.view.showFullScreen()
else:
+ # On the Desktop, scale to fit my small laptop screen..
+ FACTOR = .8
+ self.view.scale(FACTOR, FACTOR)
+ size = self.view.size()
+ size *= FACTOR
+ self.view.resize(size)
self.view.show()
self.do_start_progress.connect(self.on_start_progress)

0 comments on commit ba94527

Please sign in to comment.