Falkon Develop
Cross-platform Qt-based web browser
ModelTest Class Reference

#include <modeltest.h>

Inheritance diagram for ModelTest:

Public Member Functions

 ModelTest (QAbstractItemModel *model, QObject *parent=nullptr)
 

Protected Slots

void runAllTests ()
 
void layoutAboutToBeChanged ()
 
void layoutChanged ()
 
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)
 

Detailed Description

Definition at line 50 of file modeltest.h.

Constructor & Destructor Documentation

◆ ModelTest()

ModelTest::ModelTest ( QAbstractItemModel *  _model,
QObject *  parent = nullptr 
)

Connect to all of the models signals. Whenever anything happens recheck everything.

Definition at line 56 of file modeltest.cpp.

Member Function Documentation

◆ layoutAboutToBeChanged

void ModelTest::layoutAboutToBeChanged ( )
protectedslot

Definition at line 533 of file modeltest.cpp.

◆ layoutChanged

void ModelTest::layoutChanged ( )
protectedslot

Definition at line 540 of file modeltest.cpp.

◆ rowsAboutToBeInserted

void ModelTest::rowsAboutToBeInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedslot

Store what is about to be inserted to make sure it actually happens

See also
rowsInserted()

Definition at line 487 of file modeltest.cpp.

◆ rowsAboutToBeRemoved

void ModelTest::rowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedslot

Store what is about to be inserted to make sure it actually happens

See also
rowsRemoved()

Definition at line 554 of file modeltest.cpp.

◆ rowsInserted

void ModelTest::rowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedslot

Confirm that what was said was going to happen actually did

See also
rowsAboutToBeInserted()

Definition at line 506 of file modeltest.cpp.

◆ rowsRemoved

void ModelTest::rowsRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedslot

Confirm that what was said was going to happen actually did

See also
rowsAboutToBeRemoved()

Definition at line 570 of file modeltest.cpp.

◆ runAllTests

void ModelTest::runAllTests ( )
protectedslot

Definition at line 102 of file modeltest.cpp.


The documentation for this class was generated from the following files: