forked from ccsens_hardware/qt_qcp_show
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
366 B
19 lines
366 B
#include "cqspinbox.h"
|
|
|
|
CQSpinBox::CQSpinBox(QWidget *parent) : QSpinBox(parent)
|
|
{
|
|
// this->setFocusPolicy(Qt::StrongFocus);
|
|
}
|
|
|
|
void CQSpinBox::focusInEvent(QFocusEvent *event)
|
|
{
|
|
QSpinBox::focusInEvent(event);
|
|
emit GetFocus();
|
|
}
|
|
|
|
void CQSpinBox::focusOutEvent(QFocusEvent *event)
|
|
{
|
|
QSpinBox::focusOutEvent(event);
|
|
emit LostFocus(this->text());
|
|
}
|
|
|
|
|