diff options
author | hjk <qtc-committer@nokia.com> | 2009-10-02 16:55:03 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-10-05 08:26:56 +0200 |
commit | ebccd4c02a9623fde9a865f09e284b244738c3ab (patch) | |
tree | ad382bab711e7117a2ec61b728a31dc90f226c32 /src | |
parent | bbe3bab2e8458ba20bf12c22120af84d80426fa6 (diff) | |
download | qt-creator-ebccd4c02a9623fde9a865f09e284b244738c3ab.tar.gz |
debugger: fix manual reload of registers
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/debugger/debuggermanager.h | 2 | ||||
-rw-r--r-- | src/plugins/debugger/registerwindow.cpp | 22 | ||||
-rw-r--r-- | src/plugins/debugger/registerwindow.h | 6 |
3 files changed, 3 insertions, 27 deletions
diff --git a/src/plugins/debugger/debuggermanager.h b/src/plugins/debugger/debuggermanager.h index 0cd0ca2aeb..8c588ddbea 100644 --- a/src/plugins/debugger/debuggermanager.h +++ b/src/plugins/debugger/debuggermanager.h @@ -231,7 +231,7 @@ public slots: public slots: // FIXME void showDebuggerOutput(const QString &msg) { showDebuggerOutput(LogDebug, msg); } -private slots: +//private slots: // FIXME void showDebuggerOutput(int channel, const QString &msg); void showDebuggerInput(int channel, const QString &msg); void showApplicationOutput(const QString &data); diff --git a/src/plugins/debugger/registerwindow.cpp b/src/plugins/debugger/registerwindow.cpp index 13c7a537c2..3bc52f2945 100644 --- a/src/plugins/debugger/registerwindow.cpp +++ b/src/plugins/debugger/registerwindow.cpp @@ -144,8 +144,7 @@ private: /////////////////////////////////////////////////////////////////////// RegisterWindow::RegisterWindow(DebuggerManager *manager) - : m_manager(manager), m_alwaysResizeColumnsToContents(true), - m_alwaysReloadContents(false) + : m_manager(manager), m_alwaysResizeColumnsToContents(true) { QAction *act = theDebuggerAction(UseAlternatingRowColors); setWindowTitle(tr("Registers")); @@ -167,9 +166,6 @@ void RegisterWindow::contextMenuEvent(QContextMenuEvent *ev) QMenu menu; QAction *actReload = menu.addAction(tr("Reload register listing")); - QAction *actAlwaysReload = menu.addAction(tr("Always reload register listing")); - actAlwaysReload->setCheckable(true); - actAlwaysReload->setChecked(m_alwaysReloadContents); menu.addSeparator(); QModelIndex idx = indexAt(ev->pos()); @@ -214,9 +210,7 @@ void RegisterWindow::contextMenuEvent(QContextMenuEvent *ev) else if (act == actAlwaysAdjust) setAlwaysResizeColumnsToContents(!m_alwaysResizeColumnsToContents); else if (act == actReload) - reloadContents(); - else if (act == actAlwaysReload) - setAlwaysReloadContents(!m_alwaysReloadContents); + m_manager->reloadRegisters(); else if (act == actShowMemory) (void) new MemoryViewAgent(m_manager, address); else if (act) { @@ -240,18 +234,6 @@ void RegisterWindow::setAlwaysResizeColumnsToContents(bool on) header()->setResizeMode(1, mode); } -void RegisterWindow::setAlwaysReloadContents(bool on) -{ - m_alwaysReloadContents = on; - if (m_alwaysReloadContents) - reloadContents(); -} - -void RegisterWindow::reloadContents() -{ - emit reloadRegisterRequested(); -} - void RegisterWindow::setModel(QAbstractItemModel *model) { diff --git a/src/plugins/debugger/registerwindow.h b/src/plugins/debugger/registerwindow.h index 394a1ca3c9..3e7da419cf 100644 --- a/src/plugins/debugger/registerwindow.h +++ b/src/plugins/debugger/registerwindow.h @@ -44,14 +44,9 @@ public: explicit RegisterWindow(DebuggerManager *manager); void setModel(QAbstractItemModel *model); -signals: - void reloadRegisterRequested(); - public slots: void resizeColumnsToContents(); void setAlwaysResizeColumnsToContents(bool on); - void reloadContents(); - void setAlwaysReloadContents(bool on); void setAlternatingRowColorsHelper(bool on) { setAlternatingRowColors(on); } private: @@ -61,7 +56,6 @@ private: DebuggerManager *m_manager; bool m_alwaysResizeColumnsToContents; - bool m_alwaysReloadContents; }; } // namespace Internal |