Guest User

FullRepresentation.qml

a guest
May 4th, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import QtQuick 2.2
  2. import QtQuick.Layouts 1.1
  3. import org.kde.plasma.plasmoid 2.0
  4. import org.kde.plasma.core 2.0 as PlasmaCore
  5. import org.kde.kcoreaddons 1.0 as KCoreAddons
  6. import QtQuick.Controls 1.0
  7.  
  8. Item {
  9. id: fullRepresentation
  10.  
  11. property date date: new Date()
  12. property string month: Qt.formatDate(fullRepresentation.date, "MM")
  13.  
  14. property int imageWidth: 460
  15. property int imageHeight: 724
  16.  
  17. width: imageWidth
  18. height: imageHeight
  19.  
  20. Image {
  21. id: monthImage
  22. source: 'images/' + month + '.jpg'
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment