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.
18 lines
371 B
18 lines
371 B
#include "cqlineedit.h"
|
|
|
|
CQLineEdit::CQLineEdit(QWidget *parent) : QLineEdit(parent)
|
|
{
|
|
this->setFocusPolicy(Qt::StrongFocus);
|
|
}
|
|
|
|
void CQLineEdit::focusInEvent(QFocusEvent *event)
|
|
{
|
|
QLineEdit::focusInEvent(event);
|
|
emit GetFocus();
|
|
}
|
|
|
|
void CQLineEdit::focusOutEvent(QFocusEvent *event)
|
|
{
|
|
QLineEdit::focusOutEvent(event);
|
|
emit LostFocus(this->text());
|
|
}
|
|
|