whyclwt
2022-05-18 bc4a995082e242eb848c01ff98bf03737c229722
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "custom_lineedit.h"
 
Custom_LineEdit::Custom_LineEdit(QWidget *parent):
    QLineEdit(parent)
{
 
}
 
void Custom_LineEdit::mousePressEvent(QMouseEvent *event)
{
    if(event->button() == Qt::LeftButton)
    {
        emit custom_click();
    }
 
    QLineEdit::mousePressEvent(event);
}
 
void Custom_LineEdit::mouseMoveEvent(QMouseEvent *event)
{
    (void)(event);
}
 
void Custom_LineEdit::mouseDoubleClickEvent(QMouseEvent *event)
{
    (void)(event);
}