Changeset View
Changeset View
Standalone View
Standalone View
src/core/krecursivefilterproxymodel.cpp
Show All 13 Lines | 1 | /* | |||
---|---|---|---|---|---|
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to the | 15 | along with this library; see the file COPYING.LIB. If not, write to the | ||
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
17 | 02110-1301, USA. | 17 | 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "krecursivefilterproxymodel.h" | 20 | #include "krecursivefilterproxymodel.h" | ||
21 | 21 | | |||
22 | #if KITEMMODELS_BUILD_DEPRECATED_SINCE(5, 65) | ||||
kossebau: This should be KITEMMODELS_BUILD_DEPRECATED_SINCE (BUILD., not ENABLE) | |||||
22 | #include <QMetaMethod> | 23 | #include <QMetaMethod> | ||
23 | 24 | | |||
24 | // Maintainability note: | 25 | // Maintainability note: | ||
25 | // This class invokes some Q_PRIVATE_SLOTs in QSortFilterProxyModel which are | 26 | // This class invokes some Q_PRIVATE_SLOTs in QSortFilterProxyModel which are | ||
26 | // private API and could be renamed or removed at any time. | 27 | // private API and could be renamed or removed at any time. | ||
27 | // If they are renamed, the invocations can be updated with an #if (QT_VERSION(...)) | 28 | // If they are renamed, the invocations can be updated with an #if (QT_VERSION(...)) | ||
28 | // If they are removed, then layout{AboutToBe}Changed Q_SIGNALS should be used when the source model | 29 | // If they are removed, then layout{AboutToBe}Changed Q_SIGNALS should be used when the source model | ||
29 | // gets new rows or has rowsremoved or moved. The Q_PRIVATE_SLOT invocation is an optimization | 30 | // gets new rows or has rowsremoved or moved. The Q_PRIVATE_SLOT invocation is an optimization | ||
▲ Show 20 Lines • Show All 390 Lines • ▼ Show 20 Line(s) | 420 | connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), | |||
420 | this, SLOT(sourceRowsAboutToBeRemoved(QModelIndex,int,int))); | 421 | this, SLOT(sourceRowsAboutToBeRemoved(QModelIndex,int,int))); | ||
421 | 422 | | |||
422 | connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), | 423 | connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)), | ||
423 | this, SLOT(sourceRowsRemoved(QModelIndex,int,int))); | 424 | this, SLOT(sourceRowsRemoved(QModelIndex,int,int))); | ||
424 | 425 | | |||
425 | } | 426 | } | ||
426 | 427 | | |||
427 | #include "moc_krecursivefilterproxymodel.cpp" | 428 | #include "moc_krecursivefilterproxymodel.cpp" | ||
429 | #endif |
This should be KITEMMODELS_BUILD_DEPRECATED_SINCE (BUILD., not ENABLE)