Commit Graph

31174 Commits

Author SHA1 Message Date
Orgad Shaneh
f1a622a779 LogChangeDialog: Show 40 entries
Change-Id: I96c41cac8426c7de65671c787691ad302fe77ded
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 12:34:04 +02:00
Orgad Shaneh
fafe964c71 Git: Fix commit message highlighting
Task-number: QTCREATORBUG-5874
Change-Id: I287a7fbd2d1a3c39983d7a9ac820b190250a6484
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 12:33:40 +02:00
Orgad Shaneh
40d001694b Git: Use synchronousParentRevisions to retrieve parents
Replace explicit 'git log' call

Change-Id: I7fd3821d9a321d84fa25bad4bd0a4525fee11993
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 11:34:12 +02:00
Orgad Shaneh
86c2342ed2 Git: Fix Precedes/Follows display for show opened from log
Change-Id: Ib999f8f00b065e4e51b70f1c5f81bdd17baabd8c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 11:13:42 +02:00
Andre Hartmann
d61a4f1ba5 Git: Fix closing namespace comment.
Change-Id: I886bbbf886439d3d2b484afb2af2131e7c696e65
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 11:12:01 +02:00
Sergey Shambir
0402a596a7 CPaster: Removed duplicate check
Change-Id: I61618f70c74736df44c6b23e26929325302618b3
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 11:10:27 +02:00
Orgad Shaneh
a5962841cf Git: Support graph log for all log types (file, project, repo)
* Added a Graph toggle button for log editor
* Hide diff parameters when Diff is off
* Remove GitClient::graphLog

Change-Id: Ib87560bc4d6d7dbe866f0e58db8743a95df0622b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 11:01:05 +02:00
Orgad Shaneh
48b9747550 Vcs: Allow multiple flags in parameter widgets
Refactor combobox values to use %1 as a placeholder for values

Change-Id: I9a9bb6b9ba5c21bcaad4a3047d322856225892bc
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-29 11:00:19 +02:00
Francois Ferrand
4d18710f46 C++: fix handling of empty va_args macro arguments.
Preprocessor did not correctly handle when variadic macro arguments were not
provided at all, if there were other arguments: macro was not expanded
in case only the non variadic arguments were given.

 #define MACRO(...)       used to work fine for 0 or more arguments.
 #define MACRO(ARG0, ...) used to work only for 2 or more arguments, now fixed.

Change-Id: I64e9199ceccae05618a49931c2adad8e4f9471ba
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-04-29 10:09:43 +02:00
Tobias Nätterlund
0b0f84c639 BlackBerry: Add possibility to sign packages when creating them
Change-Id: Ib0d776143b787b0862d6797aaca4a1edc9865da2
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: Mehdi Fekari <mfekari@blackberry.com>
2013-04-29 09:49:42 +02:00
Tobias Nätterlund
42eeb6ecdc BlackBerry: Refactor parsing of blackberry-* processes output
This moves the parsing of the output from all blackberry-* processes
used in the deploy steps, and when launching the application on the
device, to a separate class. Errors and warnings coming from those
processes will have issues added to the Issues tab.

Change-Id: I455b26d77301bdfe93ece2c8470526ed174a50ed
Reviewed-by: Mehdi Fekari <mfekari@blackberry.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
2013-04-29 09:27:29 +02:00
Lorenz Haas
7ae31f2ea9 CppEditor: Add quick fix for "Assign to Local Variable"
Adds a local variable which stores the return value of a function call
or new expression.

Task-number: QTCREATORBUG-9052
Change-Id: I1fccbdd5b9f28c8409a4b0fa24610e406de61b24
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-04-29 08:49:31 +02:00
Orgad Shaneh
a8ff5e8343 Fix link error with MSVC
CppTools.lib(CppTools.dll) : error LNK2005: "public: virtual __thiscall
  QFutureInterface<class TextEditor::HighlightingResult>::~QFutureInterface<class TextEditor::HighlightingResult>(void)"
  (??1?$QFutureInterface@VHighlightingResult@TextEditor@@@@UAE@XZ) already defined in moc_cppeditor.obj
   Creating library ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.lib and object
   ..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.exp..\..\..\lib\qtcreator\plugins\QtProject\CppEditor.dll :
   fatal error LNK1169: one or more multiply defined symbols found

Change-Id: Id53a0f8a99dbd18a9cbdf2af57b4f3970f5c41a3
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-04-29 08:38:02 +02:00
hjk
feeff29f22 Revert "FakeVim: Focus current editor before handling command line command"
This reverts commit 316f15cb3b6ce8aedaaee5a954da9d99b1090350

Wrong branch, should be master.

Change-Id: I700e8802300b8e1e093f73ea11e07c4cdb03b81a
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-29 08:25:15 +02:00
hluk
12d1a184b1 FakeVim: Focus current editor before handling command line command
Action like "Switch Header/Source" need to be performed in correct
context, in this case "CppEditor.C++Editor". But while command line is
focused the context is global.

Change-Id: Id9aa24641508a08f5196d314edc74644780c26d9
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-29 08:07:33 +02:00
Petar Perisin
81f62d3673 Git - use proper label text in LogChangeDialog
Change-Id: Ie0b9f06f411308e93dc29aa7025a960fc640a359
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-29 00:33:29 +02:00
Petar Perisin
3ce2b605d9 Git: Fix canceling interactive rebase
If the LogChangeDialog is closed without selecting any
commit, interactive rebase started with '^' as the commit.

Change-Id: I6292c700f61e5d075953ecc371d0916342096801
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-29 00:33:17 +02:00
Thomas Hartmann
2d9343b264 QmlDesigner.SubComponentManager: use ModelManager for import paths
The model manager provides the import paths defined in .pro
and .qmlproject files.

Change-Id: I80846ace70f940400407cc25cec9ad6fac8b6fec
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-04-28 19:03:33 +02:00
Thomas Hartmann
963a1015b7 QmlDesigner.MetaInfo: adding requiredImport for Controls
This was missing for a couple of items and creating confusion,
if another item of the same name was used.

Change-Id: I88746a3e700940404047cc25cec9ad6fac8b6fcc
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2013-04-28 18:58:01 +02:00
Petar Perisin
571672c414 Git - capitalize command in progress in topic
This makes command stand out. Before it looked like regular branch.

Change-Id: I9f47e42392bb70cbd9ceec94fd4d55dc15c95b02
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-28 08:29:19 +02:00
Petar Perisin
d425d6485e Git - move ensureStash inside StashGuard
this is where stash popup question belongs

Change-Id: Ib3435f12eacd0b932ba2a67ecd728e5a41c0c64a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-26 14:13:12 +02:00
Erik Verbruggen
09ea0d235a C++: moved the CppPreprocessor into its own file.
Change-Id: I399d667a1fccb376fadbd6ab8fbba243e86d8f4b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-04-26 13:56:08 +02:00
Sergey Shambir
516116c5a5 PythonEditor: added class wizard
Contains SourceGenerator class which was also used to generate app
template in PythonProjectManager; it saved for future use.

Change-Id: I3d44e6d33a3beabc73030acdd6740edf1745e485
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-04-26 13:30:48 +02:00
Erik Verbruggen
ecacaab7a4 C++: model-manager clean-ups.
Change-Id: I59fdb898e270af0fcc18e79ae922e119504ef10e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-04-26 13:00:43 +02:00
Erik Verbruggen
0c27b27658 C++ Detach the CppEditor from code-model internals.
- Moved document update handling into CppTools.
- Moved semantic info calculation into CppTools.
- Moved semantic highlighting into CppTools.

Change-Id: I253861bf074a64b1f657f7a4a8e6583871b5285f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-04-26 12:47:06 +02:00
Daniel Teske
e8d59fb76f RemoteLinuxRunConfiguration: Remove unused enum
Change-Id: I7f1074eafe622e4d409359ce3cc81065d48d42c2
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
2013-04-26 11:40:26 +02:00
Aurindam Jana
f3469d1dc8 QmlEngine: Use QUrl::localFile() instead of checking scheme
Change-Id: I5c48b74a99b12d7e319198ec8f352ff493259df8
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
2013-04-26 10:34:16 +02:00
Eike Ziller
28ec7caa7b Correct some default shortcuts for Mac
This makes them align to the other "editor split" shortcuts.

Change-Id: I0b300ae495ffa17062a0a52b148f61015b965c29
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-04-26 10:31:11 +02:00
Nikolai Kosjar
52825a91f9 C++: Preprocessor: Do not add configurationFileName() to the seen files
After processing configurationFileName() the first time, it was added to
the already seen files (m_included). Thus, on parsing further files, it
was ignored and with that all the project defines.

Task-number: QTCREATORBUG-9107
Change-Id: Ia4817dfa3b30ed27d142f7f3eeb6f099d0653441
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-04-26 09:55:32 +02:00
Christian Stenger
f3056f04b2 Squish: Fix script for multiline strings
If object names are scattered across multiple lines the
script failed to get the whole object name and failed therefore.
This patch corrects this behavior.

Change-Id: Ia97e2577162b77ae1b72fdd51dda4c74c59abe25
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-04-26 09:10:51 +02:00
hjk
ef7b5bb224 GenericHighlighte: Code cosmetics
The GenericHelper structure is not needed.

Change-Id: I21f394fb81c237958559a61fe4fdef26fe93dee0
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-26 07:52:13 +02:00
Petar Perisin
6f4f47c8d8 Git - topLeveldir in ChangeSelectionDialog
So ChangeSelectionDialog does not show full path of current file, but
just path to top level dir

Change-Id: I4960009216afc0564b009bbf4f89b676cb92c4df
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2013-04-26 07:13:17 +02:00
Mehdi Fekari
b91462aad1 Qnx: Generate SSH keys in a separate thread
This avoids locking up the UI while the keys are being generated

Task-number: QTCREATORBUG-9078
Change-Id: I2229811298f07a6c402d39dd83773fb453d2b2ae
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
2013-04-25 18:51:21 +02:00
Daniel Teske
ba315fa750 IRunControlFactory::displayName: Remove unused function
It's never used.

Change-Id: I11cc85b1d9a5944017b8a03738877f91cfe5d11f
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-25 18:33:51 +02:00
Kai Koehne
cb857b47a2 Debugger: Change default gdb engine breakpoint "path usage" to "full"
Setting breakpoints by file name and line does not work robustly when
using gdb, with neither the full path, nor with just the baseline. Since
typically one of the options work, Creator offers a per-breakpoint choice
of which approach to use. Traditionally, using the full path broke more
often, so the default was "short". Lately (gdb 7.3+) using the full path
seems to be more robust, so the default should be changed. Manual
overriding to "short" is still possible.

Change-Id: I9e857c86a63964bdacf9bebc5444ea752e5974f8
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-04-25 18:08:22 +02:00
Eike Ziller
21e7a6ecca Let EditorView handle mouse click (setting current view) itself
Moves the handling from SplitterOrView to EditorView.

Change-Id: I187093ff4570709bac111c4cb4cf901c971a1973
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-25 17:51:12 +02:00
Eike Ziller
e4082646e6 Use EditorView instead of SplitterOrView where we mean it
API like findNextView were returning SplitterOrView, which is a bit
cumbersome and not necessary. Return EditorView directly instead.
Also make EditorManager::currentView an EditorView, since it couldn't be
anything else anyhow.

Change-Id: I6e8741d8bf7a98e46dd583ab929d01a9b8f89338
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-25 17:51:05 +02:00
Eike Ziller
6dbe374b50 Editor manager: Invert logic for finding view for editor
Instead of traversing the split hierarchy down from the root, including
all the branching etc, traverse the hierarchy up from the editor.
Faster in all cases, and works automatically when we introduce multiple
"roots" later

Change-Id: I50eb0fac683fb249c7ff4a63ba9fecea8d652873
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-25 17:50:47 +02:00
Eike Ziller
456a56bc16 Remove unused methods from EditorManager and related classes
Change-Id: If8b9e6cf07e39ea473b80de13c4be9dce6c2ce2e
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-25 17:50:32 +02:00
Eike Ziller
33c0570cc7 Make editor views know their SplitterOrView
That gets rid of a whole lot recursive searching for
SplitterOrView *findView(EditorView *)

Change-Id: I4cba09d1e88ba99072a6585b17bce83ef4cad2aa
Reviewed-by: David Schulz <david.schulz@digia.com>
2013-04-25 17:50:11 +02:00
Friedemann Kleint
56c873fdac QNX: Fix startup warning about "program not set" from QProcess.
Change-Id: I962768b47f21558f122d1b679b3583899fc3c0be
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-25 17:49:20 +02:00
Fawzi Mohamed
eac15b5e7d qmljs: add explicit -relocatable flag to qmlplugindumper and use it
This will allow changing the default to nonrelocatable.

Change-Id: I80746a3e70f94040a407cc25cec9ad6fac8b6fec
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-04-25 17:21:45 +02:00
Eike Ziller
cba1da4678 Qbs: fix rpaths and install names (mac)
Needs updated qbs submodule for rpath fixes and installNamePrefix.

Change-Id: I6428409f34e87f299ff2d8c72268bee72c1ba2f2
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-04-25 16:47:26 +02:00
Robert Loehning
e793779589 Squish: Added test for renaming files
Task-number: QTCREATORBUG-8335
Change-Id: Ie9ca9018194c955f099b7d99ab46ba26303e354d
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-04-25 16:12:46 +02:00
Aurindam Jana
753dd85162 DesktopDevice: Hide Device Configuration widget
Change-Id: I0c522cdb20e7c08761fdb4bc0e588e5e8789895b
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
2013-04-25 15:21:30 +02:00
Fawzi Mohamed
31223a55b7 qt4project/qmljs: get info from all subprojects
removes an incorrect break that limited the number of nodes processed
in updateQmljsCodeModel.

Change-Id: I82c254721ee92765cb65840c428ea08e97f587c6
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
2013-04-25 14:04:33 +02:00
Kai Koehne
a6cd9abcd1 QmlDesigner: Fix gcc compilation warnings
Fix warnings from gcc 4.8.

Change-Id: If4fc311ea021d1014141cb123f1d765577efd831
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
2013-04-25 12:52:12 +02:00
Christian Stenger
d799bf31be Squish: Changed handling of workarounds
If a bug is closed for master but still valid for the current working
branch the workaround won't be executed if started with
performWorkaroundIfStillOpen(). This leads to wrong results.
The new approach is less automatic but more error-proof.

Change-Id: If33c920be08e33c0fb2ccc4faec4ae8ff0d0f95d
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
2013-04-25 12:39:50 +02:00
Aurindam Jana
60c08de2c6 QmlInspector: Do not show unnamed properties
Task-number: QTCREATORBUG-9069

Change-Id: If0fa1824c9f4b09d9ea4f1c470fdeb18c2836b36
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
2013-04-25 11:34:04 +02:00
Aurindam Jana
fc194f82e1 Valgrind: Fix IP port detection
Listen on either IPv4 or IPv6 localhost but not both.

Change-Id: I0fcec59fa1c21346582343ad30a9448e3ee9440f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-04-25 09:33:36 +02:00