#include <Tools/GlobalsComparison/Application/Model/globalsdiffmodelitem.h>
|
| 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) |
|
CopySelectorWidget * | createCopySelector (bool leftToRight, QWidget *parent) |
|
CustomWidgetWrapper * | createEditor (GlobalsDiffModel::Column col, QWidget *parent) const |
|
QWidget * | createEditorSelector (QWidget *parent) const |
|
GlobalsDiffModelItem * | getChild (int row) |
|
int | getChildCount () const |
|
QString | getDisplayName () const |
|
const QIcon & | getDuplicatedIcon () |
|
const QIcon & | getErrorIcon () |
|
QString | getGlobalName () const |
|
const QIcon & | getInconsistentIcon () |
|
QString | getNamespace () const |
|
GlobalsDiffModelItem * | getParent () |
|
const GlobalsDiffModelItem * | getParent () 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) |
|
GlobalsDiffModelItem & | operator= (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 |
|
◆ GlobalsDiffModelItem() [1/5]
◆ GlobalsDiffModelItem() [2/5]
◆ GlobalsDiffModelItem() [3/5]
◆ GlobalsDiffModelItem() [4/5]
◆ GlobalsDiffModelItem() [5/5]
◆ ~GlobalsDiffModelItem()
◆ clearChildren()
void clearChildren |
( |
bool |
isA | ) |
|
◆ createCopySelector()
◆ createEditor()
◆ createEditorSelector()
QWidget * createEditorSelector |
( |
QWidget * |
parent | ) |
const |
◆ getChild()
◆ 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]
◆ getParent() [2/2]
◆ getPresent()
bool getPresent |
( |
bool |
isA | ) |
const |
◆ getRoleData()
QVariant getRoleData |
( |
int |
column, |
|
|
int |
role |
|
) |
| const |
- Parameters
-
column | The GlobalsDiffColumn for which data is being requested |
role | The 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()
◆ getScopedGlobalName()
QString getScopedGlobalName |
( |
| ) |
const |
◆ getValidator()
QValidator * getValidator |
( |
bool |
isA | ) |
|
◆ getValue()
QString getValue |
( |
bool |
isA | ) |
const |
◆ hasChildren()
bool hasChildren |
( |
| ) |
const |
◆ initData()
◆ insertChild()
◆ isNamespaceItem()
◆ modifyValue()
bool modifyValue |
( |
bool |
isA, |
|
|
QString |
value |
|
) |
| |
◆ moveChild()
void moveChild |
( |
int |
fromIndex, |
|
|
int |
toIndex |
|
) |
| |
◆ operator=()
◆ refreshBackgroundRoles()
void refreshBackgroundRoles |
( |
| ) |
|
◆ removeAllChildren()
void removeAllChildren |
( |
| ) |
|
◆ removeChild()
◆ setPreferredWidget()
◆ setRoleData()
void setRoleData |
( |
int |
column, |
|
|
int |
role, |
|
|
const QVariant & |
d |
|
) |
| const |
- Parameters
-
column | The GlobalsDiffColumn for which the data is being set or cleared |
role | The role for which data is being set or cleared. See the Qt documentation for QAbstractItemModel::data() for more details. |
d | The 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 |