1. Jun 20, 2016
  2. Jun 10, 2016
  3. Jun 03, 2016
  4. May 11, 2016
    • Alexandru Croitor's avatar
      [Simplebrowser] Fix command line option parsing. · bdaea370
      Alexandru Croitor authored
      
      Passing just command line options to Chromium prevents loading of the
      initial startup url. This happens because the startup url is
      overridden by the last command line argument, which happens to be a
      Chromium option, thus an invalid URL.
      
      Fix consists in using the last command line argument as the loading url
      only if it can be parsed as valid url.
      
      Change-Id: I3615ef57b6eddc5098de79cba1b1ba6b6af193ef
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      bdaea370
  5. May 10, 2016
  6. May 04, 2016
    • Michal Klocek's avatar
      Quick fix for not working history in demobrowser · 5dad8663
      Michal Klocek authored
      
      Current implementation of history manager seems to
      be not straight forward. To display history we use QList to keep
      history items plus model adapter in form of HistoryModel
      (QAbstractTableModel) plus HistoryFilterModel to avoid
      duplication, plus HistoryTreeModel to make a tree view with
      split for dates, plus TreeProxyModel on top to enable
      sorting. This approach unfortunately falls apart when items
      should be deleted from the model by treeView. This ends
      badly with corrupted cached values.
      
      This fix removes history items using history manager.
      It also abandons HistoryTreeModel since frequent sourceReset calls make
      it unusable. If split for dates it desired the better approach
      would be to implement history tree model already at HistoryManager
      level to avoid unmaintainable code.
      
      Task-number: QTBUG-49913
      Task-number: QTBUG-50255
      Change-Id: Ic9cebb52b623bd453119e11b5e907eaa90609e34
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
      5dad8663
    • Alexandru Croitor's avatar
      [Demobrowser] Fix command line option parsing. · 4c2a17d8
      Alexandru Croitor authored
      
      Passing just command line options to Chromium prevents loading of the
      initial startup url. This happens because the startup url is
      overridden by the last command line argument, which happens to be a
      Chromium option, thus an invalid URL.
      
      Fix consists in iterating through the command line arguments, until
      a non-option argument is found (doesn't start with a dash), and use
      that as the startup URL.
      
      Change-Id: Ibe2946b25b2e023c094a85e50d2ccbd5bfce2977
      Reviewed-by: default avatarKai Koehne <kai.koehne@qt.io>
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>
      4c2a17d8
  7. Apr 21, 2016
  8. Apr 20, 2016
  9. Apr 15, 2016
    • Kai Koehne's avatar
      SimpleBrowser: Fix loading icon · d49bc176
      Kai Koehne authored
      
      Change-Id: I008b649b43069978b6ce19b2faf5a557dd67c756
      Reviewed-by: default avatarMichal Klocek <michal.klocek@theqtcompany.com>
      d49bc176
    • Alexandru Croitor's avatar
      Demobrowser: Fix black screen after exiting fullscreen mode on OS X. · 4474bca6
      Alexandru Croitor authored
      
      When exiting fullscreen while viewing a full screen video, the video is
      replaced with a black screen, and does not switch back to the initial
      page.
      
      This happens when hide() is called on a native window while being in
      fullscreen, which hides the window, but does not exit full screen mode,
      thus showing a black screen.
      
      The workaround fix consists of two parts:
      1) Make sure to delete the fullscreen window object, to release the
      OS virtual screen it occupies (visible in mission control as a black
      rectangle).
      2) Hide and show the main page window, to force exit fullscreen mode.
      
      Change-Id: I364d4427e84957ed97f57a14e2cfc2c95aed6f48
      Task-number: QTBUG-52058
      Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
      4474bca6
  10. Mar 18, 2016
  11. Mar 16, 2016
    • Michal Klocek's avatar
      Strip down demobrowser to become simplebrowser · 0b6a3254
      Michal Klocek authored
      
      Demobrowser changes:
      * remove QLocalServer/Socket
      * remove AutoSaver
      * remove restoreLastSession
      * remove general QSettings
      * remove downloadManager
      * remove bookmarkManager
      * remove historyManager
      * remove searchBar
      * favor setStyleSheet over overriding paint methods
      * use lambdas where suitable
      * use QProgressBar instead of own painted widget
      * use QToolButton instead of own painted buttons
      * remove QStackWidget, use single UrlLineEdit per window
        instead of per tab
      * split files to keep own classes: webpage and webview
      * remove tracking windows by QPoiner
      * remove WebPageActionMapper, TabBar classes
      * remove QDrag dead code
      * remove special OS X close app handling
      * fix encapsulation, clean up application logic
      
      Change-Id: I4849b6a2de739dea4f01229abdb90418601a2397
      Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
      Reviewed-by: default avatarAlexandru Croitor <alexandru.croitor@theqtcompany.com>
      0b6a3254
  12. Mar 07, 2016
  13. Mar 01, 2016
  14. Feb 16, 2016
  15. Feb 04, 2016
  16. Jan 28, 2016
    • Leena Miettinen's avatar
      Doc: update Contentmanipulation example docs · 97c17e70
      Leena Miettinen authored
      
      - Update screenshot
      - Remove second \brief command
      - Fix grammar issues
      - Use standard phrasing for examples
      - Replace \snippet commands with \quotefromfile commands.
        This enables documenting each line of code separately
      - Replace occurrences of QWebView with QWebEngineView
      - Replace reference to the obsolete QWebEnginePage::evaluateJavaScript
        method with reference to QWebEnginePage::runJavaScript() that is used
        in the example code
      - Remove snippet markers from mainwindow.h and mainwindow.cpp
      - Move code comment from mainwindow.cpp to the documentation to make the
        code leaner
      
      Change-Id: If3346810c8aef67c15c9ec7ad4469a222e636cf2
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
      97c17e70
  17. Jan 26, 2016
  18. Jan 22, 2016
  19. Jan 14, 2016
  20. Jan 07, 2016
  21. Jan 04, 2016
  22. Dec 22, 2015
  23. Dec 18, 2015
  24. Dec 17, 2015
  25. Dec 14, 2015
  26. Dec 07, 2015
  27. Nov 18, 2015
  28. Nov 17, 2015
    • Kai Koehne's avatar
      Add 'markdowneditor' example · a6ae4526
      Kai Koehne authored
      
      This example shows the use of QWebEngineView in a hybrid application,
      and how one can leverage JavaScript libraries to provide functionality
      with minimal effort.
      
      QWebEngineView is used to preview a MarkDown document. The text is
      exposed to the view through QWebChannel. An off-the-self js library
      converts it to HTML.
      
      Change-Id: I24c38106da3ec18975c71c16f7f7a58e93142f9e
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
      a6ae4526
  29. Nov 16, 2015
  30. Nov 12, 2015
  31. Nov 06, 2015
    • Kai Koehne's avatar
      Print JS console messages by default · be8c12a8
      Kai Koehne authored
      
      Change the behavior of QWebEnginePage/WebEngineView
      to print JavaScript console.warn and console.error messages
      by default in a 'js' logging category. This matches also
      the behavior for QtQml, where console messages end up in
      a 'qml' logging category by default.
      
      So far access to the JavaScript console required either use
      of the remote debugging functionality, subclassing of
      QWebEnginePage, or implementing a custom handler.
      Anyhow, even then writing a seamless forwarding of
      the data and metadata to the Qt message handler is
      difficult. This patches implements this forwarding by
      default.
      
      The behavior can be changed by either setting up rules
      for the 'js' category, e.g.
      
        setFilterRules("js.*=false");
      
      or by implementing onJavaScriptConsoleMessage(),
      or overriding QWebEnginePage::javaScriptConsoleMessage.
      
      [ChangeLog] Unhandled JS console messages are now
      forwarded to to the Qt message handler inside a 'js'
      category.
      
      Change-Id: I5480383a80dcf7a122496f9b7915264ef9036db3
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
      be8c12a8