Commit Graph

71 Commits

Author SHA1 Message Date
Tim Jenssen
7b70c30750 Utils: fix that utils can be used in tests
Change-Id: I1f530f3f63e22719de6faed7f55c66282d4044e8
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2016-11-02 12:25:20 +00:00
Nikolai Kosjar
1f4af6a778 Utils: Specify LIBS in utils-lib.pri
...so that unittest.pro compiles on MSVC2013 without duplicating the LIBS line.

Change-Id: I2a4f9cab65620ea28692d17352e92ababc47e4fd
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-11-26 09:16:32 +00:00
Nikolai Kosjar
66ada45ce5 Utils: State Qt dependencies in the *.pri file
...to avoid compilation errors for projects that include the *.pri file.

This fixed the compilation of tests/unit/unittest/unittest.pro.

Change-Id: Ia50322d3a7b7a9d05b7f17239e772f013ffe2ff5
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-10-13 16:05:16 +00:00
Tobias Hunger
95b0dc9120 Utils: Move template file processing from projectexplorer to utils
I want to use it e.g. for snippets and the TextEditor plugin may
not depend on the ProjectExplorer, so the code has to move.

This adds a dependency on QtQml to Utils, but that does not really
matter since that is loaded into QtCreator anyway.

Change-Id: Iada9f40b2966a1fc41631ab33da09812ad67d967
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-10-12 11:53:01 +00:00
Christian Kandeler
80712e80a3 Utils: Fix process stub look-up.
The path where the tools are located has changed.

Task-number: QTCREATORBUG-14732
Change-Id: Idb404b291ef651d2c0f03bce454b9aa0c0319183
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-07-16 07:44:38 +00:00
Daniel Teske
387f746768 AppMainWindow::raise: Use Qt's activateWindow
The work around doesn't seem to be needed anymore. The case that
is described is a Creator hitting a breakpoint, but not being raised.
This works for me on both gnome and kde with this workaround removed.

Removing the workaround also fixes:

Task-number: QTCREATORBUG-13845
Change-Id: I4f751c701a17ee39679b951b9cf7d52a68552d9f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2015-04-15 12:59:40 +00:00
Eike Ziller
17ac107d71 Utils: Move source & header from utils.pro to utils-lib.pri
Change-Id: I4d473950a1352c07b0f35bc84475a3364336eeda
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-22 16:28:25 +01:00
Eike Ziller
5e60848942 Utils: Add round progress indicator widget
Change-Id: Ia3a51fb99ae6cec1b7b3c135d272e92d503128dc
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-01-15 17:45:08 +01:00
Eike Ziller
78b642eb0c Remove pre-Qt 5.3.1 code paths from main Qt Creator pro and pri files
Change-Id: I71bee691a2b9bad7dbdb4ca9c0a938d4313305f7
Reviewed-by: hjk <hjk121@nokiamail.com>
2014-08-26 11:00:57 +02:00
David Schulz
0eea7ca90b Utils: Fix getting a case sensitive path on windows.
Until now we used GetShortPathName which relies on having 8.3 paths.
This short path names are converted into long names which also corrects
the case. The 8.3 paths can be manually deactivated via the fsutil. When
this is done GetShortPathName does not return a convertible path string.

If the case isn't corrected on windows we are opening multiple editors for
the same file. For example, when reaching a breakpoint when using cdb or
opening an entry from the issue panel generated by the msvc compile.

Task-number: QTCREATORBUG-11199
Change-Id: Ic04055685e0e9bbe0d45cde20563929b7370695d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2014-01-31 12:02:17 +01:00
Oswald Buddenhagen
7176a8ee64 make sure Xlib is in our dependencies
Task-number: QTCREATORBUG-11107
Change-Id: I5d0bc2cb34a1c02e2c310df4bd40fa9df198292d
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2014-01-07 13:44:46 +01:00
Eike Ziller
9292955f8a Fix the main window raise workaround for Qt5.1
Change-Id: I17d09c70053661166784657954929ccf3b5366ec
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-05-14 19:08:11 +02:00
Oswald Buddenhagen
06acd82ada derive TARGET from QTC_{LIB,PLUGIN}_NAME
the information is redundant now

Change-Id: Icc8c8b4ace11538d45c6c9e1dbe5a7976f4743e1
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-04-03 14:37:56 +02:00
Oswald Buddenhagen
9631fb88cf centralize assignment of TEMPLATE = lib
Change-Id: I4025539f3875e79f03743ba9ed3fd09cd31b998d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-02 17:13:17 +02:00
Oswald Buddenhagen
7ce3362288 automatically include libs' and plugins' _dependencies.pri files
Change-Id: I25645bb625b467c6f9d895ff89a70acd6a25683e
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
2013-04-02 12:19:31 +02:00
Eike Ziller
5ac721dd58 Merge remote-tracking branch 'origin/2.6'
Conflicts:
	qtcreator.pri
	qtcreator.qbp
	src/libs/utils/utils.pro

Change-Id: I6f0aba746f915d8c51dcf9372f7d9f593562fc2b
2012-09-11 14:02:03 +02:00
Daniel Molkentin
e6d68320c8 Libs to link must be lowercase to work with mingw xcompile.
Change-Id: I066ea0e0ecb6c0dddc86230b74b1c492bb63e002
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-09-06 16:37:44 +02:00
Oswald Buddenhagen
64677d2e87 move statements to the right project file
there is no apparent reason to deviate from the standard of this library.

Change-Id: Ifffd2e7ebd3efdf4639e6ba616aff31da6c29b97
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-08-31 09:26:28 +02:00
Oswald Buddenhagen
91d81443ed make Utils::HostOsInfo have zero runtime cost
Change-Id: I2d5bf2324a81bedcbe6ea0bb8d8a0eead94e52e4
Reviewed-by: hjk <qthjk@ovi.com>
2012-08-31 08:43:28 +02:00
Christian Kandeler
e669f05406 Utils: Introduce HostOsInfo class.
The class' member functions are intended to be used
instead of the Q_OS_* macros in all contexts where
the latter are not syntactically required.
This lowers the likelihood of changes made on one
platform breaking the build on another, e.g. due to
the code model missing symbols in #ifdef'ed out code
when refactoring.

Change-Id: I4a54788591b4c8f8d589b8368a6c683d4155c9fa
Reviewed-by: hjk <qthjk@ovi.com>
2012-08-27 17:00:03 +02:00
Christian Kandeler
53a1087d13 Move SSH support into a dedicated library.
It does not belong into libUtils, which is a collection of small
unrelated utility classes.

Task-number: QTCREATORBUG-7218
Change-Id: Id92b9f28678afec93e6f07166adfde6550f38072
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-05-22 10:51:53 +02:00
Kai Koehne
af205ab25d Add TcpPortsGatherer to utils
Can be used to check (non-intrusively) which TCP ports are still available.

Change-Id: I61300f6b7215cb2c0e4a3e6135de305cfd38b5a9
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2012-03-02 18:37:39 +01:00
Friedemann Kleint
622cac50f4 Move QtConcurrent library into Utils.
It causes a conflict with the new QtConcurrent library
of Qt 5 and is quite small.

Change-Id: Ib97ab6daf8f67a88300cf03f044ba3593a4cd270
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-09 12:33:10 +01:00
Friedemann Kleint
1d1d2f0b74 Compile with Qt 5.
- QtQuick1 renaming.
- Start on qtconcurrent split (pending renaming of Qt Creator's
  qtconcurrent library).
- QWinEventNotifier is a public class in Qt 5.
- Metatype system: Classes need to be known.

Change-Id: I5582e7cc2777bf791a08b049262217055769c80f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-02-08 15:47:00 +01:00
Eike Ziller
e2b0835b58 Merge remote-tracking branch 'origin/2.4'
Conflicts:
	qtcreator.pri
	src/libs/qmljs/qmljstypedescriptionreader.cpp
	src/plugins/analyzerbase/startremotedialog.ui
	src/plugins/qmldesigner/designercore/include/rewriterview.h
	src/plugins/qt4projectmanager/makestep.cpp

Change-Id: If9d15a8c8f73106585fd8ce6ac47c253a40af6b1
2011-11-25 09:48:25 +01:00
Friedemann Kleint
b0eff051c1 Add Qt 5 libraries to .pro files.
Make Qt Creator compile with Qt 5 after using fixqt4headers.pl.

Change-Id: I74ca51d562f49378b40103b79848f5dd3b11e77e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2011-11-24 12:02:30 +01:00
Oswald Buddenhagen
c344032bd5 centralize setting of "CONFIG += shared dll" for libraries
"dll" and "shared" set each other, but too late to actually test for it
in the project files, so include both.
note that this will slightly modify the build of some of our imported qt
solutions.

Change-Id: I0bd4f41a68fd160f8e87eb0a0fa66096fe70ef3e
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@nokia.com>
2011-11-18 10:40:09 +01:00
mingw-android
1b9af316a0 MinGW compilation fixes for private headers being used
Merge-request: 2199
Change-Id: I7ccf9e54cd0dd004bed12ecb90ab887c424ec476
Reviewed-on: http://codereview.qt.nokia.com/2219
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2011-08-24 10:37:26 +02:00
Friedemann Kleint
1f13482f69 Yet another compile fix for MinGW/Windows.
Change-Id: Iea0d998de254d26e15a8703812b3aad8399721a8
Reviewed-on: http://codereview.qt.nokia.com/2777
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-08-09 13:44:37 +02:00
Joerg Bornemann
566d29f8b3 Use qtcbuildhelper for starting the build process on Windows.
Task-number: QTCREATORBUG-4558

Change-Id: Ib6f5be80f034135bbd8c45a22e223e758cc7e7b1
Reviewed-on: http://codereview.qt.nokia.com/2555
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
2011-08-03 14:02:41 +02:00
con
c3d75e66d1 Fix compilation and rpath with the ssh class move. 2011-02-17 16:52:06 +01:00
Milian Wolff
94548a1e1f move src/plugins/coreplugin/ssh to src/lib/utils/ssh
Merge-request: 253
Reviewed-by: hjk <qtc-committer@nokia.com>
2011-02-14 16:34:17 +01:00
con
e7ad89ffd8 Refactor the "proxy action" behavior of Command to Utils::ProxyAction
A generic action that acts as a proxy for another (changeable) action,
like it is used for mostly all of the visible actions in Qt Creator
through the action manager.
2011-01-12 15:54:15 +01:00
Christian Kamm
2a4209db41 Fix for compiling utils library statically.
Done-with: Thomas Hartmann
2010-08-10 14:13:27 +02:00
Kai Koehne
792722690c Allow apps to statically compile contents of src/lib/utils
Add utils-lib.pri, along the lines of e.g. cplusplus-lib.pri
2010-08-09 15:25:37 +02:00
Lasse Holmstedt
8918cff941 Moved CrumblePath to Utils
This widget has little to do with the QML debugging library, and will be
reused inside the QML JS Inspector UI as well.
2010-07-30 16:09:29 +02:00
Denis Mingulov
5af6f15f7c Utils::NavigationTreeView is created - as a base class for any Navigation Widget (Side Bar) tree view
Merge-request: 2167
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2010-07-16 11:24:02 +02:00
Leandro Melo
123c10a77b Re-write of cpp hover handler and tooltip integration with qtdocs. 2010-07-12 14:29:02 +02:00
Thorbjørn Lindeijer
20636f529b Unified the three fake tooltip copies
Reviewed-by: mae
2010-04-15 15:08:51 +02:00
Jarek Kobus
b790e04e51 Introduce a new Wizard class, capable of showing progress items. 2010-03-29 16:19:04 +02:00
Oswald Buddenhagen
75b42f18d8 Merge remote branch 'origin/1.3'
Trailing whitespace removal re-applied manually.
2010-01-29 22:50:23 +01:00
Oswald Buddenhagen
a6ca348636 remove trailing whitespace
doing it in 1.3 as well to avoid possible later conflicts
2010-01-29 21:33:57 +01:00
Daniel Molkentin
77761b37c3 Make it possible to set the external file browser on unix.
xdg-open is not available everywhere and fails when no DE is running.

Reviewed-By: Oswald Buddenhagen
2010-01-04 15:30:04 +01:00
Friedemann Kleint
bf73896928 SettingsDialog: Polish
Use QGridLayout to align header label and QStackedLayout for the pages
(in code, as it is not available in Designer).
Derive new class FilterLineEdit for filter widgets based on a modified
version of FancyLineEdit and use that in settings.
Rubber-stamped-by: con <qtc-committer@nokia.com>
2009-11-27 13:54:27 +01:00
Friedemann Kleint
7cbbada3f0 Wizards: Improve list of files displayed.
Extract the common root directory and display in separate
line. Use the routine from
the cvs plugin for that, moving it to stringutils.h.
2009-11-25 12:34:56 +01:00
Roberto Raggi
e43bd82afb Renamed TextWriter to ChangeSet 2009-11-24 11:30:26 +01:00
Christian Kamm
317533b520 Add TextWriter from QML. 2009-11-18 14:49:45 +01:00
con
6cffd56494 Move the IWelcomePage to the place it belongs. 2009-10-28 15:57:53 +01:00
Friedemann Kleint
f13d4a104a Autotests: Compile on Windows
Reviewed-by: Roberto Raggi <qtc-committer@nokia.com>
2009-10-26 17:26:53 +01:00
dt
a97dcb53d1 Tweaks to the project page. 2009-10-01 14:25:27 +02:00