good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
4e6defd6
Commit
4e6defd6
authored
Aug 25, 2014
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
Add txs as they come in
parent
1cdf0a2c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ethereal/assets/qml/views/wallet.qml
+8
-2
8 additions, 2 deletions
ethereal/assets/qml/views/wallet.qml
with
8 additions
and
2 deletions
ethereal/assets/qml/views/wallet.qml
+
8
−
2
View file @
4e6defd6
...
@@ -5,6 +5,7 @@ import QtQuick.Dialogs 1.0;
...
@@ -5,6 +5,7 @@ import QtQuick.Dialogs 1.0;
import
QtQuick
.
Window
2.1
;
import
QtQuick
.
Window
2.1
;
import
QtQuick
.
Controls
.
Styles
1.1
import
QtQuick
.
Controls
.
Styles
1.1
import
Ethereum
1.0
import
Ethereum
1.0
import
"
../../ext/filter.js
"
as
Eth
Rectangle
{
Rectangle
{
id
:
root
id
:
root
...
@@ -151,10 +152,15 @@ Rectangle {
...
@@ -151,10 +152,15 @@ Rectangle {
model
:
ListModel
{
model
:
ListModel
{
id
:
txModel
id
:
txModel
Component.onCompleted
:
{
Component.onCompleted
:
{
var
messages
=
JSON
.
parse
(
eth
.
messages
({
latest
:
-
1
,
from
:
eth
.
key
().
address
}))
var
filter
=
new
Eth
.
Filter
({
latest
:
-
1
,
from
:
eth
.
key
().
address
})
filter
.
changed
(
addTxs
)
addTxs
(
filter
.
messages
())
}
function
addTxs
(
messages
)
{
for
(
var
i
=
0
;
i
<
messages
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
messages
.
length
;
i
++
)
{
var
message
=
messages
[
i
];
var
message
=
messages
[
i
];
t
his
.
insert
(
0
,
{
num
:
i
,
from
:
message
.
from
,
to
:
message
.
to
,
value
:
eth
.
numberToHuman
(
message
.
value
)})
t
xModel
.
insert
(
0
,
{
num
:
txModel
.
count
,
from
:
message
.
from
,
to
:
message
.
to
,
value
:
eth
.
numberToHuman
(
message
.
value
)})
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment