Classes | Functions
test_merge_models.cpp File Reference
#include <utils/flat_merge_proxy_model.h>
#include <utils/tree_merge_proxy_model.h>
#include <QStandardItemModel>
#include <gtest/gtest.h>
Include dependency graph for test_merge_models.cpp:

Go to the source code of this file.

Classes

class  FlatMergeModelRemove
 

Functions

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)
 

Function Documentation

◆ checkEquality()

void checkEquality ( const QAbstractItemModel *  proxy_model,
const QModelIndex &  proxy_parent,
const QAbstractItemModel *  source_model,
const QModelIndex &  source_parent 
)

Definition at line 34 of file test_merge_models.cpp.

◆ createStandardItems()

void createStandardItems ( QStandardItem *  parent,
int  rows,
int  columns,
int  depth,
int  d_rows = 0 
)

Definition at line 9 of file test_merge_models.cpp.

◆ createStandardModel()

QStandardItemModel* createStandardModel ( QObject *  parent,
int  rows,
int  columns,
int  depth,
int  d_rows = 0 
)

Definition at line 22 of file test_merge_models.cpp.

◆ modifySourceModel()

template<class T >
void modifySourceModel ( QAbstractItemModel *  src,
T *  proxy,
const QModelIndex &  src_index 
)

Definition at line 59 of file test_merge_models.cpp.

◆ operator<<()

::std::ostream& operator<< ( ::std::ostream &  os,
const QVariant &  value 
)

Definition at line 29 of file test_merge_models.cpp.

◆ TEST() [1/2]

TEST ( FlatMergeModel  ,
basics   
)

Definition at line 151 of file test_merge_models.cpp.

◆ TEST() [2/2]

TEST ( TreeMergeModel  ,
basics   
)

Definition at line 82 of file test_merge_models.cpp.

◆ TEST_F() [1/4]

TEST_F ( FlatMergeModelRemove  ,
remove1   
)

Definition at line 202 of file test_merge_models.cpp.

◆ TEST_F() [2/4]

TEST_F ( FlatMergeModelRemove  ,
remove2   
)

Definition at line 208 of file test_merge_models.cpp.

◆ TEST_F() [3/4]

TEST_F ( FlatMergeModelRemove  ,
remove3   
)

Definition at line 214 of file test_merge_models.cpp.

◆ TEST_F() [4/4]

TEST_F ( FlatMergeModelRemove  ,
remove4   
)

Definition at line 220 of file test_merge_models.cpp.



visualization
Author(s): Robert Haschke
autogenerated on Thu Feb 27 2025 03:39:51