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

#include <tabtreemodel.h>

Inheritance diagram for TabTreeModel:

Public Member Functions

 TabTreeModel (BrowserWindow *window, QObject *parent=nullptr)
 
 ~TabTreeModel () override
 
QModelIndex tabIndex (WebTab *tab) const
 
WebTabtab (const QModelIndex &index) const
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
int rowCount (const QModelIndex &parent) const override
 
int columnCount (const QModelIndex &parent) const override
 
bool hasChildren (const QModelIndex &parent) const override
 
QModelIndex parent (const QModelIndex &child) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex mapFromSource (const QModelIndex &sourceIndex) const override
 
QModelIndex mapToSource (const QModelIndex &proxyIndex) const override
 
bool canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override
 
bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override
 

Detailed Description

Definition at line 30 of file tabtreemodel.h.

Constructor & Destructor Documentation

◆ TabTreeModel()

TabTreeModel::TabTreeModel ( BrowserWindow window,
QObject *  parent = nullptr 
)
explicit

Definition at line 80 of file tabtreemodel.cpp.

◆ ~TabTreeModel()

TabTreeModel::~TabTreeModel ( )
override

Definition at line 89 of file tabtreemodel.cpp.

Member Function Documentation

◆ canDropMimeData()

bool TabTreeModel::canDropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
) const
override

Definition at line 185 of file tabtreemodel.cpp.

◆ columnCount()

int TabTreeModel::columnCount ( const QModelIndex &  parent) const
override

Definition at line 136 of file tabtreemodel.cpp.

◆ data()

QVariant TabTreeModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 122 of file tabtreemodel.cpp.

◆ dropMimeData()

bool TabTreeModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
)
override

Definition at line 207 of file tabtreemodel.cpp.

◆ flags()

Qt::ItemFlags TabTreeModel::flags ( const QModelIndex &  index) const
override

Definition at line 109 of file tabtreemodel.cpp.

◆ hasChildren()

bool TabTreeModel::hasChildren ( const QModelIndex &  parent) const
override

Definition at line 144 of file tabtreemodel.cpp.

◆ index()

QModelIndex TabTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override

Definition at line 162 of file tabtreemodel.cpp.

◆ mapFromSource()

QModelIndex TabTreeModel::mapFromSource ( const QModelIndex &  sourceIndex) const
override

Definition at line 171 of file tabtreemodel.cpp.

◆ mapToSource()

QModelIndex TabTreeModel::mapToSource ( const QModelIndex &  proxyIndex) const
override

Definition at line 176 of file tabtreemodel.cpp.

◆ parent()

QModelIndex TabTreeModel::parent ( const QModelIndex &  child) const
override

Definition at line 153 of file tabtreemodel.cpp.

◆ rowCount()

int TabTreeModel::rowCount ( const QModelIndex &  parent) const
override

Definition at line 127 of file tabtreemodel.cpp.

◆ tab()

WebTab * TabTreeModel::tab ( const QModelIndex &  index) const

Definition at line 103 of file tabtreemodel.cpp.

◆ tabIndex()

QModelIndex TabTreeModel::tabIndex ( WebTab tab) const

Definition at line 94 of file tabtreemodel.cpp.


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