aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/basetreeview.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utils: Replace foreach with range-based forOrgad Shaneh2020-06-161-2/+3
| | | | | Change-Id: I9aeea9c029ffc56cbadc04edd20e9b35b154f986 Reviewed-by: hjk <hjk@qt.io>
* Avoid warning on empty expressionshjk2019-07-231-1/+1
| | | | | | | | For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/4.9'Orgad Shaneh2019-04-071-1/+15
|\ | | | | | | Change-Id: I7d1912cd5c4d824fd40d3454c5f1bb796f2c21d8
| * TreeView: Fix mapping to source models in case ProxyModels are involvedhjk2019-04-021-1/+23
| | | | | | | | | | | | | | Visible e.g. in context menu handling of the debugger's module view. Change-Id: I342ed262c9e3dcdf98590003a7930cb8ef4ca0d2 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Fix Qt 5.13 deprecation warning about QFontMetrics::width()Friedemann Kleint2019-02-151-4/+5
| | | | | | | | | | | | | | | | | | Replace by QFontMetrics::horizontalAdvance(), fixing: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] Change-Id: I9991ffefe6e87e872dc35ba291d562e06b28ca64 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | Utils: Forward BaseTreeView mouse move events to modelhjk2019-02-131-0/+8
|/ | | | | | | Similar to what press and release do already. Change-Id: I787d266c8c8cd430114b2448adfb2379a5795a47 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix sizing of debugger columnsAaron Barany2019-01-081-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | Added span column property to BaseTreeView. This takes an index to a column that will span remaining space not explicitly taken by the other columns. This listens to resizing of the tree view and columns that are manually resized to keep the sizes consistent. The stack view now once again uses the StackView class, which now sets the function column as the span column. This will adjust the column size the first time stack frame contents are encountered. It will not resize automatically until it's re-created (the next debug session) so it doesn't undo custom resizing. This also restores the ability to toggle stack addresses. Some obsolete parts of this class were removed as part of retrofitting it for the current state of the debugger. Stack, breakpoint, and thread views now resize remaining space for the function column rather than empty space at the end. This is generally the most important field when debugging and can get very long, especially in C++. Task-number: QTCREATORBUG-21763 Change-Id: I821c83d1d951f3311d7fa9fcddcbdeedfeed1573 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* BaseTreeView: Robustifyhjk2018-07-241-6/+10
| | | | | | | Check for selection and model before accessing them. Change-Id: If8e8e43f00c5812bce7a21639c3d3bee459117f3 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Utils: ModernizeAlessandro Portale2018-07-201-9/+9
| | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I8d44d9405011a1878353baf9325f7af90b89db02 Reviewed-by: hjk <hjk@qt.io>
* BaseTreeView: Also pass background single clicks to modelshjk2018-02-061-1/+10
| | | | | | | | Now that they are no longer used for column resizing the models might actually assign some custom functionality. Change-Id: I04d24641f555de0478c9803b4bfde70779747abf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* BaseTreeView: Disable resizing columns by clicking on the backgroundhjk2018-02-051-3/+5
| | | | | | | | | | | | Resizing columns by clicking on the empty space seems to be controversial, perhaps because it also has the side-effect of resetting the column resize behavior to "automatic" Let's try without for a while. Task-number: QTCREATORBUG-19169 Change-Id: I0b480d6857dba9f247fa3537273073e3c65712d2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: Let tree items request collapsinghjk2018-01-311-2/+6
| | | | | | | In addition to the already existing expansion request. Change-Id: I5a60a2ae6d71bdd1fcf44af5554ca45212d9d5bd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Delay saving of treeview column sizes while resizinghjk2017-11-271-1/+12
| | | | | | | | | | | | | | | | | | | As discussed in the linked report, QSettings behavior was changed to aggressively attempt to sync on each ::setValue() call, therefore causing excessive disk thrashing when used regularly. This is arguably a regression on the QSettings side, specifically as the documentation suggests some kind of delay and therefore merging of quick sequences of setValue calls (as implemented previously), but since this opinion is not generally shared, Qt applications need to implement that behavior now by themselves. This patch here does that for the reported case in Creator (and uses the opportunity to delay to 2 secs, which should be sufficient for the case) Change-Id: I04af0cd1a042abcf7113b5dde5c36e0338f7acb3 Task-number: QTCREATORBUG-15594 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Utils: Separate rendering out of ProgressIndicatorTobias Hunger2017-07-271-1/+1
| | | | | | | | | I want to reuse the rendering of the progress indicator outside of a widget. Change-Id: Icaeeb798578ad838693b68556bf2193c4ba45cfa Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Utils: Remove old style connectionOrgad Shaneh2017-03-211-25/+5
| | | | | Change-Id: I725a1611cd5547e51d3acb3802938c91cbf32cf4 Reviewed-by: hjk <hjk@qt.io>
* BaseTreeView: Make resizeColumns() publicly accessiblehjk2017-02-211-6/+6
| | | | | | | | Simplifies the only used code path through the model and a custom signal. Change-Id: I9bbab725cdd122b7261a8f14b101786e38e61e57 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Set the BaseTreeView default icon size to 16Alessandro Portale2016-09-281-1/+1
| | | | | | | Most of our icons are 16x16px, let's not squeeze them. Change-Id: I5070b904ded95fcb76c44b0ec430302331d0fe64 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TreeView: Set current index by selectionOrgad Shaneh2016-09-211-1/+2
| | | | | | | | | | ... on KeyPress event and others. This fixes e.g. deleting a watch expression by pressing the Delete key. Change-Id: Ie0eabf20fb4aeee8349d0282aa4378835d07bc43 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Debugger/Utils: Fix index passing of ItemViewEventshjk2016-09-151-27/+45
| | | | | | | ... are restore 4.1 double click behavior in breakpoint view. Change-Id: If211b9708c0173e940e4b02a9b7b27f4ed78c868 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Debugger: Remove some uses of semi-global currentEngine()hjk2016-07-181-9/+77
| | | | | | | | | | Make use of recent TreeModel improvements in various tool views, push more operations into the engine- owned data models, specifically context menu creation. Change-Id: I479c97102b9fb81611c6461c6df1cec59295179a Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Debugger: Re-enable initial population of register viewhjk2016-03-151-0/+6
| | | | | | | | | Registers are only retrieved if the view is visible. When it becomes first visible, an extra poke to initiate population is needed. Change-Id: I67c3e166ce98e6405707f8457ebd32d0d1939229 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Debugger: Adjust watcher column size to locals contenthjk2015-03-191-10/+25
| | | | | Change-Id: Iec6b4478862578397ee2b3953cd06730bd0db121 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Utils: Remove assert when hiding progress indicator.David Schulz2015-03-161-2/+2
| | | | | | | | Just return silently when trying to hide a progress indicator that wasn't initialized by showProgressIndicator. Change-Id: If8c68dbc9de481c8b1cc6b8dd38c9d8e70b00065 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Merge commit '3c85058694ee2e41658d17f524fb48f0b187d2fe'Eike Ziller2015-02-121-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/tooltip/tipcontents.cpp src/libs/utils/tooltip/tipcontents.h src/plugins/android/androiddeployqtstep.cpp src/plugins/baremetal/baremetalconstants.h src/plugins/baremetal/baremetaldevice.cpp src/plugins/baremetal/baremetaldevice.h src/plugins/baremetal/baremetaldeviceconfigurationwidget.cpp src/plugins/baremetal/baremetaldeviceconfigurationwidget.h src/plugins/baremetal/baremetaldeviceconfigurationwizard.cpp src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.cpp src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.h src/plugins/baremetal/baremetalplugin.cpp src/plugins/baremetal/baremetalplugin.h src/plugins/baremetal/baremetalruncontrolfactory.cpp src/plugins/baremetal/baremetalruncontrolfactory.h src/plugins/cppeditor/cppcodemodelinspectordialog.cpp src/plugins/cppeditor/cppdoxygen_test.cpp src/plugins/cppeditor/cppdoxygen_test.h src/plugins/debugger/breakpointmarker.cpp src/plugins/debugger/debuggeritemmodel.cpp src/plugins/debugger/debuggeritemmodel.h src/plugins/debugger/loadcoredialog.cpp src/plugins/genericprojectmanager/cppmodelmanagerhelper.cpp src/plugins/projectexplorer/addnewmodel.cpp src/plugins/projectexplorer/addnewmodel.h src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp src/plugins/qmlprofiler/abstracttimelinemodel.cpp src/plugins/qmlprofiler/abstracttimelinemodel.h src/plugins/qmlprofiler/notesmodel.cpp src/plugins/qmlprofiler/qml/CategoryLabel.qml src/plugins/qmlprofiler/qml/MainView.qml src/plugins/qmlprofiler/qml/Overview.js src/plugins/qmlprofiler/qml/Overview.qml src/plugins/qmlprofiler/qml/TimeDisplay.qml src/plugins/qmlprofiler/qml/TimeMarks.qml src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp src/plugins/qmlprofiler/sortedtimelinemodel.cpp src/plugins/qmlprofiler/sortedtimelinemodel.h src/plugins/qmlprofiler/timelinemodelaggregator.cpp src/plugins/qmlprofiler/timelinemodelaggregator.h src/plugins/qmlprofiler/timelinerenderer.cpp src/plugins/qmlprofiler/timelinerenderer.h src/plugins/qmlprojectmanager/QmlProjectManager.json.in src/plugins/texteditor/findinfiles.cpp src/plugins/vcsbase/vcsconfigurationpage.cpp src/shared/qbs src/shared/scriptwrapper/interface_wrap_helpers.h src/shared/scriptwrapper/wrap_helpers.h tests/auto/qmlprofiler/abstracttimelinemodel/tst_abstracttimelinemodel.cpp tests/system/suite_debugger/tst_debug_empty_main/test.py tests/system/suite_debugger/tst_qml_js_console/test.py tests/system/suite_debugger/tst_qml_locals/test.py Change-Id: I67540b648f8b162496f4aa606b04d50c7c9125c6
| * Update LicenseEike Ziller2015-01-161-6/+6
| | | | | | | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* | BaseTreeView: Modernize connectionshjk2015-01-211-21/+12
| | | | | | | | | | | | Change-Id: Ie8de8a5c59f16a22419d1ee8382ef151a65d0b07 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* | Add easy way to add progress indicator overlay to a widgetEike Ziller2015-01-161-1/+30
| | | | | | | | | | | | | | | | | | Adds a way to 'attach' a progress indicator to a parent, so it automatically keeps itself centered on the parent. Also adds shortcut methods to BaseTreeView. Change-Id: I962a9300d89ef5d1e03298d670e0cee781d3a4e5 Reviewed-by: hjk <hjk@theqtcompany.com>
* | BaseTreeView: Fix connection.hjk2015-01-121-1/+1
| | | | | | | | | | | | | | | | Strings are not typo-safe. Change-Id: I9fd0e0574fb51ea995037c7b22ff2a87b95f5965 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | BaseTreeView: Add a way to let models request item expansionhjk2015-01-121-7/+25
|/ | | | | Change-Id: Ib964af4411fe7665dcb0947b52fc100eacba6a16 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.2'Eike Ziller2014-10-141-7/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/ipaddresslineedit.cpp src/libs/utils/logging.h src/plugins/analyzerbase/AnalyzerBase.pluginspec.in src/plugins/android/Android.pluginspec.in src/plugins/android/androiddeploystep.cpp src/plugins/android/androiddeploystep.h src/plugins/android/androiddeploystepfactory.cpp src/plugins/android/androiddeploystepwidget.cpp src/plugins/android/androidpackagecreationfactory.cpp src/plugins/android/androidpackagecreationstep.cpp src/plugins/android/androidpackagecreationstep.h src/plugins/android/androidpackagecreationwidget.cpp src/plugins/android/androidpackagecreationwidget.h src/plugins/android/javafilewizard.cpp src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/baremetal/BareMetal.pluginspec.in src/plugins/bazaar/Bazaar.pluginspec.in src/plugins/beautifier/Beautifier.pluginspec.in src/plugins/bineditor/BinEditor.pluginspec.in src/plugins/bookmarks/Bookmarks.pluginspec.in src/plugins/clangcodemodel/ClangCodeModel.pluginspec.in src/plugins/clangcodemodel/clanghighlightingsupport.cpp src/plugins/clangcodemodel/clangsymbolsearcher.cpp src/plugins/classview/ClassView.pluginspec.in src/plugins/clearcase/ClearCase.pluginspec.in src/plugins/cmakeprojectmanager/CMakeProjectManager.pluginspec.in src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp src/plugins/cmakeprojectmanager/cmakehighlighter.cpp src/plugins/coreplugin/Core.pluginspec.in src/plugins/cpaster/CodePaster.pluginspec.in src/plugins/cppeditor/CppEditor.pluginspec.in src/plugins/cppeditor/cppfilewizard.cpp src/plugins/cpptools/CppTools.pluginspec.in src/plugins/cpptools/cpphighlightingsupportinternal.cpp src/plugins/cpptools/cppmodelmanagerinterface.cpp src/plugins/cpptools/cppmodelmanagerinterface.h src/plugins/cvs/CVS.pluginspec.in src/plugins/debugger/Debugger.pluginspec.in src/plugins/designer/Designer.pluginspec.in src/plugins/diffeditor/DiffEditor.pluginspec.in src/plugins/emacskeys/EmacsKeys.pluginspec.in src/plugins/fakevim/FakeVim.pluginspec.in src/plugins/genericprojectmanager/GenericProjectManager.pluginspec.in src/plugins/git/Git.pluginspec.in src/plugins/git/gitorious/gitorious.cpp src/plugins/git/gitorious/gitorious.h src/plugins/git/gitorious/gitoriousclonewizard.cpp src/plugins/git/gitorious/gitorioushostwidget.cpp src/plugins/git/gitorious/gitorioushostwidget.h src/plugins/git/gitorious/gitorioushostwizardpage.cpp src/plugins/git/gitorious/gitoriousprojectwidget.cpp src/plugins/git/gitorious/gitoriousprojectwidget.h src/plugins/git/gitorious/gitoriousprojectwizardpage.cpp src/plugins/git/gitorious/gitoriousprojectwizardpage.h src/plugins/git/gitorious/gitoriousrepositorywizardpage.cpp src/plugins/git/gitorious/gitoriousrepositorywizardpage.h src/plugins/glsleditor/GLSLEditor.pluginspec.in src/plugins/glsleditor/glsleditorfactory.cpp src/plugins/glsleditor/glslfilewizard.cpp src/plugins/helloworld/HelloWorld.pluginspec.in src/plugins/help/Help.pluginspec.in src/plugins/imageviewer/ImageViewer.pluginspec.in src/plugins/ios/Ios.pluginspec.in src/plugins/macros/Macros.pluginspec.in src/plugins/mercurial/Mercurial.pluginspec.in src/plugins/perforce/Perforce.pluginspec.in src/plugins/projectexplorer/ProjectExplorer.pluginspec.in src/plugins/pythoneditor/PythonEditor.pluginspec.in src/plugins/pythoneditor/pythoneditorwidget.cpp src/plugins/pythoneditor/wizard/pythonfilewizard.cpp src/plugins/qbsprojectmanager/QbsProjectManager.pluginspec.in src/plugins/qbsprojectmanager/defaultpropertyprovider.cpp src/plugins/qmakeprojectmanager/QmakeProjectManager.pluginspec.in src/plugins/qmakeprojectmanager/profileeditorfactory.cpp src/plugins/qmldesigner/QmlDesigner.pluginspec.in src/plugins/qmljseditor/QmlJSEditor.pluginspec.in src/plugins/qmljseditor/qmljseditorfactory.cpp src/plugins/qmljstools/QmlJSTools.pluginspec.in src/plugins/qmlprofiler/QmlProfiler.pluginspec.in src/plugins/qmlprojectmanager/QmlProjectManager.pluginspec.in src/plugins/qnx/Qnx.pluginspec.in src/plugins/qtsupport/QtSupport.pluginspec.in src/plugins/remotelinux/RemoteLinux.pluginspec.in src/plugins/resourceeditor/ResourceEditor.pluginspec.in src/plugins/resourceeditor/resourcewizard.h src/plugins/subversion/Subversion.pluginspec.in src/plugins/tasklist/TaskList.pluginspec.in src/plugins/texteditor/TextEditor.pluginspec.in src/plugins/texteditor/basetexteditor_p.h src/plugins/texteditor/basetextmark.cpp src/plugins/texteditor/codeassist/basicproposalitemlistmodel.h src/plugins/texteditor/codeassist/defaultassistinterface.h src/plugins/texteditor/codeassist/iassistproposalitem.cpp src/plugins/texteditor/itexteditor.cpp src/plugins/texteditor/itexteditor.h src/plugins/texteditor/itextmark.cpp src/plugins/texteditor/plaintexteditor.cpp src/plugins/texteditor/plaintexteditor.h src/plugins/texteditor/texteditoractionhandler.cpp src/plugins/todo/Todo.pluginspec.in src/plugins/updateinfo/UpdateInfo.pluginspec.in src/plugins/valgrind/Valgrind.pluginspec.in src/plugins/vcsbase/VcsBase.pluginspec.in src/plugins/welcome/Welcome.pluginspec.in src/plugins/winrt/WinRt.pluginspec.in tests/auto/debugger/temporarydir.h Change-Id: I254af8be8119fe9855287909e17d4b8ca9d2fc2f
| * License updateEike Ziller2014-10-091-7/+8
| | | | | | | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* | Do not use deprecated Qt functionality.Christian Kandeler2014-08-291-1/+1
|/ | | | | | | | | | | | | | | Replace all* remaining deprecated Qt 4 functions with their Qt 5 counterparts. This means we no longer need to define the QT_DISABLE_DEPRECATED_BEFORE macro. This patch is relatively small because most source-compatible changes of this kind have been done before. * The one exception is the QmlDesigner, which uses QWeakPointer in a deprecated way all over the place. Change-Id: Id4b839c6685f3b5bdf2b89137f95231758ec53c7 Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Save width of manually resized tree view columnshjk2014-07-181-61/+206
| | | | | | Task-number: QTCREATORBUG-12670 Change-Id: I5c31ffd6d3bb3060e851df56e9d9a80101df9347 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Utils: Remove unneeded namespace qualificationsOrgad Shaneh2014-07-161-3/+3
| | | | | | Change-Id: Iacab8410ab4d3b63f96e7541b450e3cc729ab662 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* Utils: Even more treeview column size fine tuninghjk2014-06-271-57/+37
| | | | | | | | | Do it manually now, directly. Changing behavior flags and waiting for the view to act by itself turned out to be too fragile. Change-Id: I31014219b8b20582401bf0431fb805b683aa953f Reviewed-by: Tim Sander <tim@krieglstein.org> Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Some view resizeing fine-tuninghjk2014-06-231-4/+2
| | | | | | Change-Id: I5ad041e658089ed3f965cf5fb77fda00571389b9 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: More column resizinghjk2014-06-041-49/+65
| | | | | | | | | | | | | | Turns out setting the column resize mode on the view itself is counter-productive as it takes away the ability to manually re-adjust. So set the mode only temporarily to get the preferred width than switch back to manually resize mode and use the hint to set some initial size. Also use the length of the header label as absolute minimum. Change-Id: Ic17e31334b23ce6d541f9459cd22be65145046d3 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Debugger: Some infrastructure for stricter watch model testinghjk2014-06-031-0/+2
| | | | | | | Targeting re-use for tooltips, and potentially sorting. Change-Id: I1ce8f4da73ab5ca13cd70d7c651bc76c67f91a39 Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Switch on "column resize to contents" by defaulthjk2014-06-021-1/+2
| | | | | | | | | | | | Since it's easier to shrink columns nowadays (left click on header section or somewhere in the empty space) this might "feel" better than last time we tried. This is an experiment for now, might get reverted before 3.2. Task-number: QTCREATORBUG-9918 Change-Id: I379d9310e232a16c8b8ee3c6cb0d91746fd7553c Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Utils::BaseTreeView: Adjust column size by mouse clickhjk2014-05-301-5/+11
| | | | | | | | | | Single click on either header or unoccupied part of the view will toggle the respective column width between a large value based on contents contents width and a small fixed one (8ex). Previously it only expanded. Change-Id: I2c5865a3b0bad7593a47976626d4c516e021c157 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* DebuggerViews: Fix keyboard navigation on OS XDaniel Teske2014-04-161-4/+4
| | | | | | | | Also fix WatchTreeView to use double click activation like every other debugger view. Change-Id: Idabe21e12d38d59bef66b7d9855a7fe97089dd8f Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Debugger: give item delegates a parent.Erik Verbruggen2013-08-141-2/+2
| | | | | | | | | These delegates would otherwise be leaked. This is not a serious leak, as a few (about 10) are created once and kept/used for the whole lifetime of the application, but they do show up in leak-analysis tools. Change-Id: I1e281f06f21ae828199078253ae5719668d26bbc Reviewed-by: hjk <hjk121@nokiamail.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | BaseTreeView: add convenience function to get selected or current rowshjk2013-01-101-0/+12
| | | | | | | | | | Change-Id: I3239c52ad2d1eb725e4c10aeb93ee2e73ad5c0b6 Reviewed-by: hjk <qthjk@ovi.com>
* | Merge remote-tracking branch 'origin/2.6'Eike Ziller2012-11-271-0/+2
|\| | | | | | | | | | | | | | | | | Conflicts: share/share.qbs src/plugins/cpptools/cppchecksymbols.cpp src/plugins/texteditor/behaviorsettingswidget.cpp Change-Id: Ia34060984f9c036b2f28a6411d796d41f55a3e37
| * Inspector: Update Editor on object selectionAurindam Jana2012-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | When an object is selected in the Inspector, the Editor is updated to show the relevant code. Task-number: QTCREATORBUG-8246 Change-Id: I4f7fbcccdeb22849682fa72c63e87a78f48d185b Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* | debugger: generally use a QLabel as item delegate in viewshjk2012-11-081-1/+21
|/ | | | | Change-Id: I11f75bd620ec11521b902ccc3ab434c24393dcfd Reviewed-by: hjk <qthjk@ovi.com>