Tallefer / qtweb

Automatically exported from code.google.com/p/qtweb
0 stars 0 forks source link

Enable private browsing from command line #179

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What new or enhanced feature are you proposing?
having "qtweb --incognito http://somewhere/" command to starting private 
browsing an address.

What goal would this enhancement help you achieve?
To compatible with chrome's private browsing command line.

Original issue reported on code.google.com by roy...@gmail.com on 14 Jun 2013 at 8:35

GoogleCodeExporter commented 9 years ago
I tried to add, but it doesn't fully act like chrome's behavior:

                    else if(command == "--incognito")
                    {
                        QWebSettings *globalSettings = QWebSettings::globalSettings();
                        globalSettings->setAttribute(QWebSettings::PrivateBrowsingEnabled, true);
                        settings.endGroup();
                        settings.beginGroup(QLatin1String("privacy"));
                        settings.setValue(QLatin1String("private_browsing"), true);
                        settings.endGroup();
                        mainWindow()->loadPage(args.last());
                    }

Original comment by roy...@gmail.com on 15 Jun 2013 at 12:24