1. 05 Nov, 2019 - 2 commits
    • Shawn Rutledge's avatar
      QTextMarkdownWriter: preserve empty lists · d1c6f7e5
      Shawn Rutledge authored
      
      You can save a "skeletal" document with list items to fill in later,
      the same as you can do in HTML or ODF format.  Reading them back via
      QTextDocument::fromMarkdown() isn't always perfect though.
      
      Fixes: QTBUG-79217
      Change-Id: Iacdb3e6792250ebdead05f314c9e3d00546eeb9f
      Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@qt.io>
      v5.14.0-beta3
      d1c6f7e5
    • Shawn Rutledge's avatar
      Avoid crashing when the end of an empty markdown list is detected · 524ab7b5
      Shawn Rutledge authored
      The markdown parser generates empty lists in some cases when a character
      that can be used as a bullet is found on a line by itself.
      cbEnterBlock() and cbLeaveBlock() are called symmetrically in such cases.
      QStack::pop() on an empty stack triggers an assert, so push and pop need
      to be done symmetrically too.  But it's difficult to actually create the
      list as soon as the MD_BLOCK_UL or MD_BLOCK_OL callback occurs, without
      breaking the case fixed in 7224d0e4
      
       (and
      probably other cases).  That's because QTextCursor::insertList() creates
      a list item at the same time as it creates the list itself, and also
      inherits block formatting from the previous block.  We now insert empty
      lists with empty items whenever the need for that is detected though,
      and there's a failsafe to prevent popping in case something still goes
      wrong with that logic.  We aren't strict about reproducing the original
      markdown when regenerating it via toMarkdown(), but it's getting closer.
      
      Fixes: QTBUG-78870
      Change-Id: Ided194ce7aec2710c60dbac42761ee4169ed9b78
      Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
      Reviewed-by: default avatarRobert Loehning <robert.loehning@qt.io>
      524ab7b5
  2. 04 Nov, 2019 - 3 commits
  3. 01 Nov, 2019 - 3 commits
  4. 31 Oct, 2019 - 5 commits
  5. 30 Oct, 2019 - 3 commits
    • Tor Arne Vestbø's avatar
      macOS: Don't skip display link delivery via GCD during live resizing · 41226c4c
      Tor Arne Vestbø authored
      
      We now avoid flushing GL if the exposed size does not match the window
      size, so we don't need to halt update request delivery during resize.
      
      Change-Id: Iaa89e67d50c987757a586b5958e08edf71a5dd0c
      Reviewed-by: default avatarMorten Johan Sørvig <morten.sorvig@qt.io>
      Reviewed-by: default avatarTimur Pocheptsov <timur.pocheptsov@qt.io>
      41226c4c
    • Kavindra Palaraja's avatar
      Doc: Clarify the ownership of a state for addState() · 6132b77d
      Kavindra Palaraja authored
      
      Change-Id: Ibe498c5288faa478a4dba934bc3c403829b337db
      Fixes: QTBUG-62445
      Reviewed-by: default avatarUlf Hermann <ulf.hermann@qt.io>
      6132b77d
    • Albert Astals Cid's avatar
      examples: Fix -Wdeprecated-copy warnings · f121f319
      Albert Astals Cid authored
      
      examples/corelib/tools/customtypesending/window.cpp: In member function ‘void Window::sendMessage()’:
      examples/corelib/tools/customtypesending/window.cpp:79:71: warning: implicitly-declared ‘Message& Message::operator=(const Message&)’ is deprecated [-Wdeprecated-copy]
         79 |     thisMessage = Message(editor->toPlainText(), thisMessage.headers());
            |                                                                       ^
      In file included from examples/corelib/tools/customtypesending/window.h:55,
                       from examples/corelib/tools/customtypesending/window.cpp:52:
      examples/corelib/tools/customtypesending/message.h:62:5: note: because ‘Message’ has user-provided ‘Message::Message(const Message&)’
         62 |     Message(const Message &other);
            |     ^~~~~~~
      examples/corelib/tools/customtypesending/window.cpp: In member function ‘void Window::setMessage(const Message&)’:
      examples/corelib/tools/customtypesending/window.cpp:87:19: warning: implicitly-declared ‘Message& Message::operator=(const Message&)’ is deprecated [-Wdeprecated-copy]
         87 |     thisMessage = message;
            |                   ^~~~~~~
      In file included from examples/corelib/tools/customtypesending/window.h:55,
                       from examples/corelib/tools/customtypesending/window.cpp:52:
      examples/corelib/tools/customtypesending/message.h:62:5: note: because ‘Message’ has user-provided ‘Message::Message(const Message&)’
         62 |     Message(const Message &other);
            |     ^~~~~~~
      
      Change-Id: I563d53f7dd1e0e0dc5fd4db06299b2d0a70c62ff
      Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
      f121f319
  6. 29 Oct, 2019 - 7 commits
  7. 28 Oct, 2019 - 5 commits
  8. 27 Oct, 2019 - 6 commits
  9. 25 Oct, 2019 - 6 commits