Qt 4.8
Classes | Functions
qdatawidgetmapper.cpp File Reference
#include "qdatawidgetmapper.h"
#include "qabstractitemmodel.h"
#include "qitemdelegate.h"
#include "qmetaobject.h"
#include "qwidget.h"
#include "private/qobject_p.h"
#include "private/qabstractitemmodel_p.h"
#include "moc_qdatawidgetmapper.cpp"

Go to the source code of this file.

Classes

class  QDataWidgetMapperPrivate
 
struct  QDataWidgetMapperPrivate::WidgetMapper
 
class  QFocusHelper
 

Functions

static bool qContainsIndex (const QModelIndex &idx, const QModelIndex &topLeft, const QModelIndex &bottomRight)
 

Function Documentation

◆ qContainsIndex()

static bool qContainsIndex ( const QModelIndex idx,
const QModelIndex topLeft,
const QModelIndex bottomRight 
)
static

Definition at line 178 of file qdatawidgetmapper.cpp.

Referenced by QDataWidgetMapperPrivate::_q_dataChanged().

180 {
181  return idx.row() >= topLeft.row() && idx.row() <= bottomRight.row()
182  && idx.column() >= topLeft.column() && idx.column() <= bottomRight.column();
183 }
int row() const
Returns the row this model index refers to.
int column() const
Returns the column this model index refers to.