FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bitcoin/src/qt/qvalidatedlineedit.cpp at master · blaklite/bitcoin · GitHub
blaklite
/
bitcoin
Public
forked from
bitcoin/bitcoin
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
bitcoin
/
src
/
qt
/
qvalidatedlineedit.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (38 loc) · 771 Bytes
Breadcrumbs
bitcoin
/
src
/
qt
/
qvalidatedlineedit.cpp
Copy path
File metadata and controls
45 lines (38 loc) · 771 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
include
"
qvalidatedlineedit.h
"
#
include
"
guiconstants.h
"
QValidatedLineEdit::QValidatedLineEdit
(QWidget *parent) :
QLineEdit(parent), valid(
true
)
{
connect
(
this
,
SIGNAL
(
textChanged
(QString)),
this
,
SLOT
(
markValid
()));
}
void
QValidatedLineEdit::setValid
(
bool
valid)
{
if
(valid ==
this
->
valid
)
{
return
;
}
if
(valid)
{
setStyleSheet
(
"
"
);
}
else
{
setStyleSheet
(
STYLE_INVALID
);
}
this
->
valid
= valid;
}
void
QValidatedLineEdit::focusInEvent
(QFocusEvent *evt)
{
//
Clear invalid flag on focus
setValid
(
true
);
QLineEdit::focusInEvent
(evt);
}
void
QValidatedLineEdit::markValid
()
{
setValid
(
true
);
}
void
QValidatedLineEdit::clear
()
{
setValid
(
true
);
QLineEdit::clear
();
}
Back
|
FazBrowse Home
|
New Git URL