##// END OF EJS Templates
Fixed Win32 build but lppmonplot python wrapper still broken!
Fixed Win32 build but lppmonplot python wrapper still broken!

File last commit:

r0:1aa783210b8e default
r49:d9c54528bd30 Win32 build Ok default
Show More
qhexspinbox.cpp
28 lines | 480 B | text/x-c | CppLexer
Jeandet Alexis
First init of SocExplorer Repository.
r0 #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();
}