From 21f1f82d07a3e2e220f886fbab8a1da68ae91c7b Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Fri, 7 Mar 2003 20:33:40 +0000 Subject: [PATCH] Use a fixed-width font in the register window. --- kdbg/regwnd.cpp | 7 +++++++ kdbg/regwnd.h | 1 + 2 files changed, 8 insertions(+) diff --git a/kdbg/regwnd.cpp b/kdbg/regwnd.cpp index 02f0b09..cebf2e5 100644 --- a/kdbg/regwnd.cpp +++ b/kdbg/regwnd.cpp @@ -182,6 +182,7 @@ RegisterView::RegisterView(QWidget* parent, const char* name) : m_mode(16) { setSorting(-1); + setFont(KGlobalSettings::fixedFont()); QPixmap iconRegs = BarIcon("regs.xpm"); QPixmap iconWatchcoded = BarIcon("watchcoded.xpm"); @@ -298,4 +299,10 @@ void RegisterView::slotModeChange(int code) } } +void RegisterView::paletteChange(const QPalette& oldPal) +{ + setFont(KGlobalSettings::fixedFont()); + QListView::paletteChange(oldPal); +} + #include "regwnd.moc" diff --git a/kdbg/regwnd.h b/kdbg/regwnd.h index 7f4f66b..cba19c4 100644 --- a/kdbg/regwnd.h +++ b/kdbg/regwnd.h @@ -25,6 +25,7 @@ protected slots: void updateRegisters(QList&); private: + void paletteChange(const QPalette& oldPal); QListViewItem* m_lastItem; QPopupMenu* m_modemenu; int m_mode; -- 2.11.4.GIT