diff options
| author | xiphon <xiphon@protonmail.com> | 2021-03-17 11:32:11 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2021-03-17 12:00:17 +0000 |
| commit | 34d3f6575a8f46e206d67ed7f2eb04ca68907bf8 (patch) | |
| tree | 9328120228cb6845b9a424a7b5804b595db95acd /components/NavbarItem.qml | |
| parent | e94ac7c75d713a209b4cdfa2e02459812b459a49 (diff) | |
| download | monzero-gui-34d3f6575a8f46e206d67ed7f2eb04ca68907bf8.tar.gz monzero-gui-34d3f6575a8f46e206d67ed7f2eb04ca68907bf8.tar.xz monzero-gui-34d3f6575a8f46e206d67ed7f2eb04ca68907bf8.zip | |
Navbar: reimplement as a reusable component, drop redundant code
Diffstat (limited to 'components/NavbarItem.qml')
| -rw-r--r-- | components/NavbarItem.qml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/components/NavbarItem.qml b/components/NavbarItem.qml new file mode 100644 index 00000000..5d4cae06 --- /dev/null +++ b/components/NavbarItem.qml @@ -0,0 +1,37 @@ +// Copyright (c) 2021, The Monero Project +// +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of +// conditions and the following disclaimer. +// +// 2. Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// +// 3. Neither the name of the copyright holder nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF +// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +import QtQuick 2.9 + +QtObject { + property bool active: false + property string text + property bool visible: true + + signal selected() +} |
