LogarithmPlotter/qml/Icon.qml

38 lines
1.1 KiB
QML
Raw Normal View History

/**
* Logarithm Graph Creator - Create graphs with logarithm scales.
* Copyright (C) 2020 Ad5001
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2020-12-22 22:19:00 +00:00
import QtQuick 2.7
import QtGraphicalEffects 1.0
Item {
property color color: "#000000"
property alias source: img.source
Image {
id: img
height: parent.height
width: parent.width
smooth: true
visible: false
}
ColorOverlay {
anchors.fill: img
source: img
color: parent.color
}
}