/* SPDX-FileCopyrightText: 2013-2017 Jan Grulich SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ import QtQuick 2.15 import org.kde.kirigami 2.10 as Kirigami import org.kde.plasma.networkmanagement as PlasmaNM Kirigami.PasswordField { property int securityType placeholderText: i18n("Password…") validator: RegularExpressionValidator { regularExpression: if (securityType == PlasmaNM.Enums.StaticWep) { /^(?:.{5}|[0-9a-fA-F]{10}|.{13}|[0-9a-fA-F]{26}){1}$/ } else { /^(?:.{8,64}){1}$/ } } }