forked from qt-creator/qt-creator
Debugger: Fix memory display
- Watchwindow: Do not open Address dialog if menu is canceled (act = 0 matching the unitialized unknown memory action) - Actually pass the address of the dialog to the agent - Make the "Open Memory editor..." action always visible to be able to look at const char *x pointing at y - Improve the address dialog with checking and dialog button box - Explicitly pass the quint64 around - Translate & purge
This commit is contained in:
@@ -36,6 +36,8 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QModelIndex;
|
||||
class QPushButton;
|
||||
class QLineEdit;
|
||||
class QDialogButtonBox;
|
||||
|
||||
namespace Ui {
|
||||
class AttachCoreDialog;
|
||||
@@ -171,6 +173,26 @@ private:
|
||||
Ui::StartRemoteDialog *m_ui;
|
||||
};
|
||||
|
||||
class AddressDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AddressDialog(QWidget *parent = 0);
|
||||
quint64 address() const;
|
||||
|
||||
virtual void accept();
|
||||
|
||||
private slots:
|
||||
void textChanged();
|
||||
|
||||
private:
|
||||
void setOkButtonEnabled(bool v);
|
||||
bool isOkButtonEnabled() const;
|
||||
|
||||
bool isValid() const;
|
||||
|
||||
QLineEdit *m_lineEdit;
|
||||
QDialogButtonBox *m_box;
|
||||
};
|
||||
|
||||
} // namespace Debugger
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user