From ecb9ea1ace5c379800c5df8b5438e87ee7649b66 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Sun, 3 Dec 2006 20:47:46 +0100 Subject: [PATCH] Use different column headers in the Locals and the Watches windows. Locals window: "Variable" Watches window: "Expression" --- kdbg/dbgmainwnd.cpp | 2 +- kdbg/exprwnd.cpp | 4 ++-- kdbg/exprwnd.h | 2 +- kdbg/mainwndbase.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kdbg/dbgmainwnd.cpp b/kdbg/dbgmainwnd.cpp index c2390fa..ad5e8c6 100644 --- a/kdbg/dbgmainwnd.cpp +++ b/kdbg/dbgmainwnd.cpp @@ -54,7 +54,7 @@ DebuggerMainWnd::DebuggerMainWnd(const char* name) : m_btWindow = new QListBox(dw1, "backtrace"); dw1->setWidget(m_btWindow); KDockWidget* dw2 = createDockWidget("Locals", p, 0, i18n("Locals")); - m_localVariables = new ExprWnd(dw2, "locals"); + m_localVariables = new ExprWnd(dw2, i18n("Variable"), "locals"); dw2->setWidget(m_localVariables); KDockWidget* dw3 = createDockWidget("Watches", p, 0, i18n("Watches")); m_watches = new WatchWindow(dw3, "watches"); diff --git a/kdbg/exprwnd.cpp b/kdbg/exprwnd.cpp index f96e6b1..392936f 100644 --- a/kdbg/exprwnd.cpp +++ b/kdbg/exprwnd.cpp @@ -275,11 +275,11 @@ int ExprValue::childCount() const -ExprWnd::ExprWnd(QWidget* parent, const char* name) : +ExprWnd::ExprWnd(QWidget* parent, const QString& colHeader, const char* name) : QListView(parent, name), m_edit(0) { - addColumn(i18n("Variable")); + addColumn(colHeader); addColumn(i18n("Value")); setSorting(-1); // do not sort items setColumnWidthMode(0, Manual); diff --git a/kdbg/exprwnd.h b/kdbg/exprwnd.h index c0a8ed0..ddfb3dc 100644 --- a/kdbg/exprwnd.h +++ b/kdbg/exprwnd.h @@ -109,7 +109,7 @@ class ExprWnd : public QListView { Q_OBJECT public: - ExprWnd(QWidget* parent, const char* name); + ExprWnd(QWidget* parent, const QString& colHeader, const char* name); ~ExprWnd(); /** fills the list with the expressions at the topmost level */ diff --git a/kdbg/mainwndbase.cpp b/kdbg/mainwndbase.cpp index 1544f21..42f3aa0 100644 --- a/kdbg/mainwndbase.cpp +++ b/kdbg/mainwndbase.cpp @@ -41,7 +41,7 @@ WatchWindow::WatchWindow(QWidget* parent, const char* name, WFlags f) : m_watchEdit(this, "watch_edit"), m_watchAdd(i18n(" Add "), this, "watch_add"), m_watchDelete(i18n(" Del "), this, "watch_delete"), - m_watchVariables(this, "watch_variables"), + m_watchVariables(this, i18n("Expression"), "watch_variables"), m_watchV(this, 0), m_watchH(0) { -- 2.11.4.GIT