~mvo/software-center/apptreeview-tweaks

« back to all changes in this revision

Viewing changes to softwarecenter/ui/qml/app.py

  • Committer: Michael Vogt
  • Date: 2012-03-08 13:58:30 UTC
  • mfrom: (2782.1.40 trunk)
  • Revision ID: michael.vogt@ubuntu.com-20120308135830-e5wkjjn1h1kdozms
mergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from PyQt4 import QtDeclarative
28
28
from PyQt4.QtCore import QUrl
29
29
from PyQt4.QtGui import QApplication, QIcon
30
 
from PyQt4.QtDeclarative import QDeclarativeView 
 
30
from PyQt4.QtDeclarative import QDeclarativeView
31
31
 
32
32
from softwarecenter.db.pkginfo import get_pkg_info
33
33
 
46
46
 
47
47
    view = QDeclarativeView()
48
48
    view.setWindowTitle(view.tr("Ubuntu Software Center"))
49
 
    view.setWindowIcon(QIcon(os.path.join(os.path.dirname(__file__), "../../../data/icons/scalable/apps/softwarecenter.svg")))
 
49
    view.setWindowIcon(QIcon(os.path.join(os.path.dirname(__file__),
 
50
        "../../../data/icons/scalable/apps/softwarecenter.svg")))
50
51
    view.setResizeMode(QtDeclarative.QDeclarativeView.SizeRootObjectToView)
51
52
 
52
53
    # if running locally, fixup softwarecenter.paths