##// END OF EJS Templates
New register explorer WIP...
New register explorer WIP !!!!!!!!!!!!!!!!!!!!!!!!!!!!! REMOVED OLD genericPySysdriver interface Now the plugins are directly exposed to python. ABI not compatible with previous plugins. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!

File last commit:

r0:1aa783210b8e default
r79:3440ba47d0f1 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();
}