15 lines
295 B
C++
15 lines
295 B
C++
|
|
#include "customLineEdit.h"
|
||
|
|
#include <QMouseEvent>
|
||
|
|
|
||
|
|
CustomLineEdit::CustomLineEdit(QWidget* parent)
|
||
|
|
: QLineEdit(parent)
|
||
|
|
{}
|
||
|
|
|
||
|
|
void CustomLineEdit::mousePressEvent(QMouseEvent* event)
|
||
|
|
{
|
||
|
|
if(event->button() == Qt::LeftButton)
|
||
|
|
emit clicked();
|
||
|
|
|
||
|
|
QLineEdit::mousePressEvent(event);
|
||
|
|
}
|