You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Eike Hein
b40c0de099
When used by QML, only populate after component is complete
...
Summary:
This introduces the use of QQmlParserStatus to delay populating
the model until all properties have been set, to avoid delegate
churn.
TasksModel is also meant to be used by C++. There's no good way
to determine whether an object is being instanciated by QML
during construction time, therefore this patch also introduces a
delay in initial population of the model after construction via
a single-shot timer. At the time the slot is invoked we know if
we're used by QML (because QQmlParserStatus::classBegin has
either been called or not by then) so we can decide to populate
or wait more for QQmlParserStatus::componentComplete.
I'm not super happy with this behavior change for C++ users,
however as the model is usually used via QML currently, it's
pragmatic to optimize performance for the common case, and it
doesn't technically break QAbstractItemModel semantics, as model
population isn't required to be sync.
There's a decent change this fixes a recently-reported crash as a
by-product:
CCBUG:386630
Reviewers: #plasma, davidedmundson, mart
Subscribers: plasma-devel
Tags: #plasma
Differential Revision: https://phabricator.kde.org/D8723
8 years ago
..
autotests
Fix another test failure.
9 years ago
declarative
Use Q_DECL_OVERRIDE
9 years ago
CMakeLists.txt
Refresh the ScreenGeometry data role whenever a screen is added or changes its geometry.
9 years ago
LibTaskManagerConfig.cmake.in
Import next-gen libtaskmanager.
10 years ago
TODO.txt
Import next-gen libtaskmanager.
10 years ago
abstracttasksmodel.cpp
[Libtaskmanager] Add "requestOpenUrls" to open given URLs with the associated application
10 years ago
abstracttasksmodel.h
Expose PlasmaWindow::pid through WaylandTasksModel.
9 years ago
abstracttasksmodeliface.h
[Libtaskmanager] Add "requestOpenUrls" to open given URLs with the associated application
10 years ago
abstracttasksproxymodeliface.cpp
Add requestOpenURls to AbstractProxyModelIface
10 years ago
abstracttasksproxymodeliface.h
Fix most obvious clazy and clang warnings
10 years ago
abstractwindowtasksmodel.cpp
Fix off-by-one.
9 years ago
abstractwindowtasksmodel.h
Refresh the ScreenGeometry data role whenever a screen is added or changes its geometry.
9 years ago
activityinfo.cpp
Fix most obvious clazy and clang warnings
10 years ago
activityinfo.h
Add TaskManager requestActivities
10 years ago
concatenatetasksproxymodel.cpp
Share logic for passing AbstractTasksModelIface methods to source model
10 years ago
concatenatetasksproxymodel.h
Share logic for passing AbstractTasksModelIface methods to source model
10 years ago
flattentaskgroupsproxymodel.cpp
Fix most obvious clazy and clang warnings
10 years ago
flattentaskgroupsproxymodel.h
Share logic for passing AbstractTasksModelIface methods to source model
10 years ago
launchertasksmodel.cpp
[LauncherTasksModel] Try resolving absolute path to applications: URL before adding launcher
9 years ago
launchertasksmodel.h
Changed the launcher modification API
10 years ago
launchertasksmodel_p.h
Removed debugging output
10 years ago
startuptasksmodel.cpp
[StartupTasksModel] Try resolving startup application id to applications: URL
9 years ago
startuptasksmodel.h
Import next-gen libtaskmanager.
10 years ago
taskfilterproxymodel.cpp
Filtering now checks for the null activity
10 years ago
taskfilterproxymodel.h
Treat NET::Utility type windows as SkipTaskbar.
10 years ago
taskgroupingproxymodel.cpp
Fix QSortFilterProxyModelPrivate::updateChildrenMapping crash in libtaskmanager
9 years ago
taskgroupingproxymodel.h
Fix most obvious clazy and clang warnings
10 years ago
taskmanagerrulesrc
Introduce a concept of runtime executables that can be ignored.
9 years ago
tasksmodel.cpp
When used by QML, only populate after component is complete
8 years ago
tasksmodel.h
When used by QML, only populate after component is complete
8 years ago
tasktools.cpp
[Task Tools] Treat applications: and respective absolute path equal in launcherUrlsMatch
9 years ago
tasktools.h
Merge branch 'Plasma/5.10'
9 years ago
virtualdesktopinfo.cpp
Add desktop layout rows property.
10 years ago
virtualdesktopinfo.h
Add desktop layout rows property.
10 years ago
waylandtasksmodel.cpp
Merge branch 'Plasma/5.10'
9 years ago
waylandtasksmodel.h
Refresh the ScreenGeometry data role whenever a screen is added or changes its geometry.
9 years ago
windowtasksmodel.cpp
Share logic for passing AbstractTasksModelIface methods to source model
10 years ago
windowtasksmodel.h
Share logic for passing AbstractTasksModelIface methods to source model
10 years ago
xwindowtasksmodel.cpp
Avoid absolute paths to .desktop files in launcher URLs.
9 years ago
xwindowtasksmodel.h
Be more explicit about Qt5::Widgets dependencies
8 years ago