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:
Friedemann Kleint
2009-08-19 14:41:51 +02:00
parent 2bc577dfa3
commit 76c226dfdb
8 changed files with 151 additions and 302 deletions

View File

@@ -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