Rename LineEditFocusWidget to RDLineEdit

* It seems due to deficiencies in Qt's design, there will be a
  substantial need for these small custom subclasses just to add basic
  functionality that should have been present in the original. So we'll
  adopt a naming scheme of QFooBar -> RDFooBar for this 'almost the
  same widget' type subclassing, compared to more custom/changed ones.
This commit is contained in:
baldurk
2016-10-04 19:54:24 +02:00
parent 39cd42882b
commit 7ec3049844
8 changed files with 38 additions and 38 deletions
+21
View File
@@ -0,0 +1,21 @@
#include "RDLineEdit.h"
RDLineEdit::RDLineEdit(QWidget *parent) : QLineEdit(parent)
{
}
RDLineEdit::~RDLineEdit()
{
}
void RDLineEdit::focusInEvent(QFocusEvent *e)
{
QLineEdit::focusInEvent(e);
emit(enter());
}
void RDLineEdit::focusOutEvent(QFocusEvent *e)
{
QLineEdit::focusOutEvent(e);
emit(leave());
}