##// END OF EJS Templates
Added lost SocExplorerPlot wrapper and win32 libelf binary.
Added lost SocExplorerPlot wrapper and win32 libelf binary.

File last commit:

r0:1aa783210b8e default
r7:1abdb58baffd default
Show More
qhexspinbox.cpp
28 lines | 480 B | text/x-c | CppLexer
#include "qhexspinbox.h"
QHexSpinBox::QHexSpinBox(QWidget *parent) :
QSpinBox(parent)
{
this->setWrapping(true);
this->setRange(0x80000000,0x7fffffff);
}
QString QHexSpinBox::textFromValue(int value) const
{
return "0x" + QString::number((uint)value,16).toUpper();
}
int QHexSpinBox::valueFromText(const QString &text) const
{
bool ok;
return text.toUInt( &ok, 16 );
}
void QHexSpinBox::show()
{
QSpinBox::show();
}