~dyams/unity-2d/remove-glow

« back to all changes in this revision

Viewing changes to spread/app/spread.cpp

  • Committer: Tarmac
  • Author(s): Michał Sawicz, Albert Astals
  • Date: 2012-02-07 11:29:36 UTC
  • mfrom: (879.11.17 refactor-screeninfo)
  • Revision ID: tarmac-20120207112936-r1iya0418z3d7evn
This, in itself, will not change anything in unity-2d, but will later allow for easier multi-monitor implementation.. Fixes: . Approved by Gerry Boland.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    view.rootContext()->setContextProperty("spreadView", &view);
67
67
    view.setSource(QUrl("./Workspaces.qml"));
68
68
 
69
 
    /* Always match the size of the desktop */
70
 
    int current_screen = QApplication::desktop()->screenNumber(&view);
71
 
    view.fitToAvailableSpace(current_screen);
72
 
    QObject::connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), &view, SLOT(fitToAvailableSpace(int)));
73
 
 
74
69
    return application.exec();
75
70
}