"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/qml/views/keyframes/Ruler.qml" between
shotcut-20.09.01.tar.gz and shotcut-20.09.13.tar.gz

About: Shotcut is a cross-platform (Qt) advanced video editor.

Ruler.qml  (shotcut-20.09.01):Ruler.qml  (shotcut-20.09.13)
skipping to change at line 22 skipping to change at line 22
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 1.0 import QtQuick.Controls 1.0
Rectangle { Rectangle {
property real intervalSeconds: 5 * Math.max(1, Math.floor(1.5 / timeScale)) property real intervalSeconds: (timeScale > 5)? 1 : (5 * Math.max(1, Math.fl oor(1.5 / timeScale)))
SystemPalette { id: activePalette } SystemPalette { id: activePalette }
id: rulerTop id: rulerTop
height: 28 height: 28
color: activePalette.base color: activePalette.base
Repeater { Repeater {
model: parent.width / (intervalSeconds * profile.fps * timeScale) model: parent.width / (intervalSeconds * profile.fps * timeScale)
Rectangle { Rectangle {
anchors.bottom: rulerTop.bottom anchors.bottom: rulerTop.bottom
height: 18 height: 18
width: 1 width: 1
color: activePalette.windowText color: activePalette.windowText
x: index * intervalSeconds * profile.fps * timeScale x: index * intervalSeconds * profile.fps * timeScale
visible: ((x + width) > scrollView.flickableItem.contentX) && // r
ight edge
(x < scrollView.flickableItem.contentX + scroll
View.width) && // left edge
((y + height) > scrollView.flickableItem.contentY) && // b
ottom edge
(y < scrollView.flickableItem.contentY + scroll
View.height) // top edge
Label { Label {
anchors.left: parent.right anchors.left: parent.right
anchors.leftMargin: 2 anchors.leftMargin: 2
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.bottomMargin: 2 anchors.bottomMargin: 2
color: activePalette.windowText color: activePalette.windowText
text: application.timecode(index * intervalSeconds * profile.fps + 2).substr(0, 8) text: application.timecode(index * intervalSeconds * profile.fps + 2).substr(0, 8)
} }
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)