kwin/tabbox
Vlad Zahorodnii 9d4a32596c Drop some custom list typedefs
Summary:
Qt has its own thing where a type might also have corresponding list
alias, e.g. QObject and QObjectList, QWidget and QWidgetList. I don't
know why Qt does that, maybe for some historical reasons, but what
matters is that we copy this pattern here in KWin. While this pattern
might be useful with some long list types, for example

    QList<QWeakPointer<TabBoxClient>> TabBoxClientList

in general, it causes more harm than good. For example, we've got two
new client types, do we need corresponding list typedefs for them? If
no, why do we have ClientList and so on?

Another problem with these typedefs is that you need to include utils.h
header in order to use them. A better way to handle such things is to
just forward declare a client class (if that's possible) and use it
directly with QList or QVector. This way translation units don't get
"bloated" with utils.h stuff for no apparent reason.

So, in order to make code more consistent and easier to follow, this
change drops some of our custom typedefs. Namely ConstClientList,
ClientList, DeletedList, UnmanagedList, ToplevelList, and GroupList.

Test Plan: Compiles.

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24950
2019-11-27 15:54:08 +02:00
..
CMakeLists.txt Cleanup style in CMakeLists.txt files 2019-09-17 16:03:05 +03:00
clientmodel.cpp Port away from deprecated qVariantFromValue 2019-09-18 16:20:06 +03:00
clientmodel.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
desktopchain.cpp Fix comparison between signed and unsigned integer expressions warning 2014-04-28 17:29:06 +02:00
desktopchain.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
desktopmodel.cpp Port away from deprecated qVariantFromValue 2019-09-18 16:20:06 +03:00
desktopmodel.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
kwindesktopswitcher.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2019-10-17 05:41:38 +02:00
kwinwindowswitcher.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2019-10-17 05:41:38 +02:00
switcheritem.cpp [tabbox] Expose noModifierGrab to QtQuick 2017-04-12 19:46:48 +02:00
switcheritem.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
tabbox.cpp Drop some custom list typedefs 2019-11-27 15:54:08 +02:00
tabbox.h [tabbox] Drop TabBoxClient::window() method 2019-11-18 10:43:41 +02:00
tabbox_logging.cpp pedantic fixes 2016-07-16 13:14:44 -04:00
tabbox_logging.h [tabbox] Add dedicated logging category for TabBox 2015-07-31 13:13:41 +02:00
tabboxconfig.cpp Remove show outline from TabBox 2013-04-24 10:02:57 +02:00
tabboxconfig.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
tabboxhandler.cpp [tabbox] Delete unused X11 includes 2019-09-07 12:45:28 +03:00
tabboxhandler.h [tabbox] Drop TabBoxClient::window() method 2019-11-18 10:43:41 +02:00
x11_filter.cpp [tabbox] Drop the passing to Effects in X11 Filter 2017-09-30 12:58:45 +02:00
x11_filter.h [tabbox] Drop the passing to Effects in X11 Filter 2017-09-30 12:58:45 +02:00