Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KOrganizer
Commits
58814bb3
Commit
58814bb3
authored
Aug 13, 2020
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused ancient ModelTest copy
parent
817bbad3
Pipeline
#30810
passed with stage
in 39 minutes and 47 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
710 deletions
+0
-710
src/views/collectionview/autotests/CMakeLists.txt
src/views/collectionview/autotests/CMakeLists.txt
+0
-1
src/views/collectionview/autotests/modeltest.cpp
src/views/collectionview/autotests/modeltest.cpp
+0
-642
src/views/collectionview/autotests/modeltest.h
src/views/collectionview/autotests/modeltest.h
+0
-67
No files found.
src/views/collectionview/autotests/CMakeLists.txt
View file @
58814bb3
...
...
@@ -6,7 +6,6 @@ include_directories(
set
(
reparentingmodeltest_SRCS
reparentingmodeltest.cpp
../reparentingmodel.cpp
modeltest.cpp
../../../korganizer_debug.cpp
)
...
...
src/views/collectionview/autotests/modeltest.cpp
deleted
100644 → 0
View file @
817bbad3
This diff is collapsed.
Click to expand it.
src/views/collectionview/autotests/modeltest.h
deleted
100644 → 0
View file @
817bbad3
/****************************************************************************
**
** SPDX-FileCopyrightText: 2007 Trolltech ASA. All rights reserved.
**
** This file is part of the Qt Concurrent project on Trolltech Labs.
**
** SPDX-License-Identifier: GPL-2.0-only
**
****************************************************************************/
//krazy:excludeall=style
#ifndef MODELTEST_H
#define MODELTEST_H
#include <QObject>
#include <QAbstractItemModel>
#include <QStack>
class
ModelTest
:
public
QObject
{
Q_OBJECT
public:
explicit
ModelTest
(
QAbstractItemModel
*
model
,
QObject
*
parent
=
nullptr
);
private
Q_SLOTS
:
void
nonDestructiveBasicTest
();
void
rowCount
();
void
columnCount
();
void
hasIndex
();
void
index
();
void
parent
();
void
data
();
protected
Q_SLOTS
:
void
runAllTests
();
void
layoutAboutToBeChanged
();
void
layoutChanged
();
void
modelAboutToBeReset
();
void
modelReset
();
void
rowsAboutToBeInserted
(
const
QModelIndex
&
parent
,
int
start
,
int
end
);
void
rowsInserted
(
const
QModelIndex
&
parent
,
int
start
,
int
end
);
void
rowsAboutToBeRemoved
(
const
QModelIndex
&
parent
,
int
start
,
int
end
);
void
rowsRemoved
(
const
QModelIndex
&
parent
,
int
start
,
int
end
);
void
rowsAboutToBeMoved
(
const
QModelIndex
&
,
int
,
int
,
const
QModelIndex
&
,
int
);
void
rowsMoved
(
const
QModelIndex
&
,
int
,
int
,
const
QModelIndex
&
,
int
);
private:
void
checkChildren
(
const
QModelIndex
&
parent
,
int
currentDepth
=
0
);
QAbstractItemModel
*
model
=
nullptr
;
struct
Changing
{
QModelIndex
parent
;
int
oldSize
;
QVariant
last
;
QVariant
next
;
};
QStack
<
Changing
>
insert
;
QStack
<
Changing
>
remove
;
bool
fetchingMore
;
QList
<
QPersistentModelIndex
>
changing
;
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment