mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
198dfb338c
- move mnemonic seed - restore height into a separate page - pdf template - seed verification - responsive UI - accessibility
26 lines
968 B
QML
26 lines
968 B
QML
import QtQuick 2.9
|
|
import QtQuick.Dialogs 1.2
|
|
import QtQuick.Layouts 1.2
|
|
import QtQuick.Controls 2.0
|
|
|
|
import "../js/Wizard.js" as Wizard
|
|
import "../js/Utils.js" as Utils
|
|
import "../components" as MoneroComponents
|
|
|
|
GridLayout {
|
|
id: seedGrid
|
|
Layout.alignment: Qt.AlignHCenter
|
|
flow: GridLayout.TopToBottom
|
|
columns: wizardController.layoutScale == 1 ? 5 : wizardController.layoutScale == 2 ? 4 : wizardController.layoutScale == 3 ? 3 : 2
|
|
rows: wizardController.layoutScale == 1 ? 5 :wizardController.layoutScale == 2 ? 7 : wizardController.layoutScale == 3 ? 9 : 13
|
|
columnSpacing: wizardController.layoutScale == 1 ? 25 : 18
|
|
rowSpacing: 0
|
|
|
|
Component.onCompleted: {
|
|
var seed = wizardController.walletOptionsSeed.split(" ");
|
|
var component = Qt.createComponent("SeedListItem.qml");
|
|
for(var i = 0; i < seed.length; i++) {
|
|
component.createObject(seedGrid, {wordNumber: i, word: seed[i]});
|
|
}
|
|
}
|
|
}
|