Friedemann Kleint
d33af01d09
Clean exported headers of the VcsBase plugin.
...
Change-Id: Ibfe20bc7156e14e33fd0448586f5cc625494e008
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-26 10:57:52 +00:00
Christian Kandeler
836606feb9
Analyzer: Fix combobox behavior.
...
The code assumed that the items in the combobox correspond to the ones
in the m_actions array. This is no longer true, as we now group the
combox contents.
Change-Id: I97500970fbcda9ac8b5e530dd487f388cc13a5e2
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-02-26 10:13:06 +00:00
Orgad Shaneh
b30e807fac
C++: Fix crash on static template instantiation
...
template<typename T>
struct QList
{
struct iterator
{
T *operator->() { return &t; }
T t;
};
static iterator begin() { return iterator(); }
};
struct Foo { int bar; };
void fun() {
auto a = QList<Foo>::begin();
a. // crash
}
Change-Id: I373c493b2eefc9566ec13165285c33d474a3b440
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-02-26 10:09:42 +00:00
Przemyslaw Gorszkowski
8c11485edb
C++: fix dereferencing of nested type and 'auto'
...
Fixed case:
template<class T>
struct List
{
struct iterator
{
T *operator->() { return &t; }
T &operator*() { return t; }
T t;
};
iterator begin() { return iterator(); }
};
struct Foo { int bar; };
void func()
{
List<Foo> list;
auto a = list.begin();
(*a).; // code completion doesn't work
a->; // code completion does not work
}
Task-number: QTCREATORBUG-13799
Change-Id: I38e4bfb2f5d728c0b24b0f18b3d78793e90d633b
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-02-26 10:09:39 +00:00
hjk
7f001dab1b
Core: Make Context parameter to registerAction optional
...
... and default to C_GLOBAL. A rather common case.
Similar for ActionContainer::addSeparator().
Change-Id: I7f9ba573af201c0a472132d5a494ad17cc4175b7
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com >
2015-02-26 10:09:03 +00:00
hjk
5b80463050
Debugger: Fix 'Show Address' stack window context menu action
...
Change-Id: I59784fbb304882f88538800c4094b8680cb379f8
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-26 10:02:32 +00:00
hjk
623de07ab9
Debugger: Streamline GdbMi structure interface
...
Change-Id: If9c4d1ae8b05a5dae7d6a1a7534e49d1966dd493
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-26 08:53:47 +00:00
hjk
1c59dd1837
Analyzer: Remove unneeded Q_OBJECT
...
Change-Id: Ifeb842ece3f357a26e92edcb5f3c857ca9da5b42
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-26 08:24:19 +00:00
hjk
0697c6d89a
Debugger: Fix array access with LLDB if index is a long
...
Triggered with the QGraphicsPolygonItem dumper on Linux.
Change-Id: I1374ca308c732eb5c25da959d8b499515ed72e66
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-26 07:48:42 +00:00
Christian Stenger
d6fd56ba9d
Debugger: Fix typo
...
Change-Id: I6cdfb989be46dfad0cbe276ef7c5b067b80260d0
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-02-26 07:30:20 +00:00
hjk
bf87fc9640
Debugger: Rework 'Attach to unstarted application' startup
...
Change-Id: I42c7ce8e413c850e05b02f5d6fe1b83376436c65
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-26 07:05:32 +00:00
Nikita Baryshnikov
027328059b
Qbs submodule: revert back if it was eventual
...
Change-Id: Ifdb4cab0cb5cc3ff1505c3d6f46cc5c565b1affb
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 20:36:12 +00:00
Christian Kandeler
53ff1dd115
Analyzer: Separate "integrated" and "external" variants in tool box.
...
Having the external tool flavors mixed in among the normal ones makes
the tool box look cluttered and is bound to confuse users. So we now
group the tools, with the mainstream use case coming first.
Change-Id: I200b45550d7b1d1f2a565c2e37979fc195f5a12f
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-02-25 17:04:33 +00:00
Ulf Hermann
d2a3f3f2c7
QmlProfiler: Don't re-estimate profiling time when not profiling
...
Change-Id: I2485aff4f1317a0bf194455969757da497c7e404
Task-number: QTCREATORBUG-14024
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com >
2015-02-25 16:58:54 +00:00
Ulf Hermann
ad484b1c2f
Timeline: Don't round the selection rectangles outer dimensions
...
Change-Id: I5d002737937593f53f2b64a5eee1cc2fd42d803f
Task-number: QTCREATORBUG-14023
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com >
2015-02-25 16:58:49 +00:00
Orgad Shaneh
16cfcfe136
QtSupport: Pimpl QtOutputFormatter
...
Change-Id: Ib2748f1cdd5de4bf11f0eab03bd4c6a683580a9e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-02-25 16:19:32 +00:00
Nikita Baryshnikov
51011aed80
DetailedErrorView: initialize member in ctor
...
Change-Id: Ic0c8c1bdb39b676c7e4b0c234614741b402ff966
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com >
2015-02-25 16:17:55 +00:00
Eike Ziller
650015ebff
MimeTypes: Avoid checking magic matchers for .h files
...
If we have "*.h" glob pattern with same weight in c-hdr and c++hdr, it
also opens the files and checks magic matchers (for _all_ mime types, but
that's another issue).
Change-Id: I5dde180b3392d3a11354dce61fa577345c97b295
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com >
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 15:04:41 +00:00
Przemyslaw Gorszkowski
168d9201d5
C++: rename enclosingTemplateInstantiation to enclosingBinding
...
Change-Id: I6989cd0e62e9587824737b756a37607dfdcf5ebf
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 15:04:28 +00:00
Przemyslaw Gorszkowski
1a239bd3e9
C++: fix dereferencing of nested type and operator '->'
...
Fixed case:
template<class T>
struct List
{
struct iterator
{
T *operator->() { return &t; }
T t;
};
iterator begin() { return iterator(); }
};
struct Foo { int bar; };
void func()
{
List<Foo> list;
list.begin()->; // code completion doesn't work
}
Task-number: QTCREATORBUG-13799
Change-Id: I65e8d3092bbc9b01a5dbee241c24d95dd03fc670
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-02-25 15:03:43 +00:00
Przemyslaw Gorszkowski
209078e57e
C++: fix dereferencing of nested type and operator '*'
...
Fixed case:
template<class T>
struct List
{
struct iterator
{
T &operator*() { return t; }
T t;
};
iterator begin() { return iterator(); }
};
struct Foo { int bar; };
void func()
{
List<Foo> list;
(*list.begin()).; // code completion doesn't work
}
Task-number: QTCREATORBUG-13799
Change-Id: Ia3f5c1631c2f6a25d7fb1186b4ef506354ed22be
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-02-25 15:03:40 +00:00
Eike Ziller
25989cbf94
MimeDatabase: Avoid opening files even if already file name matches
...
Change-Id: If669985f8ef852c31ecbaae76c533c7286e5a294
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com >
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 15:02:13 +00:00
Eike Ziller
1e29d5c09e
Add freedesktop.org.xml to .pri file for easy access in locator.
...
Change-Id: I6c408a7f8cf367038140c9d35d7dea8f7e0cd628
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com >
2015-02-25 15:01:50 +00:00
Przemyslaw Gorszkowski
9e513774b1
C++: resolved self-value reference for enum
...
Added support for resolving case:
enum E
{
val1,
val2 = val1, // val2-4 are not resolved
val3,
val4
};
Task-number: QTCREATORBUG-13932
Change-Id: I122c5eb0b0397d6c02bc3db0a5c1ea1c28c5c6e7
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-02-25 15:01:02 +00:00
Orgad Shaneh
e0eac5824b
Core: Avoid unnecessary QFileInfo in OpenDocumentsFilter
...
Change-Id: I93416ba203b543dd307f1b7db84c8c481aab1ede
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com >
2015-02-25 15:00:36 +00:00
Daniel Teske
2ffd0e2d0d
ProjectExplorer Nodes: Replace dynamic_cast with as* functions
...
The OS X linker makes using dynamic_casts across shared object
boundaries fail, so do all casting in the projectexplorer library
and provide functions to do it.
Task-number: QTCREATORBUG-13864
Change-Id: I0e13c0986f8342d83c3b838ffdd2dd7b8312b13c
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com >
2015-02-25 14:57:18 +00:00
hjk
d1e0324b22
Debugger: Fix GdbEngine state transitions for 'attach'
...
... to running process. Pretty much the same setup as for
the terminal now, except that we are stopped in the end.
Change-Id: I02c5bf52971dc97fd6393ee67349c9070dc08697
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com >
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-25 14:34:26 +00:00
hjk
1b71e8a53d
Utils: Remove unneeded double indirection in OutputFormatter
...
Change-Id: I1af77688172d139cca105ac20086a3b7c5f32df6
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 14:25:01 +00:00
Robert Loehning
4413096cae
Squish: Add Qt 5.4.1 kit
...
Change-Id: I8efa72f8695796bd69af11e9904fae143137d1e6
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-25 14:17:54 +00:00
Orgad Shaneh
a70a886286
Core: Use a fixed cursor in OutputWindow
...
Callgrind shows that movePosition is very expansive.
Change-Id: I84fbb59eb10b97e8222b91604b29a420179cf3e2
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-02-25 13:46:33 +00:00
Orgad Shaneh
5044056296
Utils: Use a fixed cursor in OutputFormatter
...
Change-Id: I3652aac881a7be955f11d57afb783142064ad256
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-02-25 13:45:34 +00:00
Nikita Baryshnikov
bcdd6d4ca0
SearchResultWindowPrivate: initialize members in ctor
...
and remove unused variable
Change-Id: I89c042ed834e978a97623a0544b4a6d754d29bc3
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 12:56:50 +00:00
Nikita Baryshnikov
1cd37bff95
ThemeEntry: initialize member in ctor
...
Change-Id: Ic62012104503956b16468718299a24d63594339a
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 12:56:29 +00:00
Nikita Baryshnikov
4b49b52c09
EditorToolBarPrivate: initialize members in ctor
...
Change-Id: Ibbe75d5245e565d3f2258275ba20993e90a21467
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 12:49:07 +00:00
Nikita Baryshnikov
4f3f272d73
FindPluginPrivate: initialize members in ctor
...
Change-Id: Iebb1597898d3c608e91c7f0b3c11ee139fe3f489
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 12:47:51 +00:00
Orgad Shaneh
fb758183d7
C++: Disable "signals" when qt keywords are disabled
...
Change-Id: Ib2334703247a4003015c7063730e0343054d3543
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-02-25 12:44:27 +00:00
Nikita Baryshnikov
df2edde762
ActionManagerPrivate: remove unused member variables
...
Change-Id: I92cd512bafd8030735c3c51e4c973a2f3b858189
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 12:42:58 +00:00
Orgad Shaneh
a1c9654349
Utils: Pimpl OutputFormatter
...
Change-Id: I42682a9793e895fb99b154cf9fac37fb189fd9c8
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-02-25 12:04:12 +00:00
hjk
7b8c58b99b
Debugger: Fix a state transition regression
...
Task-number: QTCREATORBUG-14028
Change-Id: I426baf1549d138f4a35d23d5ab814def2125dfbe
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com >
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-25 11:32:54 +00:00
Jarek Kobus
30d80ad020
Use completeBaseName for operations on paths.
...
Task-number: QTCREATORBUG-13967
Change-Id: Ie70f861138f1cf4c3f098a363274cb99bcf97c03
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com >
2015-02-25 11:19:53 +00:00
Nikita Baryshnikov
ed271ed750
ClearCaseSettings: initialize member
...
Change-Id: Ib43dbddd64bb179f65d25705757682f6a8088af0
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 11:13:31 +00:00
Orgad Shaneh
169fe15940
Core: Pimpl OutputWindow
...
Change-Id: Id19f3d0ffcc1b3c939d57c9cb2c5b0fa7be7203c
Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com >
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-02-25 10:54:36 +00:00
Nikolai Kosjar
eeee955061
CppTools: Display explicitly marked slots first
...
...when offering Qt5 style slot completions.
Change-Id: Id23b008601ade3533aea2b6295558ffea178a5da
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 10:50:22 +00:00
Nikolai Kosjar
7bd055d446
CppTools: Display icons when completing signals
...
...and their class names.
Change-Id: I41b4705eb572d9d6431a06025e73b0c1621d4bea
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-02-25 10:49:53 +00:00
Nikita Baryshnikov
00aa57b20a
BookmarksPlugin: initialize members in ctor
...
Change-Id: Id5aa974e24baf639dd75979193c6bd6f4c86d2b6
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-02-25 10:49:02 +00:00
Eike Ziller
767f0ef58b
Merge remote-tracking branch 'origin/3.3' into 3.4
...
Conflicts:
doc/api/coding-style.qdoc
Change-Id: Id40eb253a2e3e2357276ee76085127da10597bdb
2015-02-25 10:15:28 +01:00
hjk
c6a4c80728
Debugger: Remove a few unneeded Q_SLOT macros
...
Change-Id: I7be999999f891a003c940d585762d15a76bf90a1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-02-25 06:55:14 +00:00
hjk
4699a33837
Coding style: Allow empty lambda parameter lists to be omitted
...
Change-Id: I6d4e53c5e16b1f25db62a4996fcc3b0298abd720
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com >
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com >
2015-02-24 17:26:12 +00:00
hjk
6696bf1374
ProjectExplorer: Fix recent regression with an old-style SLOT
...
Requiring Qt 5.4 would be nice...
Change-Id: Iae2ef187bc4c6a30137448ad60109ed44b130fb4
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com >
2015-02-24 16:35:37 +00:00
Eike Ziller
d156103d8d
Editor manager: Fix selected filter in Save as...
...
Make sure to ask mime database only for mime type of non-empty paths.
Change-Id: I5de896021c8438f17b1c5368674493337ccee0c4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com >
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com >
2015-02-24 15:25:53 +00:00