View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#120
Okay,

I've found another way to achieve my goal.

I took a good look in `/usr/lib/qt5/qml/Sailfish/Lipstick` and found some code pertaining to rotation/rotating items; `isLandscape` does the job, so the code now looks like this;

Code:
import QtQuick 2.0
import Sailfish.Silica 1.0
import "weather.js" as WeatherData

Grid {
    id: labels
    rows: 2
    columns: 2

    rowSpacing: isLandscape ? 270 : 580
    columnSpacing: isLandscape ? 500 : 170

    anchors.centerIn: parent
No need for import statements or additional properties, time to tidy up other aspects of this 'wind dashboard'.
Attached Images
  
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..

Last edited by Markkyboy; 2020-09-02 at 16:21.
 

The Following 3 Users Say Thank You to Markkyboy For This Useful Post: