1. 21 May, 2013 1 commit
  2. 15 May, 2013 1 commit
  3. 07 May, 2013 1 commit
  4. 19 Apr, 2013 1 commit
  5. 18 Apr, 2013 1 commit
  6. 11 Apr, 2013 1 commit
  7. 03 Apr, 2013 2 commits
  8. 02 Apr, 2013 4 commits
  9. 27 Mar, 2013 1 commit
  10. 19 Mar, 2013 1 commit
  11. 12 Mar, 2013 1 commit
  12. 11 Mar, 2013 1 commit
  13. 08 Mar, 2013 1 commit
    • Mitch Curtis's avatar
      CPP, QmlJs editors: don't indent when moving commented lines up/down. · e53ae818
      Mitch Curtis authored
      Currently, pressing Ctrl + Shift + Up/Down with a commented block of
      text selected will indent that block if the line two lines above the
      block is indented. This is undesirable, because the indenting for that
      block is incorrect when it is uncommented. See the following example:
      
      Step 1:
      void f()
      {
          int x;
      
      //    int y;
      }
      
      Step 2 - After Ctrl + Shift + Up:
      void f()
      {
          int x;
          //    int y;
      
      }
      
      Step 3 - After uncommenting the block:
      void f()
      {
          int x;
              int y;
      
      }
      
      This patch tells the CPP and QmlJs editors not to indent commented
      blocks when moving them. Blocks that are not entirely within comments
      (excluding whitespace) are not affected.
      
      Tested with (C++ and JavaScript, respectively):
      http://paste.kde.org/688778/
      http://paste.kde.org/688784/
      
      
      
      Change-Id: I35414e6dfd5a1084fd997594e711ea9932231981
      Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
      e53ae818
  14. 05 Mar, 2013 2 commits
  15. 21 Feb, 2013 1 commit
    • Fawzi Mohamed's avatar
      qmljs: add infrastructure handling qml dialects better · 942326ae
      Fawzi Mohamed authored
      
      
      QmlBundles enables us to treat the different qml
      dialects differently.
      
      Add imports completion.
      
      Change-log: [Qml/JS Support] Corrected handling of QtQuick2 only features.
      Change-log: [Qml/JS Support] Added import completion in editor.
      Task-number: QTCREATORBUG-8750
      Task-number: QTCREATORBUG-8624
      Task-number: QTCREATORBUG-8584
      Task-number: QTCREATORBUG-8583
      Task-number: QTCREATORBUG-8429
      
      Change-Id: I1384b1b23136a85b4d077895ea86f92960da9e71
      Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
      942326ae
  16. 19 Feb, 2013 2 commits
  17. 17 Feb, 2013 1 commit
    • Fawzi Mohamed's avatar
      qmljseditor: Improve speed of QML/JS Editor for large files · 1a201626
      Fawzi Mohamed authored
      
      
      avoid using extra selections for warnings folding them into the
      normal semantic update.
      
      Extra selections impose a relatively large overhead (and need expensive
      text cursor operations).
      Unlike C++ Qml warnings are continuosly recomputed in the current file
      of the editor, but not listed in the issue panel, unless one
      explicitly triggers the qml checks.
      
      Using the normal sematic update for warnings avoids QTextCursor
      operations, and uses batched applies.
      
      Unfortunately getting the tooltips from the additional formats instead
      of using the extra selections requires private API, so Ranges are also
      stored separately.
      
      Change-log: [Qml/JS Support] Improved speed of QML/JS Editor for large files with lots of warnings.
      
      Change-Id: I1f996231ef35d7cd77a79af58dbae2098fbbc83e
      Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
      Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      1a201626
  18. 12 Feb, 2013 2 commits
  19. 11 Feb, 2013 2 commits
  20. 31 Jan, 2013 1 commit
  21. 29 Jan, 2013 1 commit
  22. 17 Jan, 2013 1 commit
  23. 16 Jan, 2013 1 commit
  24. 11 Jan, 2013 1 commit
  25. 09 Jan, 2013 1 commit
  26. 08 Jan, 2013 1 commit
    • Orgad Shaneh's avatar
      Remove braces for single lines of conditions · 29a93998
      Orgad Shaneh authored
      
      
      #!/usr/bin/env ruby
      
      Dir.glob('**/*.cpp') { |file|
        # skip ast (excluding paste, astpath, and canv'ast'imer)
        next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i
        s = File.read(file)
        next if s.include?('qlalr')
        orig = s.dup
        s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m|
          res = $&
          if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces
            res
          else
            res.gsub!('} else', 'else')
            res.gsub!(/\n +} *\n/m, "\n")
            res.gsub(/ *{$/, '')
          end
        }
        s.gsub!(/ *$/, '')
        File.open(file, 'wb').write(s) if s != orig
      }
      
      Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
      29a93998
  27. 29 Dec, 2012 1 commit
  28. 14 Dec, 2012 1 commit
  29. 03 Dec, 2012 2 commits
  30. 28 Nov, 2012 2 commits