use uncompressed resources in qt GUI

Bug #917322 reported by Leo Arias
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Control Panel
Status tracked in Trunk
Stable-3-0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Undecided
Roberto Alsina

Bug Description

I was trying the qt client on Precise, and got some weird appearance issues. Adding the -no-compress option to pyrcc4 solved them and now I have a pretty UI.

=== modified file 'setup.py'
--- setup.py 2011-12-16 14:58:44 +0000
+++ setup.py 2012-01-16 19:20:23 +0000
@@ -116,7 +116,7 @@
         path = os.getenv('PATH')
         os.putenv('PATH', path + os.path.pathsep + os.path.join(
                   os.path.dirname(PyQt4.__file__), 'bin'))
- if os.system('pyrcc4 "%s" -o "%s"' % (qrc_file, py_file)) > 0:
+ if os.system('pyrcc4 -no-compress "%s" -o "%s"' % (qrc_file, py_file)) > 0:
             self.warn('Unable to generate python module {py_file}'
                       ' for resource file {qrc_file}'.format(
                       py_file=py_file, qrc_file=qrc_file))

Related branches

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

Roberto, this is the same that we did in the installer... for some reason the default value (compressed) fails in some platform (including some win7 and other not, etc)

Revision history for this message
Roberto Alsina (ralsina) wrote :

@Diego: yes, but also the code to load the qss is different on the linux and windows mains

Roberto Alsina (ralsina)
Changed in ubuntuone-control-panel:
status: Triaged → In Progress
Changed in ubuntuone-control-panel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.