#include <utils/flat_merge_proxy_model.h>
#include <utils/tree_merge_proxy_model.h>
#include <QStandardItemModel>
#include <gtest/gtest.h>
Go to the source code of this file.
|
void | checkEquality (const QAbstractItemModel *proxy_model, const QModelIndex &proxy_parent, const QAbstractItemModel *source_model, const QModelIndex &source_parent) |
|
void | createStandardItems (QStandardItem *parent, int rows, int columns, int depth, int d_rows=0) |
|
QStandardItemModel * | createStandardModel (QObject *parent, int rows, int columns, int depth, int d_rows=0) |
|
template<class T > |
void | modifySourceModel (QAbstractItemModel *src, T *proxy, const QModelIndex &src_index) |
|
::std::ostream & | operator<< (::std::ostream &os, const QVariant &value) |
|
| TEST (FlatMergeModel, basics) |
|
| TEST (TreeMergeModel, basics) |
|
| TEST_F (FlatMergeModelRemove, remove1) |
|
| TEST_F (FlatMergeModelRemove, remove2) |
|
| TEST_F (FlatMergeModelRemove, remove3) |
|
| TEST_F (FlatMergeModelRemove, remove4) |
|
◆ checkEquality()
void checkEquality |
( |
const QAbstractItemModel * |
proxy_model, |
|
|
const QModelIndex & |
proxy_parent, |
|
|
const QAbstractItemModel * |
source_model, |
|
|
const QModelIndex & |
source_parent |
|
) |
| |
◆ createStandardItems()
void createStandardItems |
( |
QStandardItem * |
parent, |
|
|
int |
rows, |
|
|
int |
columns, |
|
|
int |
depth, |
|
|
int |
d_rows = 0 |
|
) |
| |
◆ createStandardModel()
QStandardItemModel* createStandardModel |
( |
QObject * |
parent, |
|
|
int |
rows, |
|
|
int |
columns, |
|
|
int |
depth, |
|
|
int |
d_rows = 0 |
|
) |
| |
◆ modifySourceModel()
template<class T >
void modifySourceModel |
( |
QAbstractItemModel * |
src, |
|
|
T * |
proxy, |
|
|
const QModelIndex & |
src_index |
|
) |
| |
◆ operator<<()
::std::ostream& operator<< |
( |
::std::ostream & |
os, |
|
|
const QVariant & |
value |
|
) |
| |
◆ TEST() [1/2]
TEST |
( |
FlatMergeModel |
, |
|
|
basics |
|
|
) |
| |
◆ TEST() [2/2]
TEST |
( |
TreeMergeModel |
, |
|
|
basics |
|
|
) |
| |
◆ TEST_F() [1/4]
◆ TEST_F() [2/4]
◆ TEST_F() [3/4]
◆ TEST_F() [4/4]