Commit Graph

53 Commits

Author SHA1 Message Date
Orgad Shaneh
81fc8ff210 Doc: Remove \fn lines adjacent to functions
They are unneeded, some of them are unmaintained

Change-Id: I0ad87e152d8e2328b486b2f904f7cf9613004afe
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2013-06-05 10:07:14 +02:00
Oswald Buddenhagen
1fda2111d4 Merge remote-tracking branch 'origin/2.6'
Conflicts:
	src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in
	src/plugins/debugger/qtmessageloghandler.cpp
	src/plugins/debugger/qtmessagelogwindow.cpp
	src/plugins/madde/maemodeployconfigurationwidget.cpp
	src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp
	src/plugins/qmldesigner/designercore/include/widgetqueryview.h
	src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp
	src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp
	src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h
	src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
	src/plugins/qnx/bardescriptormagicmatcher.h
	src/plugins/qt4projectmanager/profilekeywords.cpp
	src/plugins/remotelinux/deployablefilesperprofile.cpp
	src/plugins/remotelinux/deployablefilesperprofile.h
	src/plugins/remotelinux/deploymentinfo.cpp
	src/plugins/remotelinux/deploymentsettingsassistant.cpp
	src/plugins/remotelinux/profilesupdatedialog.cpp
	tests/auto/icheckbuild/ichecklib.cpp
	tests/auto/icheckbuild/parsemanager.cpp
	tests/auto/icheckbuild/parsemanager.h

Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
2013-01-31 16:25:33 +01:00
Robert Loehning
298531e370 Incremented year in copyright info
Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-01-29 16:27:03 +01:00
Orgad Shaneh
29a93998df Remove braces for single lines of conditions
#!/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: hjk <qthjk@ovi.com>
2013-01-08 10:48:18 +01:00
Orgad Shaneh
a95c00f77c Zeroconf: Compile with QT_NO_CAST_FROM_ASCII
Change-Id: If23da8a3ae819875c627d40375b908eb0ea73e3c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2012-12-11 08:31:14 +01:00
hjk
386ca7c8dd Adjust license headers
Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
2012-10-05 17:12:56 +02:00
Leena Miettinen
a791fee251 UI text: make zeroconf error message clearer
Fix typo.

Change-Id: Iee76e5f7a0c09d4e1d0f7c08a8c80f5bad9e5109
Reviewed-by: hjk <qthjk@ovi.com>
2012-10-01 15:04:43 +02:00
Robert Loehning
7dd051ecce Fixes in translated strings
Change-Id: I4b554d925102fcd7c503276c1e085e8f438b0e3c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-08-01 16:06:40 +02:00
Friedemann Kleint
686c085062 tr()-Fixes for 2.6.
- Fix typo.
- Fix invalid usage of tr() in ServiceBrowser.
- Remove plural form in Debugger.
- Give ElfReader a proper tr()-context.

Change-Id: Id3172f0e093fd5fbe328061d32d2ba7fcfebaca7
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-07-30 18:45:13 +02:00
Eike Ziller
e0e8cf3ada Contact -> qt-project.org
Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-07-19 13:23:21 +02:00
Yuchen Deng
234a6454aa fix cross build use mingw-w64 for Windows
Change-Id: Ie808c819fb0a26f9b846d2dcc3a04c2096626dc4
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
2012-07-05 07:51:20 +02:00
Bradley T. Hughes
c751ad2b33 Compile with clang's libc++
When using clang's libc++, unistd.h is not pulled in automatically
anymore (like libstdc++ does). Include unistd.h on UNIX explicitly
instead.

Change-Id: I21dae6ab2446aca258877e9a2ebe1f7d0a4ef59f
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-06-19 11:16:38 +02:00
Fawzi Mohamed
63f0a14fe5 zeroconf: add already prepared address strings to services
Change-Id: I16cfb5fd6a2c715760556ab9e14daf99941fcdd1
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-05-31 17:17:27 +02:00
Fawzi Mohamed
30a6beaec0 zeroconf: adding a signal to track initial startup
* improving error messages
* track startup
Change-Id: Iba5a293b03b2d46facfbc7a9827d0d71eb7ba152
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-05-29 11:00:02 +02:00
Fawzi Mohamed
f995ebc89f zeroconf: ensure that a broken pipe does not crash creator
Change-Id: Ib8e408d3d7323728333ac8615240684e7f86867f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
2012-05-14 17:09:17 +02:00
Fawzi Mohamed
cf4ecad4bc zeroconf: quick startup if the embedded daemon is running
test if the embedded lib works before avahi, to avoid slow
startup on repeated startups when the avahi lib is present
but the daemon does not work.

Change-Id: I5c07ed3513c51065b2cb164e6131b7b85236acfd
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-04-24 11:43:24 +02:00
Fawzi Mohamed
c863662bb2 zeroconf: fixe bug in enactServiceChange triggerig
Change-Id: I7c1348bfb4f36770a7fdd78c839e25e9e5673342
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-04-19 15:28:49 +02:00
Fawzi Mohamed
85ce5aba62 zeroconf: improve handling of hasMoreUpdates
Change-Id: I49723f2abfe52982d767d5b1fa6461e1dd223a41
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-04-12 17:31:46 +02:00
Fawzi Mohamed
c45d49b027 zeroconf: add version to avahi lib
Change-Id: Iedb59b74b1f9950abb0ca1d5adaaa594a465c0fd
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-04-12 15:36:10 +02:00
Fawzi Mohamed
4955c33b66 zeroconf: interface->networkInterface, to make VC++ happy
Change-Id: Ie5f5d11dc31dca78e6ba0b7d6e17a8feae816090
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-04-12 11:00:37 +02:00
Fawzi Mohamed
5a0e88f9b2 zeroconf: autorefresh timer repetitive -> recursive
Wait 5s+ time to start the query instead ot 5s seconds in total
(should be better on slow machines, as the waiting time is not shortened).

Change-Id: I11104b314c4388a0f8ab84fca662f2e57e6e9b6a
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-04-11 15:42:44 +02:00
Fawzi Mohamed
cc378a4c32 zeroconf: add QNetworkInterface interface to Service
Change-Id: Ia357f21086cf0df7144b0602acc392d3f8a22348
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-04-11 15:40:50 +02:00
Fawzi Mohamed
8bdbbab157 zeroconf: avoid updates immediately after a refresh
Change-Id: Icb1afb741fb288208666c6cc54f88a7848532305
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-04-10 10:47:37 +02:00
Fawzi Mohamed
e6565936e0 zeroconf: fix race condition in triggerRefresh
Change-Id: I771647613bec198884f591af4fa48a16d94ecab4
Reviewed-by: Alexander Lenhardt <alexander.lenhardt@nokia.com>
2012-04-05 16:30:07 +02:00
Fawzi Mohamed
154364bab7 zeroconf: improve startup of mdnssd
give enough startup time, while still quickly bailing out when quitting

Change-Id: I628621099e9ead4defc4613615ccb5e8303ff2df
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-04-03 17:26:11 +02:00
Fawzi Mohamed
12236050b9 zeroconf: clean up destruction/startup
* fixed race condition in destruction (hopefully ;)
* cleaned startup status testing in MainConnection
* faster shutdown/startup, less blocking in embedded lib getProperty

Change-Id: I3e9062fa59465523feb47ba195cf4ef465d2c16c
Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
2012-04-02 12:02:18 +02:00
Fawzi Mohamed
8abf7b9aa1 zeroconf: avoid double triggering of hadFailure
Change-Id: Ia4e2da06714b06fc7a98a0acb6d3868fc4bafca9
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
2012-03-26 19:31:49 +02:00
Eike Ziller
7931159c09 Merge remote-tracking branch 'origin/2.5'
Conflicts:
	src/libs/qmljsdebugclient/qmlprofilereventlist.cpp
	src/libs/zeroconf/servicebrowser.cpp
	src/plugins/qmlprofiler/qml/MainView.qml
	src/plugins/qmlprofiler/qmlprofilerengine.cpp
	src/plugins/qmlprofiler/qmlprofilertool.cpp
	src/plugins/qmlprofiler/qmlprofilertraceview.h
	src/plugins/qmlprofiler/tracewindow.cpp

Change-Id: Ib5e7579efffe74f2bf6871690d1e398e1062f986
2012-03-21 09:57:56 +01:00
Daniel Molkentin
c68e41d021 ZeroConf: Fix uninitialized values reported by valgrind.
Change-Id: I521b43a5348599609c7d34c4bc1ad471e640bc44
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-03-19 15:47:23 +01:00
Fawzi Mohamed
a9e7e07b45 zeroconf: windows support, avahi improvements, less messages
* support windows without apple bonjour installed
* avahi with autorefresh
* less spurious updates (messages when nothing actually changes)
* quickly give up on connecting to daemon the first time
* added startedBrowsing signal

Change-Id: I8a29d94040fa6ffae318c98782120123093d6616
Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
2012-03-14 13:56:28 +01:00
Fawzi Mohamed
ff7fb31484 zeroconf: fix registering of types (adding Qlist of ErrorMessages)
Change-Id: I0017bec5adfb4aceb95871d018ca71083fac8f29
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2012-03-05 14:39:26 +01:00
Fawzi Mohamed
f175437493 zeroconf: fix triggerRefresh (but at cost of polling every 5 sec)
Change-Id: Ifc08553f7469947f657d938dbaae3f0011c51482
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
2012-02-27 16:37:30 +01:00
Erik Verbruggen
3fa55b7ab9 Removed module names from #include directives.
Getting the #include directives ready for Qt5. This includes the
new-project wizards.

Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
2012-02-15 16:24:46 +01:00
Fawzi Mohamed
454e2c3928 zeroconf: change hadError, export printing functions
This changes the hadError signal replacing it with errorMessage and hadFailure.
code using it will need fixing

Change-Id: Idf271b1d166242788e1059cdd019aa9473a09d74
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
2012-02-08 10:16:42 +01:00
Friedemann Kleint
be8c7fc356 Zeroconf: Compile with MinGW.
Change-Id: I01a24619728adc8f6f8bad6a8b50693c381600b1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-02-02 16:27:00 +01:00
Denis Mingulov
a36d587ccf Fix non-needed usage of QString's fromLocal8Bit() and fromUtf8()
QString::fromLocal8Bit() and QString::fromUtf8() are much more slower
than an obvious QString::fromLatin1() and QLatin1String(), so this
commit changes some places where these functions are really not
needed.

QString::fromLatin1() is used in case if QString object is used
immediately (something like QString::fromLatin1().arg()),
QLatin1String is used otherwise like in other places (for example,
QPixmap(QLatin1String("..."))) - to allow to use default QString
constructor and work with QT_NO_CAST_FROM_ASCII.

Change-Id: Ib6eb1c61e9cb35c7c5b7569fea77c5e41d32621a
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-30 17:50:45 +01:00
hjk
2931a499e6 Long live the king!
Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
2012-01-26 19:55:36 +01:00
tjenssen
0b64fe80dc fix zeroconf on windows
Change-Id: I54e5c284d7fe109fe2fe6b0f50b25acfc3868a71
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-01-26 09:36:40 +01:00
Fawzi Mohamed
d967856b60 zeroconf: IPv6 support, triggerRefresh, better avahi support
Change-Id: If4e5e284d7ee109fe2fe6b0f50b25acfc3868a72
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-01-25 17:47:29 +01:00
Jarek Kobus
bf197d7a12 Compile fix for Mac 10.5.8 gcc 4.0.1
Change-Id: I1dfadc781485649bbc9c5b6c952297cdea80d95b
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2012-01-09 10:34:17 +01:00
Friedemann Kleint
2d141afe7a Qt Creator: Compile with Qt 5.
Introduce #ifdefs for incompatible changes in QAtomicPointer
and QAtomicInt.

Change-Id: Ice03a2cc8b3aed174e549827cfcf737764c41642
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2011-12-12 13:51:43 +01:00
Eike Ziller
d1d85ba912 more s/info@qt.nokia.com/qt-info@nokia.com/
Change-Id: I5eecac63f45cf5bd192bd2ee42370d6338c1ec9f
Reviewed-by: hjk <qthjk@ovi.com>
2011-11-11 10:53:34 +01:00
Fawzi Mohamed
243a677110 zeroconf: fix wrong QMutexLocker usage
Replacing function declaration with local variable definition.

Change-Id: I8fd9be2bd83bab9a61c93361ce1da517315f0495
Reviewed-by: Bill King <bill.king@nokia.com>
2011-11-09 09:34:40 +01:00
Fawzi Mohamed
6ea6906022 zeroconf: codestyle
Trying to avoid long lines and fixing other spacing issues.

Change-Id: Ie0024743ef66c52a7922be046a8f7d8701a94ad6
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-31 11:47:36 +01:00
Fawzi Mohamed
3c4f6cd41b zeroconf: correct txt record handling, small avahi fixes
Change-Id: I660c12773a39655eec45d5ab3e00f70f5590dda7
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-31 11:44:56 +01:00
Fawzi Mohamed
25c983a448 zeroconf: initLib/setDefaultZConfLib related cleanups
Renamed initLib to setDefaultZConfLib.
Use shared pointers for libs: avoid small leak for each call to initLib.
Renamed nativeLib to more logical dnsSdLib.
Print in ~ServiceBrowserPrivate only if DEBUG_ZEROCONF.

Change-Id: Icf76bba490c2ece46769253555b28c1220b44c23
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-28 13:44:47 +02:00
Fawzi Mohamed
63ff12e051 zeroconf: async startBrowsing
Asynchronous startBrowsing (quick return), and avoid infinite
retry if daemon starts but stops due to insufficient privilegies.

Change-Id: I2b4ef5b5ad9ab0a581d2ac169eeac3ba73df5376
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-27 15:29:04 +02:00
Fawzi Mohamed
7ebbc12bde zeroconf: fix windows building
Correct exports, fixed commented out ifdef, moved socket including to a separate header.

Change-Id: Iadb6f58e2c3dbadee411fc0df7c7519c1d90309d
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
2011-10-18 15:53:24 +02:00
Fawzi Mohamed
bb5c27c180 zeroconf: native avahi, and working fallbacks
* supports avahi through its native interface
* starts embedded deamon if found
* tested all fallbacks on ubuntu
* Service is a normal object now
* several smaller improvements
Change-Id: I36288ec6fcefb64a60b6284e4d86d4b589ba37b5
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2011-10-18 11:50:32 +02:00
Christian Kandeler
7f94c10279 ZeroConf: Interface improvements.
Change-Id: I1966d375167612675ac78a40de4060ff1810c9d4
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
2011-10-12 16:39:11 +02:00