aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/documentwarningwidget.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove usages of deprecated APIs of QLayoutSona Kurazyan2019-09-021-1/+1
| | | | | | | | | | Replaced: QLayout::setMargin() -> QLayout::setContentsMargins() QLayout::margin() -> QLayout::getContentsMargins() Task-number: QTBUG-76491 Change-Id: If28ef6910b3afe5d04e4746b74f9362a3e3b3c8e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlDesigner: Make error message selectableThomas Hartmann2019-03-201-0/+1
| | | | | | | | | | There is no immediate solution for the status bar, but texts from status bars are generally not selectable and cannot be copied. Task-number: QDS-518 Change-Id: Ide699c7ad26642ac716ab4ce7b315263d60facae Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: ModernizeAlessandro Portale2018-07-251-3/+3
| | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: Ic42b5c59fed5a4a01853138542d8156471e86f58 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Improve translated strings and make them consistentRobert Loehning2018-01-221-1/+2
| | | | | Change-Id: I88a6e6ceaa44b22539449037faa788caa9f349fc Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Merge remote-tracking branch 'origin/4.5'Oswald Buddenhagen2017-12-211-1/+1
|\ | | | | | | | | | | | | | | Conflicts: src/plugins/qmakeprojectmanager/desktopqmakerunconfiguration.cpp src/plugins/qmlprofiler/qmlprofilertraceclient.cpp Change-Id: I94647f59d7a9df48168ac066555afe80f5f9b91f
| * QmlDesigner: fix crashTim Jenssen2017-12-191-1/+1
| | | | | | | | | | | | Change-Id: I402a6701e8339150c908e0e3eca014f3c8ee727a Task-number: QTCREATORBUG-19468 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | Replace manual signal blocking/unblocking with QSignalBlockerTobias Hunger2017-10-041-3/+4
|/ | | | | | Change-Id: Ibb59fab4e37d045e506c5a8172b6f5cbb955b028 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Allow to translate checkbox textMontel Laurent2017-02-211-1/+1
| | | | | Change-Id: Ib1fdf79293f094015655bb6fb2798c780513a846 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Simplify writing a settingThomas Hartmann2017-01-191-3/+1
| | | | | Change-Id: I4e9589622f40a5ac14b88f0914f4f6819259d4a6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Simplify reading a settingThomas Hartmann2017-01-191-2/+1
| | | | | Change-Id: I754b3ac1635699e5d9ceab376ae70752a966082f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: rename RewriterError -> DocumentMessageTim Jenssen2017-01-101-7/+7
| | | | | Change-Id: I8cbb1b8b83ec10c33e416de96a09281208be8773 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Polish error handling for integrated text editorThomas Hartmann2017-01-101-5/+2
| | | | | | | | | | | | | | | The integrated text editor requires a couple of fixes and features in the error handling. The errors are now handled by the model and not the document management anymore. The text editor does not get disabled if there is an error. Instead we show the error in a status bar. The form editor is blocked if there is a QML an error and we show the error message inside the form editor. Change-Id: I4bfb9b33b09e444ec1de31dd531ce83b32cbcf88 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: Remove transparency from DocumentWarningWidgetThomas Hartmann2016-10-071-0/+11
| | | | | | | | | | The ToolTipBase has alpha in some themes (e.g. Flat Dark). If the background of the DocumentWarningWidget is transparent, this looks buggy. We remove the transparency by blending the color against the background color. Change-Id: I4a25a30700b3ee1e9e8d23d0b0bad09f297f0605 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* QmlDesigner: fix gotoCode in error/warning caseTim Jenssen2016-10-051-6/+15
| | | | | | | | The QmlDesignerPlugin::hideDesigner() jumped again to selected node, which came after the DocumentWarningWidget already set it. Change-Id: I6e84342208c6405e8b25b516cd411b30bc48fcdb Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* improve static initializersTim Jenssen2016-09-231-1/+1
| | | | | Change-Id: I304fdd6627f01fc216c84930da607127c52409d9 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* QmlDesigner: readd the flag to fix a crashTim Jenssen2016-07-291-0/+3
| | | | | | | | | Also this is necessary to be at the right middle position of QtCreator. Change-Id: I691002b7ed5a29a1ea2094f62aba121b2a2e458e Task-number: QTCREATORBUG-16673 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* QmlDesigner: Cleaning up DocumentWarningWidgetThomas Hartmann2016-07-191-4/+0
| | | | | | | | This patch also simplifies DocumentWarningWidget. Task-number: QTCREATORBUG-16539 Change-Id: I64a715c2a0eaf12a8515a59566e7b22c86ad8928 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* QmlDesigner: Fixing DocumentWarningWidgetThomas Hartmann2016-06-231-1/+5
| | | | | | | | * Connect was missing * The check box contains the opposite truth value of the setting. Change-Id: If6ef86e0e1107ce537ee05ddf983131f65ee9e20 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* QmlDesigner: merge QmlWarningDialog and DocumentWarningWidgetTim Jenssen2016-05-201-28/+141
| | | | | | | | | | - fixed cases where the user got the one and the other dialog - not only the first error is shown, the user can browse Task-number: QTCREATORBUG-15772 Change-Id: I27786b0e4f9c987646a69d8d7d9ff33e3702587a Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* QmlDesigner: improve warning widget codeTim Jenssen2016-05-101-13/+30
| | | | | | | | | | - the "move" code needs to be inside the warning widget, this also fixes the problem of wrong position at startup - the patch removes knowledge about the DesignModeWidget and uses a signal Change-Id: I9a861ab955d16e85d7af36f1b56ddb82578b8da4 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* QmlDesigner: move DocumentWarningWidget to extra fileTim Jenssen2016-04-291-0/+84
Change-Id: I6ea87a224565b77ff42f187461094ca258dcdb01 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>