Workspace 6.21.5
Public Member Functions | List of all members
GlobalsDiffModelItem Class Reference

#include <Tools/GlobalsComparison/Application/Model/globalsdiffmodelitem.h>

Public Member Functions

 GlobalsDiffModelItem (bool isA, const QString &globalName, DataExecution::SerializedItem &serializedItem, GlobalsDiffModel &model, GlobalsDiffModelItem *parent)
 
 GlobalsDiffModelItem (bool isA, DataExecution::SerializedItem &serializedItem, GlobalsDiffModel &model, GlobalsDiffModelItem *parent)
 
 GlobalsDiffModelItem (const GlobalsDiffModelItem &)=delete
 
 GlobalsDiffModelItem (const QString &nspace, GlobalsDiffModel &model, GlobalsDiffModelItem *parent)
 
 GlobalsDiffModelItem (GlobalsDiffModel &model, GlobalsDiffModelItem *parent)
 
 ~GlobalsDiffModelItem ()
 
void clearChildren (bool isA)
 
CopySelectorWidgetcreateCopySelector (bool leftToRight, QWidget *parent)
 
CustomWidgetWrappercreateEditor (GlobalsDiffModel::Column col, QWidget *parent) const
 
QWidget * createEditorSelector (QWidget *parent) const
 
GlobalsDiffModelItemgetChild (int row)
 
int getChildCount () const
 
QString getDisplayName () const
 
const QIcon & getDuplicatedIcon ()
 
const QIcon & getErrorIcon ()
 
QString getGlobalName () const
 
const QIcon & getInconsistentIcon ()
 
QString getNamespace () const
 
GlobalsDiffModelItemgetParent ()
 
const GlobalsDiffModelItemgetParent () const
 
bool getPresent (bool isA) const
 
QVariant getRoleData (int column, int role) const
 Returns the data stored under the given role for the column referred to.
 
int getRow () const
 
QString getScopedGlobalName () const
 
QValidator * getValidator (bool isA)
 
QString getValue (bool isA) const
 
bool hasChildren () const
 
void initData (bool isA, const DataExecution::SerializedItem &serializedItem)
 
void insertChild (GlobalsDiffModelItem &item, int index=-1)
 
bool isNamespaceItem ()
 
bool modifyValue (bool isA, QString value)
 
void moveChild (int fromIndex, int toIndex)
 
GlobalsDiffModelItemoperator= (const GlobalsDiffModelItem &)=delete
 
void refreshBackgroundRoles ()
 
void removeAllChildren ()
 
bool removeChild (GlobalsDiffModelItem &item)
 
void setPreferredWidget (GlobalsDiffModel::Column col, const QString &widgetName, const QSize &sizeHint)
 
void setRoleData (int column, int role, const QVariant &d) const
 Sets the role data for the given column to value.
 
bool textIsInconsistent (bool isA) const
 

Constructor & Destructor Documentation

◆ GlobalsDiffModelItem() [1/5]

◆ GlobalsDiffModelItem() [2/5]

GlobalsDiffModelItem ( bool  isA,
const QString &  globalName,
DataExecution::SerializedItem serializedItem,
GlobalsDiffModel model,
GlobalsDiffModelItem parent 
)

◆ GlobalsDiffModelItem() [3/5]

GlobalsDiffModelItem ( bool  isA,
DataExecution::SerializedItem serializedItem,
GlobalsDiffModel model,
GlobalsDiffModelItem parent 
)

◆ GlobalsDiffModelItem() [4/5]

GlobalsDiffModelItem ( const QString &  nspace,
GlobalsDiffModel model,
GlobalsDiffModelItem parent 
)

◆ GlobalsDiffModelItem() [5/5]

◆ ~GlobalsDiffModelItem()

Member Function Documentation

◆ clearChildren()

void clearChildren ( bool  isA)

◆ createCopySelector()

CopySelectorWidget * createCopySelector ( bool  leftToRight,
QWidget *  parent 
)

◆ createEditor()

CustomWidgetWrapper * createEditor ( GlobalsDiffModel::Column  col,
QWidget *  parent 
) const

◆ createEditorSelector()

QWidget * createEditorSelector ( QWidget *  parent) const

◆ getChild()

GlobalsDiffModelItem * getChild ( int  row)

◆ getChildCount()

int getChildCount ( ) const

◆ getDisplayName()

QString getDisplayName ( ) const

◆ getDuplicatedIcon()

const QIcon & getDuplicatedIcon ( )

◆ getErrorIcon()

const QIcon & getErrorIcon ( )

◆ getGlobalName()

QString getGlobalName ( ) const

◆ getInconsistentIcon()

const QIcon & getInconsistentIcon ( )

◆ getNamespace()

QString getNamespace ( ) const

◆ getParent() [1/2]

GlobalsDiffModelItem * getParent ( )

◆ getParent() [2/2]

const GlobalsDiffModelItem * getParent ( ) const

◆ getPresent()

bool getPresent ( bool  isA) const

◆ getRoleData()

QVariant getRoleData ( int  column,
int  role 
) const
Parameters
columnThe GlobalsDiffColumn for which data is being requested
roleThe role for which data is being requested. See the Qt documentation for QAbstractItemModel::data() for more details.
Returns
The data for the specified role, or if no such data exists an invalid QVariant will be returned instead.
See also
setRoleData()

◆ getRow()

int getRow ( ) const

◆ getScopedGlobalName()

QString getScopedGlobalName ( ) const

◆ getValidator()

QValidator * getValidator ( bool  isA)

◆ getValue()

QString getValue ( bool  isA) const

◆ hasChildren()

bool hasChildren ( ) const

◆ initData()

void initData ( bool  isA,
const DataExecution::SerializedItem serializedItem 
)

◆ insertChild()

void insertChild ( GlobalsDiffModelItem item,
int  index = -1 
)

◆ isNamespaceItem()

bool isNamespaceItem ( )

◆ modifyValue()

bool modifyValue ( bool  isA,
QString  value 
)

◆ moveChild()

void moveChild ( int  fromIndex,
int  toIndex 
)

◆ operator=()

GlobalsDiffModelItem & operator= ( const GlobalsDiffModelItem )
delete

◆ refreshBackgroundRoles()

void refreshBackgroundRoles ( )

◆ removeAllChildren()

void removeAllChildren ( )

◆ removeChild()

bool removeChild ( GlobalsDiffModelItem item)

◆ setPreferredWidget()

void setPreferredWidget ( GlobalsDiffModel::Column  col,
const QString &  widgetName,
const QSize &  sizeHint 
)

◆ setRoleData()

void setRoleData ( int  column,
int  role,
const QVariant &  d 
) const
Parameters
columnThe GlobalsDiffColumn for which the data is being set or cleared
roleThe role for which data is being set or cleared. See the Qt documentation for QAbstractItemModel::data() for more details.
dThe data to set for the specified role. If this is an invalid QVariant, it will be interpreted as the client wants to clear the data for the specified role.
See also
getRoleData()

◆ textIsInconsistent()

bool textIsInconsistent ( bool  isA) const