Commit Graph

4946 Commits

Author SHA1 Message Date
Orgad Shaneh
05c1d8ef55 Debugger: Provide addresses for formatted pointers
Pointers often don't have an address at all, or have the pointer's
address instaed of the target address.

For example:
int main()
{
  char str[11] = "HelloWorld";
  char *s1 = str; // s1 shows its own address
}

Change-Id: I2436578c073a00a3fec9411ef7ec82ae4e63a8b0
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-22 15:56:54 +00:00
Oswald Buddenhagen
3c2f0096ea Merge remote-tracking branch 'origin/4.0' 2016-03-22 15:23:12 +01:00
Tim Jenssen
3cf5f29719 QmlPuppet: fix Qt 5.5 builds
Change-Id: I520be5d188e637c222ba3e709f072e2881b20db9
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-22 13:15:36 +00:00
hjk
db3217af36 Debugger: Make QVariant dumper more robust
Change-Id: Ic9ce15eaf88f8a5267c9e8d3f9d049d9b2035eb1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-21 15:03:03 +00:00
Alessandro Portale
ddde4bdd27 Utils: Improved handling of StyleHelper::baseColor
This change makes sure that the "UI coloring" feature respects the
original brightness of the current theme. It prevents dark themes from
getting a too light recoloring and vice versa.

Extra benefit: this allows to remove much recently introduced code.

Change-Id: Ib2c96e7ed172a4cc97520aa4b5d180cc6353c661
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-21 14:23:23 +00:00
Tobias Hunger
adb3a74de9 Wizards: Fix validation of C++ class names
Task-number: QTCREATORBUG-15647
Change-Id: I265a7dbadb2f87e7e44a1770be2af3eb9b9cb53b
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-18 16:26:43 +00:00
Alessandro Portale
61b772e0e3 WelcomeScreen: little adjustments for default.creatortheme
..by rounding the buttons and adding a theme color role for their background

Change-Id: Icde7bb0be178ffbe65635d336227886ffd902129
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-18 15:40:00 +00:00
hjk
49735ee5ee QmlPuppet: Make compile without QT_RESTRICTED_CAST_FROM_ASCII removed
Change-Id: I535efad65b2224337c133463da075953cc878c6c
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-18 14:17:04 +00:00
Alessandro Portale
a0806dedd5 Rename the "Dark Frame" theme to "Default Flat"
Change-Id: I1d2dc8af94466de29fc1429c82dbbd37bcf7310b
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-18 11:18:03 +00:00
hjk
bf95512e5b Fix qml{puppet,designer} build without QT_RESTRICTED_CAST_FROM_ASCII
Change-Id: I8499cbf2e2b1bbe844373cb8549f82b5d62c0053
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-18 10:58:18 +00:00
Alessandro Portale
748c4ac57f Welcome: Implement part of Diana's design
Removing font variations, colors, roundings and gaps.
And it is now better themable.

The examlpes and tutorial selection still needs to be done.

Change-Id: I520814ba9e8ce4fa1d1ca7ec14329955e8a0609a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-17 16:38:40 +00:00
Alessandro Portale
bc481dc399 Flat theme: Same disabled color all side/tool/status bar icons
And adapting darkframe.creatortheme accordingly to match Diana's
specification

Change-Id: I9e1f62869ff91d7cfd3a26f51d26225d549a0965
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-17 11:54:14 +00:00
Christian Stenger
1584328da9 AutoTest: Add some theming support for results pane
Change-Id: I6641dc92d54ea20263656fa77157d7d853cf0287
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-17 10:21:26 +00:00
Alessandro Portale
5ab8440e2f ProgressBar: Add a theme color for the background
The progress bar is important and custom enough to deserve its own theme
color for the background. This change adds "ProgressBarBackgroundColor"
and also sets it for dark.cretatortheme, so that it has a good contrast
to ProgressBarColorNormal.

Change-Id: I37731d7a918a862a28940e215c913f9ade8569ca
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-17 08:05:08 +00:00
Alessandro Portale
49525a11f4 Flat themes: enable recoloring of the status bar & progress
The flat OutputPaneToggleButton now has the same hover and selected
colors as the sidebar items and toolbar items. This changes the
appearance in the dark theme a bit, and I hope in a good way.

Change-Id: I52826c6d1c4539f799c74580f195a95609ea0416
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-16 14:49:13 +00:00
Eike Ziller
f1e14468c6 Merge remote-tracking branch 'origin/4.0'
Conflicts:
	src/plugins/coreplugin/find/findtoolbar.h

Change-Id: I7db695a28473d1b16c46b1e39a4d6fce537c13a1
2016-03-16 15:28:47 +01:00
Alessandro Portale
b07e5eaf65 ProgressBar: Make it really flat for flat themes
Change-Id: I3964492e4b07dcba594d5bebc1b74d9458578e88
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-16 11:29:23 +00:00
Alessandro Portale
0f066bd3d9 "Dark frame theme": Fix some colors
By copying them from default.creatortheme

Change-Id: Ib833f19988276c73eff9c745eaab59d01b6bcad8
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-14 17:39:32 +00:00
Tobias Hunger
c003cb946e QtC Plugin Wizard: Use #pragma once
No need to discuss individual header guards that way;-)

And that is what we want to use in Qt Creator now anyway.

Change-Id: Idb2d7a34ea3c5d99c18c696eaed4023c12c01930
Task-number: QTCREATORBUG-15861
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-14 15:17:44 +00:00
Alessandro Portale
04a68518c9 Themes: Make theming of the menu bar optional
Inspired by numerous user feedback, I want to turn off the theming of
the menu bar for the new flat theme, and make it look like in the
default theme. At the same time, I want to leave the "dark" theme as it
currently is.

This patch adds a theme flag FlatMenuBar and turns it off for the new
theme.

Change-Id: I9bba056a27fab7a634b45324e3fe8cd26f50df74
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-14 11:00:44 +00:00
Orgad Shaneh
58654c134e GenericHighlighter: Update from latest KTextEditor source
Change-Id: I84b783df1eaca9e162e50f23e1da8fa0afa9666d
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-14 08:34:33 +00:00
Alessandro Portale
5a031f5bbe "Dark Frame" theme: Highlight the active empty document
The current active and empty document should be highlighted. That was
broken with the "Dark Frame" theme.

Change-Id: I0632f654c146492b7e7a9d61db31e2d85c3d52fd
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-13 01:11:37 +00:00
Alessandro Portale
a0fbfd3bd4 Themes: Make toolbar highlights optional
Following Diana's flat style motto "remove unnecessary lines", this
patch makes highlights and shadows in the toolbars optional, and removes
them for the new flat theme.

"default" and "dark" are not affected by this change.

Change-Id: Iadbbaa669e318406a154fed3e07890fd40f5f621
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-12 22:38:41 +00:00
Alessandro Portale
b6d05436fb "Dark Frame" theme: do not force the use of fusion style
Unlike the "dark" theme, thia theme does not try to modify
the standard widgets and dialogs.

Change-Id: If85f1bc90113516750c546cbec74cd1f562683eb
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-12 21:56:16 +00:00
Marco Bubke
40c4f7847f TextEditor: Add global variable text styles
Change-Id: I088dc484b6a4ace79609ca7fcc4145344ccea5a9
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-07 12:07:38 +00:00
Alessandro Portale
ea01867297 Themes: Add a theme flag for "default" or "flat" ProjectsMode
I'd like a "flat" style to have a "default" projects mode.
This patch introduces a FlatProjectsMode. The painting code of the
widgets in the project mode follow that instead of the
Theme::WidgetStyle.

In the course of it, DoubleTabWidget does not imitate the dummy toolbar
anymore, but calls the style painting code, instead. That makes the
theme color DoubleTabWidget1stEmptyAreaBackgroundColor obsolete, so that
key disappears from the Theme enum and also from the creatorthemes.

Change-Id: Ia1479c761f61753d6738a43bbde368bf0b8814b2
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-07 08:47:37 +00:00
Alessandro Portale
19bb4be20c "Dark Frame" Theme: Tweaks
Adjusting the splitter color and Info Area colors.

Change-Id: Icca320df917cd5df352c19f1be2a204d1250f17b
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-04 16:18:51 +00:00
Alessandro Portale
ef1106a27f Revert "Gathering feedback about flat mode icons"
Feedback gathered, thank you for the patience.

This reverts commit 9e9bae54c7c456584e26b3ca61cdadd3da25726c.

Change-Id: If5be24e9f97f172d9e6f170d80b2747cf3e9dc04
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-04 08:39:35 +00:00
Eike Ziller
ec3505a663 Merge "Merge remote-tracking branch 'origin/3.6' into 4.0" into 4.0 2016-03-03 15:22:16 +00:00
Eike Ziller
f4e87a7e0c Merge remote-tracking branch 'origin/3.6' into 4.0
Conflicts:
	src/plugins/projectexplorer/applicationlauncher.cpp
	src/plugins/projectexplorer/applicationlauncher.h
	src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp
	src/plugins/qmlprofiler/qmlprofilertool.cpp
	src/plugins/qtsupport/uicodemodelsupport.cpp
	src/plugins/qtsupport/uicodemodelsupport.h

Change-Id: I6f6ae77422d99f4f422b108ade6b64273df9dd57
2016-03-03 16:10:04 +01:00
Alessandro Portale
9bde122764 default.creatortheme: add dummy FancyToolBarSeparatorColor
Change-Id: I1d7a27bf7fb749e9b13f17584e1b57db0ea0acbd
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-03 14:50:38 +00:00
Alessandro Portale
b0c8a68aba Flat Theme: Final touches for tool bar separators
To properly support Diana's design, we need a dedicated theme color for
the separator. Also, the vertical separators have a certain margin.

Change-Id: I4d009342a9320848ec97f5c2d324bfb672650101
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-03 12:19:53 +00:00
Eike Ziller
a6d43e317b Translations: Fix some wrong contexts in ts files.
We often have includes relative to e.g. <qtcreator>/src/plugins, so we
need to pass these to lupdate as well to make it find headers there.

Task-number: QTCREATORBUG-8945
Change-Id: I1d44c90b9a5f6da742666fe3dcd0fc83b1c527f8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-03-02 14:13:05 +00:00
Eike Ziller
8da98c44f1 Merge remote-tracking branch 'origin/master' into 4.0
Change-Id: Iab01658c329f3bf57077595d54be6ed73f11f715
2016-03-02 09:18:06 +01:00
Alessandro Portale
c43c0163a5 Add the "Dark frame" Qt Creator theme
http://blog.qt.io/blog/2015/02/09/qt-creator-flat-style-ui-design-new-light-theme/
defines a dark and a light theme. We start by implementing the dark one.

"Dark frame" stands for dark toolbar areas and light content areas.
The name is silly, and we need to find a proper one before the release
(we will most likely keep the silly name, though).

Since the existing "dark" theme is much darker and has a dark content
area, we don't want to simply replace that.

Change-Id: If2197c4a07ae1e374be4449b6ed0383cdbe314b3
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-01 18:28:50 +00:00
Alessandro Portale
7ef8ba082d Application wizard for Qt.labs.control based applications
Let's make it easier to create applications with Qt labs controls. This
creates a tabbed navigation style. We can add options to the wizard to
create drill-down and other common navigation styles. Also an option
for the controls style (material, universal, etc.). And perhaps a
checkbox to include the virtual keyboard.

Change-Id: I9672ab12aa616e7ce08e90eb244fad525e5ab2b2
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-01 17:39:46 +00:00
Alessandro Portale
c2dfd0f53b Update Canvas3D application wizard to Qt 5.7 level
Upgraded r74 three.js port, which is compatible with Qt 5.6 and Qt 5.7.

Some three.js features require Canvas3D 1.1 API,
so increased the import version in the template.

Change-Id: I1ae37237073d4149f56c1d93579b20a576496e33
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-01 12:24:51 +00:00
Tobias Hunger
78074999f6 PNGs: Remove sRGB chunk
libPNG does nag about broken/useless sRGB headers on the console for a
while now. Remove them from our PNGs to stop that text from appearing
in the console on startup.

Change-Id: I2f49f892397bf9d4498ac39210fd6d1d4f29269e
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-29 13:28:51 +00:00
Alessandro Portale
2f735a126e Dark theme: Fix selected sidebar button background
One of my recent changes must have broken the selected background color.

Change-Id: I4ed79b29193bddb4423273f65562d20e54361f9a
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-02-26 13:22:12 +00:00
Alessandro Portale
d36716ae14 Themes: Fix UI recoloring for flat themes
Reduce the usage of half-transparent colors to just the Fancy* widgets.
Otherwise, we have side effects like QTCREATORBUG-15770 in other
widgets (e.g. search results pane).

Change-Id: I0e2b0155441c4f1a071bd3c1029577accb73d56b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-26 11:54:13 +00:00
Robert Loehning
ca4548001d Improve German translation
Change-Id: I46e0c7f3b047d55db1fa2abe54c701c208de50ba
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-24 18:51:53 +00:00
Alessandro Portale
02af5d80b6 Themes: Enable UI recoloring for flat themes
Change-Id: I1907c42a769124b7505bd7afaf6c4da910f3f407
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-02-18 11:37:28 +00:00
Niels Weber
8ac1f8eb29 Correct capitalization in wizard template and example.
Change-Id: I9a42ea97407179911d1736ba1ca79402d51d24c5
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-02-16 10:59:41 +00:00
Niels Weber
fd085ed268 Use "OS X" correctly in plugin template
Use Apple related terminology correctly.

Change-Id: Ib71fa5a080586027b3be8303ba5b7cf8058e669c
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-02-15 13:08:37 +00:00
Alessandro Portale
7db0023e8c QmlDesigner: HighDpi fixes for some graphics
- Fresh arrow_down, which is used in many places
- Fresh arrow_up and some tweaks in spinbox
- Fresh graphics for "submenu", "expression and "placeholder"
- Fresh graphics for checkbox indicator
- Removed unused hover checkbox variants
- Added pressed state for checkbox_tr
- Removed radius of focus rectangle in the lineedit

Change-Id: I710ec6ac8ebf86c85a155a812e581cca88845ce3
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
2016-02-10 14:07:12 +00:00
Thomas Hartmann
c7a6221e6e QmlDesigner: Evaluate properties for the root item in dummy context
We evaluate properties for the root item in dummy context if
they contain "parent.".

Defining a parent in the dummy context was not working for QML 2,
because there seems to be a shortcut bypassing the metasystem for parent.

Task-number: QTCREATORBUG-15530
Change-Id: I710f1ef36b8c97cc481b9909a775f06d9e03f666
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-10 11:30:05 +00:00
Thomas Hartmann
ece316fb64 QmlDesigner: Adding dummydata as context property
The dummyContextObject is now set as the context object

Change-Id: I710f1ef36b8c97cc481b9109a775f06d9e03f6b6
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-10 10:36:34 +00:00
Alessandro Portale
5bed03ffd8 QmlDesigner: Improve Section collapsing animation
Making the height animation work. Synchronizing height animation and
arrow rotation.

Removing the well meant fading, because gives the impression of a lag
rather than an intended animation.

Change-Id: I97924c715476df72ff903d38277730ca0e02e80d
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-02-08 09:01:20 +00:00
Alessandro Portale
698e56eda8 Default Theme (Flat Icon mode): Improve contrast between icon states
Increase the contrast between enabled and disabled icons. Reduce the
contrast beween enabled icons and enabled icons with custom colors:
stop, run, resume, warning, error, info.

Change-Id: If6ae0659fb0adbd28c121ec4718449b0ca9e3270
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-02-03 10:01:20 +00:00
Alessandro Portale
ccf57c3303 Icons: Use theme color for disabled icon state
The color role was already availabe in Utils::Theme, but
Utils::Icon didn't yet make use of it. That was a bug.

Change-Id: Ifb99e08567223c0999296fde34f61de21b764b14
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-02-03 09:47:41 +00:00