Changeset 11104 for trunk/FACT++/gui


Ignore:
Timestamp:
06/22/11 13:50:52 (13 years ago)
Author:
tbretz
Message:
Properly display a 32bit word.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/SpinBoxHex.h

    r10657 r11104  
    44#include <QSpinBox>
    55
    6 
     6#include <iostream>
    77class QRegExpValidator;
    88
     
    2525    QString textFromValue(int val) const
    2626    {
    27         return QString::number(val, 16).toLower();
     27        return QString::number(val, 16).right(8).rightJustified(8, '0').toLower().insert(4, ':');
    2828    }
    2929
Note: See TracChangeset for help on using the changeset viewer.