Commit Graph

12 Commits

Author SHA1 Message Date
Alessandro Portale
37e118b5ec Core: Base GridView on QListView (instead of on QTableView)
Use QListView with its very capable icon view mode instead of QTableView
in order to layout items in a grid.

This removes the need for the GridProxyModel.
It also leaves the previously self-implemented calculation of columns
count to QListView. Only the ProductGridView still needs to calculate
that.

Change-Id: If6e7f033fc78883930794c1e261aea396ae25190
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2021-11-29 19:09:58 +00:00
Alessandro Portale
d7ed48ac6f Add missing "emit"s
Change-Id: I88a7397c7689b1e72cdd0e52077f8097443963c0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-11-11 14:10:42 +00:00
Alessandro Portale
edfdcd1a53 Core: Polish welcome screen grid hover animation
* Fix offset calculation (arrived at top in less than 200ms)
* Use "OutQuad" easing for the speed of the sliding text
* "Fade in" separator line and description during animation
* Animate covering of image by background color
* Draw rectangles with qdrawutil (fixes HighDpi)
* Change refresh timer from 5 to 10 ms

Change-Id: I53899227d875a3faf086ebc6b3d83e5eb9dcaa12
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-09-24 09:37:39 +00:00
Eike Ziller
fee671dfbe Merge remote-tracking branch 'origin/4.14' into 4.15
Change-Id: Ifbfb495fff50b5bb27a12b204653cf1697820913
2021-03-05 17:18:43 +01:00
Alessandro Portale
011bc5ce33 Core: Hide the horizontal scrollbar in WelcomePage
The horizontal scrollbar appears with some certain window sizes. That is
most likely due to the column count calculation not taking the vertical
scroll bar width into consideration.

This change simply prevents the unneeded horizontal scrolbar from
sporadically popping up.

Change-Id: I2fb4aac0921f4a6627058d3e73af22c1fe6db3b9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2021-03-05 08:34:34 +00:00
Eike Ziller
28f53a9040 macOS: Fix vanishing controls in Welcome mode with macOS dark mode
The example set selector and the search input field were missing some
palette tweaks that were done by other classes deriving from
WelcomePageFrame.

Fixes: QTCREATORBUG-25405
Change-Id: I43a022aa5464a1167f94d26e945de225a436b768
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2021-03-05 07:34:32 +00:00
Alessandro Portale
72d91dc94a Use qAsConst with non-const Qt containers in range-loops
... in various places

Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2021-02-17 14:43:29 +00:00
Christian Stenger
0f502b0516 Core: Only act on left click on examples and the like
Change-Id: I4f676743851136d42ca87aa3f3bc49769ba86d56
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-05-07 05:04:38 +00:00
Christian Stenger
f05477dc39 Core: Propagate dataChanged signal
If the ListModel needs to emit dataChanged signals
ensure they will be handled correctly.

Change-Id: I2a543737ca442819fc4d3dead15108cb3a00765d
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-01-23 08:42:54 +00:00
Christian Stenger
5353532fa2 Core: Handle editor event only for real items
Rows which do not fill an entire row are treated
as if they contained empty placeholder items.
Do not try to handle these as the item data for
these will be a nullptr.

Change-Id: Ia9420aeafe3e2a0a3f7d29208ad21c81e52ac81a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-22 06:32:49 +00:00
Christian Stenger
f2351b06e0 QtSupport: Extract welcome page list model handling
...and move it to Core.
Preparation for easier re-usage to avoid re-implementing
the same more often.

Change-Id: I4c902e74e63dd5416f2a52b4b08900e28e2a052a
Reviewed-by: hjk <hjk@qt.io>
2020-01-20 12:27:05 +00:00
Christian Stenger
a7f55ff566 QtSupport: Extract and move welcomepage helper to Core
Change-Id: I32798e8f3b5cdef6e256de542714be80cc8aa9e3
Reviewed-by: hjk <hjk@qt.io>
2020-01-20 09:10:42 +00:00