MyBooks
Classes | Public Slots | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
EditBooksModel Class Reference

#include <editbooksmodel.hpp>

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

Classes

class  EditBooksPrivate
 

Public Slots

QSqlQuery findBooksByTitle (QString title)
 
QSqlQuery findBooksByAuthor (QString author)
 

Public Member Functions

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

Public Attributes

Books books
 

Private Member Functions

bool setTitle (int logId, const QString &title)
 
bool setNotes (int logId, const QString &notes)
 
bool setMediaKey (int logId, const int &mediakey)
 
bool setLoanedKey (int logId, const int &loankey)
 
bool setAuthKey (int logId, const int &authkey)
 
void refresh ()
 

Private Attributes

EditBooksPrivate * d
 

Detailed Description

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

Parameters
QObjectparent
See also
MainWindow

Constructor & Destructor Documentation

◆ EditBooksModel()

EditBooksModel::EditBooksModel ( QObject *  parent = 0)
Here is the call graph for this function:

◆ ~EditBooksModel()

EditBooksModel::~EditBooksModel ( )

Member Function Documentation

◆ findBooksByAuthor

QSqlQuery EditBooksModel::findBooksByAuthor ( QString  author)
slot
Here is the call graph for this function:

◆ findBooksByTitle

QSqlQuery EditBooksModel::findBooksByTitle ( QString  title)
slot
Here is the call graph for this function:

◆ flags()

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

◆ initModel()

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

◆ refresh()

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

◆ setAuthKey()

bool EditBooksModel::setAuthKey ( int  logId,
const int &  authkey 
)
private

◆ setData()

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

◆ setLoanedKey()

bool EditBooksModel::setLoanedKey ( int  logId,
const int &  loankey 
)
private

◆ setMediaKey()

bool EditBooksModel::setMediaKey ( int  logId,
const int &  mediakey 
)
private

◆ setNotes()

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

◆ setTitle()

bool EditBooksModel::setTitle ( int  logId,
const QString &  title 
)
private

Member Data Documentation

◆ books

Books EditBooksModel::books

◆ d

EditBooksPrivate* EditBooksModel::d
private

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