~system-apps-team/webbrowser-app/multiple-windows

« back to all changes in this revision

Viewing changes to src/app/browserapplication.cpp

  • Committer: Olivier Tilloy
  • Date: 2016-08-18 16:29:35 UTC
  • Revision ID: olivier.tilloy@canonical.com-20160818162935-qxp5ftrqk1syhqcf
Remove the --fullscreen and --maximized command line switches from the browser application.
Fix the --fullscreen comand line switch for the webapp container.

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
    m_object = m_component->beginCreate(context);
206
206
 
207
207
    QQmlProperty::write(m_object, QStringLiteral("developerExtrasEnabled"), inspectorEnabled);
208
 
    QQmlProperty::write(m_object, QStringLiteral("forceFullscreen"), m_arguments.contains("--fullscreen"));
209
208
 
210
209
    bool hasTouchScreen = false;
211
210
    Q_FOREACH(const QTouchDevice* device, QTouchDevice::devices()) {
224
223
int BrowserApplication::run()
225
224
{
226
225
    Q_ASSERT(m_object != nullptr);
227
 
 
228
 
    if (m_arguments.contains("--fullscreen")) {
229
 
        //m_window->showFullScreen();
230
 
    } else if (m_arguments.contains("--maximized")) {
231
 
        //m_window->showMaximized();
232
 
    } else {
233
 
        //m_window->show();
234
 
    }
235
226
    return exec();
236
227
}
237
228