MyBooks
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EditAuthorsModel Class Reference

#include <editauthorsmodel.hpp>

Inheritance diagram for EditAuthorsModel:
Inheritance graph
[legend]
Collaboration diagram for EditAuthorsModel:
Collaboration graph
[legend]

Public Member Functions

 EditAuthorsModel (QObject *parent=0)
 
void initModel ()
 
bool setData (const QModelIndex &index, const QVariant &value, int role) Q_DECL_OVERRIDE
 
quint32 count ()
 
Qt::ItemFlags flags (const QModelIndex &index) const Q_DECL_OVERRIDE
 

Private Member Functions

bool setStatus (int logId, const QString &status)
 
bool setFName (int logId, const QString &fname)
 
bool setLName (int logId, const QString &lname)
 
bool setNotes (int logId, const QString &notes)
 
void refresh ()
 

Private Attributes

quint32 m_rowcnt
 

Detailed Description

This class is an edit delegate for the Authors table view. Methods provided here customize the edit process in the display grid rather than a separate form.

Parameters
QObjectparent
See also
MainWindow

Constructor & Destructor Documentation

◆ EditAuthorsModel()

EditAuthorsModel::EditAuthorsModel ( QObject *  parent = 0)

Member Function Documentation

◆ count()

quint32 EditAuthorsModel::count ( )

◆ flags()

Qt::ItemFlags EditAuthorsModel::flags ( const QModelIndex &  index) const

◆ initModel()

void EditAuthorsModel::initModel ( )
Here is the call graph for this function:

◆ refresh()

void EditAuthorsModel::refresh ( )
private
Here is the call graph for this function:

◆ setData()

bool EditAuthorsModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
Here is the call graph for this function:

◆ setFName()

bool EditAuthorsModel::setFName ( int  logId,
const QString &  fname 
)
private

◆ setLName()

bool EditAuthorsModel::setLName ( int  logId,
const QString &  lname 
)
private

◆ setNotes()

bool EditAuthorsModel::setNotes ( int  logId,
const QString &  notes 
)
private

◆ setStatus()

bool EditAuthorsModel::setStatus ( int  logId,
const QString &  status 
)
private

Member Data Documentation

◆ m_rowcnt

quint32 EditAuthorsModel::m_rowcnt
private

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