2020-12-25 18:55:47 +00:00
|
|
|
/**
|
2021-06-18 21:56:22 +00:00
|
|
|
* LogarithmPlotter - Create graphs with logarithm scales.
|
2021-05-03 15:31:37 +00:00
|
|
|
* Copyright (C) 2021 Ad5001
|
2020-12-25 18:55:47 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
}
|
|
|
|
}
|