summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/qdesigner_propertycommand.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Qt Designer: Port away from deprecated QVariant::TypeFriedemann Kleint2020-10-281-15/+17
| | | | | Change-Id: Ie0f7364454047ca7c9715f8d48814d71334a3cde Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Adapt to latest changes in qtbaseJarek Kobus2020-09-031-14/+14
| | | | | | | | | Adapts to changes in: 1. QPalette / QFont regarding mask resolving. 2. QVariant::canConvert expecting now QMetaType instead of int. Change-Id: Ief7405a1639e4b060a13ee63cfe3ad13d77e66ab Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Update dependenciesFriedemann Kleint2020-03-311-4/+6
| | | | | | | | | | | | | | 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>
* Qt Designer: Prepare for deprecation of classes in Qt 6Friedemann Kleint2019-11-191-1/+1
| | | | | | | | | - Use auto for QStringRef. - Use auto for QList and iterators, refactoring some loops. Task-number: QTBUG-79896 Change-Id: I065d5b6d49404e51a10a7e1d7373eff41f9cb032 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Fix Qt API usageFriedemann Kleint2019-11-151-3/+3
| | | | | | | | | | | | Replace: empty() by isEmpty() front()/back() by constFirst()/constLast(), preventing detaching Streamline some code. Task-number: QTBUG-79896 Change-Id: Ic3f8414db79a83a30b55369a9352f332b41aa621 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Fix some clang warningsFriedemann Kleint2019-06-051-1/+1
| | | | | | | | | | | | | - else after return/break - Misleading indentation - Use reference for const-copies - Mixing const/non-const iterators - Unnecessary pointer check before delete - Unhandled enum value Change-Id: Iecc684d4acf4284b2cd6b1dbd14e392db7ea580c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Qt Designer: Fix clang warnings about class structure/definitionsFriedemann Kleint2019-06-051-1/+1
| | | | | | | | | | - Add missing override - Use "= default" for trivial constructors/destructors - Use Q_DISABLE_COPY/MOVE - Fix some function parameters Change-Id: Iaed3b6a85bdfd9e9e431746f77589a9e2029120a Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Replace 'typedef' by 'using'Friedemann Kleint2019-06-051-5/+5
| | | | | | | | Apply Fixits by Qt Creator with some amendments (use Qt standard typedefs for QWidget/QObjectList and QOverload for slots). Change-Id: Icf0600d8e5381e83ae8037895c07a09d7e6b481a Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Introduce nullptrFriedemann Kleint2019-06-051-1/+1
| | | | | | | Apply Fixits by Qt Creator with some amendments. Change-Id: Idc948b1132fbb61c3ae6706b71659e2e8790fbc6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: introduce member initializationFriedemann Kleint2019-06-111-6/+0
| | | | | | | | | | | Fix warnings emitted by clang, use default constructors where applicable. Initialize remaining member variables about which clang warns about missing initialization in the constructor. Change-Id: Ic23a1f36f7507dc728ca6daf0d2067727125c0a9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Fix some remaining clang-tidy warningsFriedemann Kleint2018-09-031-2/+4
| | | | | | | | | | - Use QHash instead of QMap for pointer type keys - Use const ref to avoid copies - Fix C-style casts - Add parentheses to macro parameters Change-Id: I74c060fc32c6f7761582d81d219455b1e58c6ff9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Fix clang-tidy warnings about Qt usageFriedemann Kleint2018-07-311-6/+14
| | | | | | | | | | | - Use multi-arg form of QString::arg() - Fix static method calls - Prefer QFileInfo::exists() - Use isEmpty() for containers instead of checking size() - Use QOverload Change-Id: I31e92f77d0fa377932c1369afe2503abc8ecceac Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Fix Qt include statementsFriedemann Kleint2018-05-231-20/+20
| | | | | | | | | | | | Change #include <QtCore/QDebug> to #include <QtCore/qdebug.h> according to the coding style. Change-Id: I2ba2e99d003f245c61ce836acb5af3208e1e0b29 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Support id-based translationsFriedemann Kleint2018-01-181-3/+15
| | | | | | | | | | | | | | | - Introduce a per-string id attribute and a global attribute indicating whether the form uses ids. - Introduce a new "id" subproperty in the property editor which is used depending on the form setting. - Add a settings to the form settings dialog. [ChangeLog][Qt Designer] Qt Designer now supports id-based translations. Task-number: QTBUG-34610 Change-Id: I9b0aa36fba0543960212a257e6aa2d9c23ab84c5 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Qt Designer: Use typedefs QObject/WidgetList where appropriateFriedemann Kleint2017-04-131-2/+2
| | | | | | | Remove the TabOrder typedef in MetaDataBaseItem. Change-Id: I75852ee6b6a71cee7fbbbd82653cd9069894f421 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Remove foreachFriedemann Kleint2017-01-101-1/+1
| | | | | | | Use range based for. Change-Id: I61a51aad99a9b2a20263fa3fa5ed991ac899ff2e Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Qt Designer: Remove use of Java-style list/vector iteratorsFriedemann Kleint2016-10-311-12/+4
| | | | | | | Replace by range-for or algorithms. Change-Id: I16e1f883bf1a774f46cb0c51fb16ce6d7d80b04e Reviewed-by: Jarek Kobus <jaroslaw.kobus@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>
* Qt Designer: Enable reset property for multiselection.Friedemann Kleint2015-04-081-1/+13
| | | | | | | | | | | | | | | | When working with a multiselection in the property editor, the reset button was previously only enabled when the property was modified on the selected/current widget. With this change, reset will always be enabled when the property is modified in one of the widgets of a multiselection. Unmodified widgets will be filtered out when initializing the command. The intended use case is mainly to enable conveniently clearing all minimumSize/maximumSize constraints of a form by doing Ctrl+A to select all and then do reset on the property. Change-Id: Ideab87cab79e9404941d5594653f12c13515c1ae Reviewed-by: Jarek Kobus <jaroslaw.kobus@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>
* 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>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | | 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>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-251-24/+24
| | | | | | | | | 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>
* QtTools: Fix usage of deprecated QCoreApplication::translate.Friedemann Kleint2012-05-211-5/+5
| | | | | Change-Id: I7208cfd337c779f9f274315cf87dbc8853afcbaf Reviewed-by: Friedemann Kleint <Friedemann.Kleint@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>
* Qt Designer: Add translation-attributes to string list properties.Friedemann Kleint2012-01-201-0/+30
| | | | | | | | | | | | | - Add translation parameters to XML schema for ui. - Introduce PropertySheetStringListValue to property sheet, load & save code, add to property sheet and property editor. Task-number: QTBUG-8926 Task-number: QTBUG-20440 Change-Id: Ib5e9e2e9ba603bb68984a102e3c3fc8ff1cb4df0 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-061-1/+1
| | | | | | Change-Id: I89fb3609f49f9a4f1e7d658b05e212febcb14c94 Sanity-Review: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Designer: Fix string conversion warnings/introduce QStringLiteral.Friedemann Kleint2011-09-271-30/+30
| | | | | | | | on this occasion. Change-Id: Ib80dfdf8aae162b02500293a83e3bc12941f7406 Reviewed-on: http://codereview.qt-project.org/5637 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Merge remote-tracking branch 'origin/refactor' into masterLars Knoll2011-09-131-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-6/+6
| |
* | 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
* Designer: BC cleanup of QDesignerIntegrationInterface.Friedemann Kleint2011-05-131-1/+1
| | | | | | | | | | | | | | Add features enumeration similar to that of QDesignerFormWindowInterface. Add missing virtuals for IDE integration. Make a cleaned-up version of Qt Designer's implemenation public as QDesignerIntegration such that IDE integrations can use an integration class derived from it. Add a bit of documentation, marked as \internal. Reviewed-by: Jarek Kobus <jkobus@trolltech.com>
* Designer: Move PropertySheet::isEnabled to base class.Friedemann Kleint2011-05-111-3/+2
| | | | Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
* Initial import from the monolithic Qt.Qt by Nokia2011-04-271-0/+1503
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