summaryrefslogtreecommitdiffstats
path: root/src/qdbus/qdbusviewer/qdbusviewer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* qdbusviewer: Replace string-baced invokeMethodIevgenii Meshcheriakov2023-05-161-1/+1
| | | | | | | Use the variant with compile-time type checking. Change-Id: Ib7da65963af8ff11a39d52ab447ebd91c5ec7404 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* qdbusviewer: Use modern string literalsIevgenii Meshcheriakov2023-05-161-32/+40
| | | | | | | | | | | Replace most uses of QLatin1String by _L1, QStringLiteral by _s. Use tr() for user-visible strings. Reorganize the loop inside QDBusViewer::dumpMessage() slightly to make it less sensitive to translation changes. Change-Id: Id987bd0efe06d0efd80c57982c3c2a6a031c369a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QDBusViewer: Use QDBusServiceWatcherIevgenii Meshcheriakov2023-05-161-12/+5
| | | | | | | | | | | | | | This replaces connections to deprecated signal QDBusConnectionInterface::serviceOwnerChanged() and avoids a warning being printed at run time. QDBusServiceWatcher emits the serviceOwnerChanged() signal when services are registered and unregistered, so this one signal replaces 3 signals from QDBusConnectionInterface. Fixes: QTBUG-28618 Change-Id: Ic2afa25e8c6438ead93c75b4c8864e557ba70714 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-061-1/+1
| | | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I234704ba429750ddee958a82f6c941d041da0653 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Port from container::count() and length() to size()Marc Mutz2022-10-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | This is a semantic patch using ClangTidyTransformator as in qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8: auto QtContainerClass = anyOf( expr(hasType(cxxRecordDecl(isSameOrDerivedFrom(hasAnyName(classes))))).bind(o), expr(hasType(namedDecl(hasAnyName(<classes>)))).bind(o)); makeRule(cxxMemberCallExpr(on(QtContainerClass), callee(cxxMethodDecl(hasAnyName({"count", "length"), parameterCountIs(0))))), changeTo(cat(access(o, cat("size"), "()"))), cat("use 'size()' instead of 'count()/length()'")) a.k.a qt-port-to-std-compatible-api with config Scope: 'Container', with the extended set of container classes recognized. Change-Id: I95f6410e57a6a92b1cf91bbedfbe3d517cab6b44 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* qdbusviewer: disable set/get value when not availableTasuku Suzuki2022-09-091-0/+4
| | | | | | | a property cannot be writable Change-Id: I6024903337abf7c88b334a9238d1aa4100a32a0a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* DBusViewer: Drop margins from nested layoutIvan Tkachenko2022-06-031-0/+1
| | | | | Change-Id: I63809ab9b9b06667b87686a6f87eac57712980c2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-191-27/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I5335388c0472b0ee554234fc7eca60769e504660 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* qdbusviewer: Display errors for dbus method callsAlexander Volkov2021-07-291-4/+8
| | | | | | Fixes: QTBUG-68600 Change-Id: I65c9084e55f514e3cd2c4e72743eae1b94d82501 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* qdbusviewer: Show message on successful connect to signalAlexander Volkov2021-07-281-2/+5
| | | | | | | Make it clear to a user whether a connection to a signal has been made. Change-Id: I731934afce4e529f1328c97962e0934bb21a228a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* FIx another warning from deprecated QVariant usageVolker Hilsheimer2020-11-271-1/+1
| | | | | Change-Id: I659cea26c8e07b1270830990fa9c5ae764b89abf Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Fix build after changes in qtbaseVolker Hilsheimer2020-09-291-4/+2
| | | | | | | Change it to ranged for at the same time. Change-Id: I5477f1f14594565bba6a70dd0ba9b1bbb02f54db Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Fix QMetaType-related deprecation warningsFriedemann Kleint2020-09-091-6/+7
| | | | | Change-Id: I562c37e04b966714424f78f20cfb0aee1ebb5254 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add missing overrideAlexander Volkov2020-05-201-1/+1
| | | | | Change-Id: Id2b1c4b9e7cb24b427f7e3de4b00d1472c67cb5a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Update dependenciesFriedemann Kleint2020-03-311-7/+9
| | | | | | | | | | | | | | Adapt to qtbase/bcaff2b06fc46fce8a3ae6d613c025c8d097229c merging the QAction classes, qtbase/d975ad4ed728553b765c61f38c1e0df899187cf5 merging the QShortcut classes and qtbase/d975ad4ed728553b765c61f38c1e0df899187cf5 moving the Undo framework to QtGui. Clean up include directives. Change-Id: Ib825f17284390c103d5ac2ae1f2c8fe65a534f1a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* qdbus/qtattributionsscanner: Remove usages of QRegExpFriedemann Kleint2020-03-251-2/+1
| | | | | | | | It will be moved to Qt5Compat; avoid the dependency if possible. Change-Id: I6ede684047702928e20345df8119f54bf0233cb8 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* qdbusviewer: Disable service list editionAlexander Akulich2018-04-031-1/+14
| | | | | | | | | Service name edit does not actually change a service dbus name, so subclass the QStringListModel and explicitly remove IsEditable flag to make names read-only. Change-Id: Idca77f449eb07cdebb0012cb2fb6e9039be303b6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* qdbusviewer: Focus on service tree view on service list return pressedAlexander Akulich2018-04-031-0/+17
| | | | | Change-Id: I901fb3da48fe77d7cc3edc7bad4f0f9033f2c85a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* qdbusviewer: Set focus to services filter on showAlexander Akulich2018-04-031-0/+5
| | | | | Change-Id: Icbb7259c57b53560f7b9e1a6e039171debc26114 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* qdbusviewer: Focus on services view on filter editor return pressedAlexander Akulich2018-04-031-0/+10
| | | | | Change-Id: I337ae8b179d00075310bbba6235652c635c73557 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* qdbusviewer: Port to Qt 5 signals & slot connection syntaxAlexander Akulich2018-04-031-17/+13
| | | | | Change-Id: I23eb27bbca316fa4149983a239e38443b03647f1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* foreach cleanup in the the smaller toolsFriedemann Kleint2016-12-221-1/+1
| | | | | | | | | Replace foreach by C++ 11 range based for in kmap2qmap, makeqpf, pixeltool, qdbus, qtattributionsscanner, qtdiag, qtplugininfo, winrtrunner and the simpletextviewer example. Change-Id: I079da84c47a1584526f4fe188377c0262419a44d Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Updated license headers and license testsAntti Kokko2016-06-101-17/+12
| | | | | | | | | | | | | From Qt 5.7 -> tools & applications are licensed under GPL v3 with some exceptions, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new GPL-EXCEPT header instead of LGPL21 one (in those files which will be under GPL 3 with exceptions) License header tests also updated to match current headers. Change-Id: Ia6bdacaa3c5bbc9d31334e1a0cabfe502a484dc4 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Properly display new lines in QDBusViewer message dumpsAlexander Schlarb2015-10-261-0/+2
| | | | | | | | | Properly convert newline characters (sent by a remote dbus process) to HTML line breaks ("<br/>") to make sure they are displayed correctly. Change-Id: I4b02602cef9ee1d3827458c262c59dd7070a894b Task-number: QTBUG-5403 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Make service list in QDBusViewer interactively sortableAlexander Schlarb2015-10-261-10/+22
| | | | | | | | | | | Replaced the service selection ListView with a GridView. This allows the service list to be interactively sorted in both ascending and decending order. [ChangeLog][qdbusviewer] Service list is now sorted. Change-Id: I32e4fd651f74e6f71bb157e4a17c681575bd6528 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Sort items in QDBusViewerAlexander Schlarb2015-10-261-2/+3
| | | | | | | | | | | Before this commit QDBusViewer does not sort the list of service names it shows in the service list. This makes it pretty hard to find to desired service in the service list. By sorting all services using a custom SortFilterProxy the usability of QDBusViewer is greatly improved. Change-Id: I464addf0988ee020e4efbb4486ec6a4a11c36b6d Task-number: QTBUG-5403 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Update copyright headersAntti Kokko2015-02-141-7/+7
| | | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I7f14f408e04c5c4f73a913fae153adcffbebe38f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.4' into devFrederik Gladhorn2015-01-191-16/+0
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ifdb0e36fde8a63e1a768f1c876521e908810244d
| * Doc: moved doc D-Bus Viewer from qttools to qtbaseNico Vertriest2015-01-021-16/+0
| | | | | | | | | | | | | | | | Inserted in patch 102784 into qtdbus-index.qdoc in qtbase Task-number: QTBUG-43537 Change-Id: I6142aabe7675dd401de950958d20952e63a3ee4b Reviewed-by: Martin Smith <martin.smith@digia.com>
* | qdbusviewer: Restore the window size and state on startupAlexander Volkov2014-12-121-2/+18
|/ | | | | | | | | Save the window size, maximization state and state of splitters on exit and restore these settings on startup. Change-Id: Ibe26b09cc97ffc2fef17e6e8e2b804324dae7002 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-09-251-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 - Removed LICENSE.GPL Change-Id: I23ef9591f4d9054e0b6a252ba7767baf4189aeab Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* qdbusviewer: Extract MainWindow classAlexander Volkov2014-09-241-13/+0
| | | | | | | | This refactoring is a preparation for saving/restoring window settings. Change-Id: I22b4c4947437e90f986390a4dd7c14d50a0f02d6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* add "Clear" to context menu of log viewer in qdbusviewerTasuku Suzuki2014-01-101-3/+2
| | | | | | Change-Id: Id4da5fcfdbe462e22a4227699c3e13ecf0cd363a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* QtDBus-tools: Remove module includes.Friedemann Kleint2013-02-011-1/+4
| | | | | Change-Id: I4b6754c7bd513a2c479c52a0428bd7eee857c6ca Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-2/+2
| | | | | | | Change-Id: I9b11dc8309c9739955e3acea12b564d6ad608f59 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Try harder in matching the method signatureDirk Mueller2013-01-071-2/+10
| | | | | | | | | | | | | In cases where the Propertiesdialog has no specific Implementation for a dbus data type, it creates a regular QLineEdit. In such cases, qdbusviewer then tried to call the method with the arg set to a string instead of the real datatype (for example uint64), which usually does not work. We can be more clever and try to implicitely convert the user input to the right datatype, which makes the invocation succeed. Change-Id: Idbb5c667496e14922efb7d195e11fafbb880c61c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-251-25/+25
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: If89e41b25a242ff376eacdf8790957bcf499cc66 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Prefer QMetaType over QVariant during a type information query.Jędrzej Nowacki2012-05-241-3/+3
| | | | | | | | | As a side effect the patch probably fix special case, when an interface wants a variant and one of the parameters has to be converted. Before QVariant::nameToType was returning only builtin types ids. Change-Id: I473a9bcbd9249acf7c232492fa62c53de3ff5c71 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Adapt to Qt5 meta-object changesKent Hansen2012-04-181-2/+2
| | | | | | | | | | | | QMetamethod::signature() is now called methodSignature(), and it returns a QByteArray. The new function QMetaMethod::isValid() should be used to check whether a method is valid, rather than relying on signature() to return a 0 pointer as before. Change-Id: Ifc163497293213177ef80a4ea8e4e5577513f52a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Use "qt-project.org" instead of "trolltech" in the resource systemhjk2012-03-281-1/+1
| | | | | | Task-number: QTBUG-23272 Change-Id: I383e66291fc2c5bb431792c1b93a152a9b02462e Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ib4b7580dda53886247ad6eb10d17d8e67c51980d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-231-1/+1
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I3841a7c154b90b73fe8f498fda035c8b3545c692 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-061-2/+2
| | | | | | Change-Id: I89fb3609f49f9a4f1e7d658b05e212febcb14c94 Sanity-Review: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix compilation due to header changesSergio Ahumada2011-12-181-2/+2
| | | | | | | | | | | | - Fix QtWidgets/QAbstractProxyModel => QtCore/QAbstractProxyModel - Fix QtWidgets/QItemSelection => QtCore/QItemSelection - Fix QtWidgets/QItemSelectionModel => QtCore/QItemSelectionModel - Fix QtWidgets/QSortFilterProxyModel => QtCore/QSortFilterProxyModel - Fix QtWidgets/QStringListModel => QtCore/QStringListModel Change-Id: Id410fb4c6ae89d32eac3242b9a8cbfb3442b0555 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fixed compile (Qt::escape -> toHtmlEscaped())Rohan McGovern2011-09-301-2/+2
| | | | | | | | | | Fixed compile after source-incompatible qtbase change b863df7de926448cf0057272c16da04b7cfb11ee . Change-Id: I400ead7bd2ec80057dba9c4c3163427ffa4b7c4c Reviewed-on: http://codereview.qt-project.org/5830 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Merge remote-tracking branch 'origin/refactor' into masterLars Knoll2011-09-131-1/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/assistant/help/help.pro src/designer/src/components/formeditor/formwindow.cpp src/designer/src/components/formeditor/formwindow_dnditem.cpp src/designer/src/components/formeditor/layout_propertysheet.cpp src/designer/src/components/formeditor/qdesigner_resource.cpp src/designer/src/components/lib/lib.pro src/designer/src/components/signalsloteditor/signalsloteditor.cpp src/designer/src/components/signalsloteditor/signalsloteditor_tool.cpp src/designer/src/components/widgetbox/widgetbox_dnditem.cpp src/designer/src/components/widgetbox/widgetboxtreewidget.cpp src/designer/src/lib/lib.pro src/designer/src/lib/shared/qdesigner_formbuilder.cpp src/designer/src/lib/shared/qdesigner_propertysheet.cpp src/designer/src/lib/shared/shared.pri src/designer/src/plugins/qdeclarativeview/qdeclarativeview.pro src/linguist/lupdate/qdeclarative.cpp src/linguist/shared/profileevaluator.cpp src/linguist/shared/qph.cpp src/linguist/shared/ts.cpp src/qtconfig/mainwindow.cpp src/shared/qtgradienteditor/qtcolorline.cpp src/shared/qtgradienteditor/qtgradientwidget.cpp sync.profile Change-Id: I53f0ce4efae4179257cbf3aab87e1af12c3aa4ff
| * QtTools: Widget library split.Friedemann Kleint2011-05-241-1/+16
| |
* | Update licenseheader text in source files for qttools Qt moduleJyri Tahtela2011-05-241-17/+17
|/ | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Initial import from the monolithic Qt.Qt by Nokia2011-04-271-0/+521
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12