exprwnd.h (kdbg-3.0.0) | : | exprwnd.h (kdbg-3.0.1) | ||
---|---|---|---|---|
skipping to change at line 41 | skipping to change at line 41 | |||
NKaddress //!< a dereferenced pointer | NKaddress //!< a dereferenced pointer | |||
}; | }; | |||
NameKind m_nameKind; | NameKind m_nameKind; | |||
const TypeInfo* m_type; //!< the type of struct if it cou ld be derived | const TypeInfo* m_type; //!< the type of struct if it cou ld be derived | |||
int m_exprIndex; //!< used in struct value update | int m_exprIndex; //!< used in struct value update | |||
bool m_exprIndexUseGuard; //!< ditto; if guard expr should be used | bool m_exprIndexUseGuard; //!< ditto; if guard expr should be used | |||
QString m_partialValue; //!< while struct value update is in prog ress | QString m_partialValue; //!< while struct value update is in prog ress | |||
VarTree(VarTree* parent, ExprValue* v); | VarTree(VarTree* parent, ExprValue* v); | |||
VarTree(ExprWnd* parent, ExprValue* v); | VarTree(ExprWnd* parent, ExprValue* v); | |||
virtual ~VarTree(); | ~VarTree(); | |||
public: | public: | |||
QString computeExpr() const; | QString computeExpr() const; | |||
bool isToplevelExpr() const; | bool isToplevelExpr() const; | |||
/** is this element an ancestor of (or equal to) child? */ | /** is this element an ancestor of (or equal to) child? */ | |||
bool isAncestorEq(const VarTree* child) const; | bool isAncestorEq(const VarTree* child) const; | |||
/** update the regular value; returns whether a repaint is necessary */ | /** update the regular value; returns whether a repaint is necessary */ | |||
bool updateValue(const QString& newValue); | bool updateValue(const QString& newValue); | |||
/** update the "quick member" value; returns whether repaint is necessary */ | /** update the "quick member" value; returns whether repaint is necessary */ | |||
bool updateStructValue(const QString& newValue); | bool updateStructValue(const QString& newValue); | |||
/** find out the type of this value using the child values */ | /** find out the type of this value using the child values */ | |||
skipping to change at line 66 | skipping to change at line 66 | |||
bool isWcharT() const; | bool isWcharT() const; | |||
QString getText() const { return text(0); } | QString getText() const { return text(0); } | |||
using QTreeWidgetItem::setText; | using QTreeWidgetItem::setText; | |||
void setText(const QString& t) { QTreeWidgetItem::setText(0, t); } | void setText(const QString& t) { QTreeWidgetItem::setText(0, t); } | |||
void setPixmap(const QPixmap& p) { QTreeWidgetItem::setIcon(0, QIcon(p)); } | void setPixmap(const QPixmap& p) { QTreeWidgetItem::setIcon(0, QIcon(p)); } | |||
QString value() const { return m_baseValue; } | QString value() const { return m_baseValue; } | |||
QString displayedValue() const; | QString displayedValue() const; | |||
VarTree* child(int i) const { return static_cast<VarTree*>(QTreeWidgetItem:: child(i)); } | VarTree* child(int i) const { return static_cast<VarTree*>(QTreeWidgetItem:: child(i)); } | |||
virtual QVariant data(int column, int role) const; | QVariant data(int column, int role) const override; | |||
private: | private: | |||
void updateValueText(); | void updateValueText(); | |||
QString m_baseValue; //!< The "normal value" that the driver reported | QString m_baseValue; //!< The "normal value" that the driver reported | |||
QString m_structValue; //!< The "quick member" value | QString m_structValue; //!< The "quick member" value | |||
bool m_baseChanged : 1; | bool m_baseChanged : 1; | |||
bool m_structChanged : 1; | bool m_structChanged : 1; | |||
}; | }; | |||
/** | /** | |||
skipping to change at line 111 | skipping to change at line 111 | |||
{ | { | |||
Q_OBJECT | Q_OBJECT | |||
public: | public: | |||
ValueEdit(ExprWnd* parent); | ValueEdit(ExprWnd* parent); | |||
~ValueEdit(); | ~ValueEdit(); | |||
void terminate(bool commit); | void terminate(bool commit); | |||
VarTree* m_item; | VarTree* m_item; | |||
bool m_finished; | bool m_finished; | |||
protected: | protected: | |||
void keyPressEvent(QKeyEvent *e); | void keyPressEvent(QKeyEvent *e) override; | |||
void focusOutEvent(QFocusEvent* ev); | void focusOutEvent(QFocusEvent* ev) override; | |||
void paintEvent(QPaintEvent* e); | void paintEvent(QPaintEvent* e) override; | |||
public slots: | public slots: | |||
void slotSelectionChanged(); | void slotSelectionChanged(); | |||
signals: | signals: | |||
void done(VarTree*, const QString&); | void done(VarTree*, const QString&); | |||
}; | }; | |||
class ExprWnd : public QTreeWidget | class ExprWnd : public QTreeWidget | |||
{ | { | |||
Q_OBJECT | Q_OBJECT | |||
public: | public: | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added |