~ubuntu-branches/ubuntu/vivid/openmsx-debugger/vivid-proposed

« back to all changes in this revision

Viewing changes to src/StackViewer.cpp

  • Committer: Package Import Robot
  • Author(s): Bas Wijnen
  • Date: 2014-10-06 21:24:04 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20141006212404-hhvl91fgs00825f4
Tags: 0.0.0.svn20141006-1
* New snapshot including arm64 support.  (Closes: #759437)
* Adapt build system for qt5.
* Upgrade standards version to 3.9.6.  No changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include "StackViewer.h"
4
4
#include "OpenMSXConnection.h"
5
5
#include "CommClient.h"
 
6
#include "Settings.h"
6
7
#include <QScrollBar>
7
8
#include <QPaintEvent>
8
9
#include <QPainter>
46
47
        setBackgroundRole(QPalette::Base);
47
48
        setSizePolicy(QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred));
48
49
 
49
 
        setFont(QFont("Courier New", 12));
 
50
        setFont(Settings::get().font(Settings::HEX_FONT));
50
51
 
51
52
        stackPointer = 0;
52
53
        topAddress = 0;
120
121
 
121
122
        // calc layout (not optimal)
122
123
        int xAddr = frameL + 8;
123
 
        int xStack = xAddr + fontMetrics().width("FFFF ");
 
124
        int xStack = xAddr + fontMetrics().width("FFFFF");
124
125
        int y = frameT + h - 1;
125
126
        int address = topAddress;
126
127