summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/progressmanager
Commit message (Collapse)AuthorAgeFilesLines
* Make task details visible by defaultEike Ziller2019-04-121-1/+1
| | | | | | | | | It used to hide to bottom part of the vertical scrollbar of editors, but it moved a bit to the left. It will still hide some UI, but the issue is probably less ugly now, and can still be turned off by users. Change-Id: I9522658f658300212cd205f9e07b165b2dd393f8 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Core: Turn progress detail expander into a real iconAlessandro Portale2019-04-112-41/+3
| | | | | Change-Id: Ie6173cc041b96cd10879189bedce1104cdbe7a33 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add API for another info string for progress barsEike Ziller2019-04-046-20/+99
| | | | | | | | | | | | | Adds a "subtitle" text that is shown below the progress bar if it is set, similar to how it is done manually for the search result "Found 123." counter. Optionally also shown in the status bar if the details are not open (like for the search result counter). Task-number: QTCREATORBUG-21584 Change-Id: I0b3bf52567227f7c07de51520079c0b12a265be3 Reviewed-by: David Schulz <david.schulz@qt.io>
* Fix Qt 5.13 deprecation warning about QFontMetrics::width()Friedemann Kleint2019-02-151-1/+1
| | | | | | | | | 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>
* Add general UI introductionEike Ziller2018-12-181-0/+1
| | | | | | | | | | | | | | | | Adds a Help > UI Introduction, which highlights basic aspects of the Qt Creator UI. The pages to show are defined in a format that can later move into a text based configuration file like JSON. It specifies an optional object name of a widget to highlight, a title, a brief description and a longer description (potentially with tables, lists and other simple HTML). Fixes: QTCREATORBUG-21585 Change-Id: Idb64c87e1d752bc24437588278093a96be0eeddb Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Core: ModernizeAlessandro Portale2018-08-088-50/+39
| | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init (partially) Change-Id: Idf10d7ffb1d98a04edc09a25c35e4e9e3abe87b5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Consistently use nullptrTobias Hunger2018-05-083-5/+5
| | | | | | | Fixed by clang-tidy modernize-use-nullptr. Change-Id: I62a9388ab873410555f45a8a6f9b0149467ddbaa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Use override consistentlyTobias Hunger2018-05-074-13/+13
| | | | | | | clang-tidy fixes from modernize-use-override check. Change-Id: If33399d60e96cae766bbedbe30044ada411e862f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-03-051-1/+1
|\ | | | | | | Change-Id: I421af2d62994436782dab6d37e97622bd055ed44
| * Merge remote-tracking branch 'origin/4.5' into 4.6Eike Ziller2018-03-021-1/+1
| |\ | | | | | | | | | Change-Id: Iaf254ce5bc895c703aa6772b4aaa139e531696f6
| | * Cover more 1.0 opacity casesOrgad Shaneh2018-03-021-1/+1
| | | | | | | | | | | | | | | | | | Task-number: QTCREATORBUG-19716 Change-Id: Ia9abed20ffd816c35f5aacc1d837b1ed81ec2b61 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | | Merge remote-tracking branch 'origin/4.6'Eike Ziller2018-03-011-3/+3
|\ \ \ | |/ / | | | | | | Change-Id: I63f8aebb201936f671b1486ff9420f67e5e3fafc
| * | Merge remote-tracking branch 'origin/4.5' into 4.6Eike Ziller2018-03-011-3/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | Conflicts: qbs/modules/qtc/qtc.qbs qtcreator.pri Change-Id: I6a9838d60dd37d4762fa7a345febc3a59e9d8351
| | * Work around Qt issue that setting 1.0 on opacity effect hides widgetEike Ziller2018-02-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue in Qt 5.9.4 & 5.10.1. This should be reverted the moment that is fixed. Task-number: QTCREATORBUG-19716 Change-Id: I9ae187a43d0054f162491308d30b9a5b96465ec4 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | | Core: Detach status bar handling from global object poolhjk2018-01-261-8/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of relying on addObject notification, provide a StatusBarManager::addStatusBarWidget() method to create, register and keep track of an IContext object. That's essentially what was StatusBarWidget before, but does not need to be known on the user side. For removal, this provides a StatusBarManager::destroyStatusBarWidget(), any not explicitly removed items are handled in response to ICore::coreAboutToClose() The StatusBarManager class is fully static now, could be a namespace. Change-Id: Ia2bd13b391c3f68c8dfd584b53524a9649cc0787 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Attach progress details to the toggle progress details buttonEike Ziller2018-01-081-0/+1
|/ | | | | | | | | The popup is corresponding to the button (and the summary progress bar), and that automatically also moves it away from the right border a bit. Task-number: QTCREATORBUG-19308 Change-Id: Ie6f72f19552285586395776b175ca142f56c7d6e Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* ProgressManager: Simplify code in ProgressBarTobias Hunger2017-06-232-21/+12
| | | | | | | Use member initialization, remove unnecessary destructor, remove QLatin1* Change-Id: I116fdd7439b30c51e672402789382f2265543345 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix Shortcut for right sidebarThomas Hartmann2017-04-191-3/+1
| | | | | | | | Ctrl+0 was confliciting with "Reset Font Size". Task-number: QTCREATORBUG-17857 Change-Id: I280c65446fd1f8ce3af66b06760ed7b9b210e8c3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Convert some 0 to nullptrMontel Laurent2017-02-231-1/+1
| | | | | Change-Id: Ib3ca8e2cc0d63fd35582c73b3cf7c915fb64ddfb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Core: Fix some Classic theme regressionsAlessandro Portale2016-10-071-1/+1
| | | | | | | | Commit 15fbfaf2e94b72cfd54bb0bd6f2b9ab87b870795 moved many images into utils, but some paths in the source were not adjusted accordingly. Change-Id: I6d32754c41455271c0bfcedf0777a38fbeca67ab Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
* Move icons to UtilsUlf Hermann2016-08-051-2/+2
| | | | | | | This way we can use them from libraries, not only from plugins. Change-Id: Ic35cfd5f04d638d87606bf272b2c00ded1267c1b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Core: Fix initially visible progress barAlessandro Portale2016-07-261-1/+2
| | | | | | | | | | | | Call updateVisibility() in ProgressManagerPrivate::init() to ensure that it is really invisible when launching Qt Creator. Also make sure that the opacity for the visible progress bar is 1.0 instead of 0.7 (which is the default opacity in QGraphicsOpacityEffect). Task-number: QTCREATORBUG-16003 Change-Id: Ic268d903ce624c9e0b4c11e213002a22be1fba63 Reviewed-by: hjk <hjk@qt.io>
* Core: Remove text shadow from progress labelAlessandro Portale2016-07-151-5/+1
| | | | | | | | | This removes the last occurrence of "Text with shadow". The progress label was not only inconsistent but also bad on light themes. Task-number: QTCREATORBUG-15999 Change-Id: I9c17402607d413fcfa0edcf342a50575d405dc1f Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* Utils: Replace Theme::widgetStyle with a flagAlessandro Portale2016-06-213-4/+4
| | | | | | | | | | Theme::widgetStyle with its two possible return values makes less sense than a bool flag. Especially since we already have several separate theme flags for ui elements which might be "flat" or not. Change-Id: Ic521bb58c04386b735b784079de05e521bc1f45f Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-051-3/+6
|\ | | | | | | | | | | | | Conflicts: src/libs/utils/tcpportsgatherer.h Change-Id: I495f3e05789f09efb8b1e84827893423a5b5b60c
| * ProgressBar: Conditional highlight and HighDPI fixAlessandro Portale2016-04-031-3/+6
| | | | | | | | | | | | | | | | | | | | This change makes drawing of the highlight above each progress bar depend on the current Theme::DrawToolBarHighlights flag. Also some off-by-ones issues in HighDPI are fixed. Change-Id: I80bb21d001784a8622fff795f3751d7b1697ddf1 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* | Wholesale conversion to #pragma oncehjk2016-03-305-20/+5
|/ | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Utils: Improved handling of StyleHelper::baseColorAlessandro Portale2016-03-211-3/+1
| | | | | | | | | | | This change makes sure that the "UI coloring" feature respects the original brightness of the current theme. It prevents dark themes from getting a too light recoloring and vice versa. Extra benefit: this allows to remove much recently introduced code. Change-Id: Ib2c96e7ed172a4cc97520aa4b5d180cc6353c661 Reviewed-by: hjk <hjk@theqtcompany.com>
* ProgressBar: Always show a minimal progressAlessandro Portale2016-03-171-16/+10
| | | | | | | | ... In order to avoid an empty progress bar background which can be confusing especially with flat themes. Change-Id: I062267f7a3f2627e0d043821a2dbd7462b6ce11f Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* ProgressBar: Add a theme color for the backgroundAlessandro Portale2016-03-171-1/+1
| | | | | | | | | | The progress bar is important and custom enough to deserve its own theme color for the background. This change adds "ProgressBarBackgroundColor" and also sets it for dark.cretatortheme, so that it has a good contrast to ProgressBarColorNormal. Change-Id: I37731d7a918a862a28940e215c913f9ade8569ca Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Flat themes: enable recoloring of the status bar & progressAlessandro Portale2016-03-161-1/+3
| | | | | | | | | The flat OutputPaneToggleButton now has the same hover and selected colors as the sidebar items and toolbar items. This changes the appearance in the dark theme a bit, and I hope in a good way. Change-Id: I52826c6d1c4539f799c74580f195a95609ea0416 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* ProgressBar: Make it really flat for flat themesAlessandro Portale2016-03-163-46/+48
| | | | | Change-Id: I3964492e4b07dcba594d5bebc1b74d9458578e88 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* mapReduce: Support progress information and add (unordered) mapEike Ziller2016-02-261-2/+2
| | | | | | | | | | | | | | If a container is given to mapReduce, it takes the responsibility to report progress information for the whole operation. If the map function reports its own progress, that is taken into account for the overall progress. The (so far only unordered) Utils::map operation can be used to replace MultiTask, by passing a member function of the items in the container as a map function. Change-Id: I18ca38a6ad2899d73f590bfe59bf2e6eb2f1a57a Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Core: Make ProgressTimer more fluentOrgad Shaneh2016-02-191-2/+4
| | | | | Change-Id: I3d8995096150a4756ab6ebc2ac33dac695886ffc Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Core: Make parent argument last in ProgressTimer ctorOrgad Shaneh2016-02-092-5/+6
| | | | | Change-Id: Id6513c46c72f0f4729783136ba0e9d779af7d147 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Core: Export and de-templatize ProgressTimerOrgad Shaneh2016-02-093-26/+24
| | | | | | | | | * Enable usage with QFutureInterface of non-void types * Remove watcher. Instead, start the timer immediately * Replace inheritance with aggregation of QTimer Change-Id: I4a7d8e2b8c885fd7a84a0134be3e41220952c185 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Core: Use Qt5-style connectsOrgad Shaneh2016-02-034-46/+48
| | | | | | | The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-1912-204/+144
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Core: Fix taskbar overlay on WindowsAlessandro Portale2015-12-121-2/+2
| | | | | | | It is now a tinted Utils::Icon Change-Id: Iee13d205f47acc21f15eb40da19d73b94d1c2c1f Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Do not show detailed progress information by default.Eike Ziller2015-08-241-1/+1
| | | | | | | | | | | | | The transition phase from having it in the mode bar is long over, so people that were used to always seeing the detailed view it will either have adapted, or have it set in their settings. Not showing the details is the saner default setting, since the popup does and will always hide other UI like the editor scrollbar, buttons in find tool bar, content of output panes, etc etc. Change-Id: Ib34dee976c46b5d19b81cebcca416612b673fb29 Task-number: QTCREATORBUG-9837 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Core: Fix compilationOrgad Shaneh2015-03-061-1/+2
| | | | | Change-Id: If3b4a3e716ac76b153148b0ed9517ea07f963370 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Clean exported headers of the Core plugin.Friedemann Kleint2015-03-053-1/+3
| | | | | Change-Id: I26472d568844d5fee62323e01f5c5c12082d5450 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Core: Make Context parameter to registerAction optionalhjk2015-02-261-2/+1
| | | | | | | | | ... and default to C_GLOBAL. A rather common case. Similar for ActionContainer::addSeparator(). Change-Id: I7f9ba573af201c0a472132d5a494ad17cc4175b7 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* ProgressManager: Return ProgressManager* from instancehjk2015-02-162-2/+2
| | | | | | | | Works better with Qt5-style connects. Change-Id: I7916369762fa51f24664149f85208b1eb5c7a62e Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* Merge commit '3c85058694ee2e41658d17f524fb48f0b187d2fe'Eike Ziller2015-02-1212-72/+72
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1612-72/+72
| | | | | | | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* | Core: Remove unneeded qualificationsOrgad Shaneh2015-02-063-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly done using the following ruby script: Dir.glob('**/*.cpp').each { |file| next if file =~ %r{src/shared/qbs|/qmljs/} s = File.read(file) s.scan(/^using namespace (.*);$/) { ns = $1 t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m| before = $1 char = $2 if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/ m else before + char end } if t != s puts file File.open(file, 'w').write(t) end } } Change-Id: I5c6690f51488bf8ca3610ba9fb11e6e5fd814aaa Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
* | Merge remote-tracking branch 'origin/3.3'Eike Ziller2014-12-101-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: qtcreator.pri qtcreator.qbs src/plugins/projectexplorer/projectexplorer.cpp src/shared/qbs Change-Id: I6d91042bb48314d00be721099aed19feca74e0ce
| * ProgressManager: Fix potential leakOrgad Shaneh2014-12-021-0/+1
| | | | | | | | | | | | | | | | Detected by valgrind Change-Id: I43ea6dcc67620074642164f552f61642250d9c90 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* | Core: CosmeticsOrgad Shaneh2014-11-263-5/+5
|/ | | | | | | | | * Remove redundant namespace qualifiers * Qt5-ify some signal/slot connections * Replace some using Core::Internal with explicit namespace scopes Change-Id: Id1aae05e2c6fc2992c2716e1f8f9e985c6e56122 Reviewed-by: hjk <hjk121@nokiamail.com>