1. 10 Feb, 2015 1 commit
  2. 16 Jan, 2015 1 commit
  3. 30 Oct, 2014 1 commit
  4. 15 Oct, 2014 1 commit
    • Thorben Kroeger's avatar
      Implement theming for QtCreator · 84f5585b
      Thorben Kroeger authored
      Adds a 'Theme' tab to the environment settings and a '-theme' command
      line option.
      A theme is a combination of colors, gradients, flags and style
      information.
      
      There are two themes:
      - 'default': preserves the current default look
      - 'dark': uses a more flat for many widgets, dark color theme
        for everything
      
      This does not use a stylesheet (too limited), but rather sets
      the palette via C++ and modifies drawing behavior.
      Overall, the look is more flat (removed some gradients and bevels).
      
      Tested on Ubuntu 14.04 using Qt 5.4 and running on a KDE
      Desktop (Oxygen base style).
      
      For a screenshot, see
      https://gist.github.com/thorbenk/5ab06bea726de0aa7473
      
      Changes:
      - Introduce class Theme, defining the interface how to access theme
        specific settings. The class reads a .creatortheme file (INI file, via
        QSettings)
      
        - Define named colors in the [Palette] section
          (see dark.creatortheme for example usage)
      
        - Use either named colors of AARRGGBB (hex) in the [Colors]
          section
      
        - A file ending with .creatortheme may be supplied
          to the '-theme' command line option
      
      - A global Theme instance can be accessed via creatorTheme()
      
      - Query colors, gradients, icons and flags from the theme
        were possible (TODO: use this in more places...)
      
      - There are very many color roles. It seems better to me
        to describe the role clearly, and then to consolidate later
        in the actual theme by assigning the same color.
        For example, one can set the text color of the output pane button
        individualy.
      
      - Many elements are also drawn differently.
        For the dark theme, I wanted to have a flatter look.
        - Introduce Theme::WidgetStyle enum, for now {Original, Flat}.
        - The theme specifies which kind of widget style it wants.
        - The drawing code queries the theme's style flag and
          switches between the original, gradient based look and
          the new, flat look.
      
      - Create some custom icons which look better on dark background
        (wip, currently folder/file icons)
      
      - Let ManhattanStyle draw some elements for non-panelwidgets, too
        (open/close arrows in QTreeView, custom folder/file icons)
      
      - For the welcomescreen, pass the WelcomeTheme class.
        WelcomeTheme exposes theme colors as Q_PROPERTY accessible from
        .qml
      
      - Themes can be modified via the 'Themes' tab in the environment
        settings.
      
      TODO:
      * Unify image handling
      * Avoid style name references
      * Fix gradients
      
      Change-Id: I92c2050ab0fb327649ea1eff4adec973d2073944
      Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
      84f5585b
  5. 14 Oct, 2014 1 commit
  6. 09 Oct, 2014 1 commit
  7. 08 Sep, 2014 1 commit
  8. 16 Jul, 2014 1 commit
    • Daniel Teske's avatar
      Even more algorithm usage in ProjectExplorer · eccf1dc1
      Daniel Teske authored
      Add Utils::transform and anyOf that take a member function pointer.
      Remove bestElementOr it's unused.
      
      Use declval<T> in transform's return type, because msvc does evaluate
      T() and for types that don't have simple constructor this fails.
      Add std::remove_reference since decltype returns a reference for
      lvalues.
      
      Change-Id: I22248b226748eeb27af0d300182d574438d7f756
      Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
      eccf1dc1
  9. 15 Jul, 2014 1 commit
  10. 09 Jul, 2014 1 commit
  11. 19 Jun, 2014 1 commit
  12. 03 Jun, 2014 1 commit
  13. 06 May, 2014 1 commit
  14. 05 Mar, 2014 1 commit
  15. 21 Feb, 2014 1 commit
  16. 08 Jan, 2014 1 commit
  17. 28 Nov, 2013 1 commit
  18. 19 Sep, 2013 1 commit
  19. 05 Sep, 2013 2 commits
  20. 30 Aug, 2013 2 commits
  21. 01 Aug, 2013 1 commit
  22. 09 Jul, 2013 1 commit
  23. 03 Jun, 2013 1 commit
  24. 28 May, 2013 2 commits
  25. 26 Mar, 2013 1 commit
  26. 29 Jan, 2013 1 commit
  27. 11 Jan, 2013 1 commit
  28. 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
  29. 04 Dec, 2012 1 commit
  30. 27 Nov, 2012 1 commit
  31. 12 Nov, 2012 1 commit
  32. 05 Oct, 2012 1 commit
  33. 04 Sep, 2012 2 commits
    • Daniel Teske's avatar
      Make target selector popup size smart · 7ea3e2c2
      Daniel Teske authored
      Task-number: QTCREATORBUG-7705
      
      Change-Id: Ica9a39f0557993a8bba6ec32f7373101203af4c0
      Reviewed-by: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
      7ea3e2c2
    • Tobias Hunger's avatar
      s/profile/kit/ · 8ba422d0
      Tobias Hunger authored
      * Rename profiles to kits.
      * Update some strings:
         * projects mode has a Kits tab, not a Targets tab.
         * " Settings" was dropped from the sub-tabs of the Kits tab
         * menu entry "Build/Open Build/Run Target Selector" was renamed
           to "Build/Open Build and Run Kits Selector".
         * Use "Kit" instead of "Target" in miniprojecttargetselector.
           (The class was not renamed as it does indeed select targets,
            not kits)
      
      Change-Id: I0727e086e2dfa0e8aaaf89fdc6f2e3596c7a4314
      Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
      8ba422d0
  34. 28 Aug, 2012 1 commit
  35. 19 Jul, 2012 2 commits