##// END OF EJS Templates
New Plugin Manager and interface to remove all the previous crap!...
New Plugin Manager and interface to remove all the previous crap! Let's use Qt plugin API and make it much simpler.

File last commit:

r0:1aa783210b8e default
r118:de85e8465e67 tip 1.0
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();
}