Create a Sailfish app using Qt to experiment this technologie and os.
- Create a master detail
- Use Sailfish features such as pull down menu.
- Install the SailfishSDK
- Open Sailfish IDE (include in the sdk)
- Open this project and add the requiered SDKs depending on your configurations.
- Launch the emulator
- Launch the app
- You're done ;)
Master | Detail |
---|---|
classDiagram
class QObject { }
QObject <|.. Fish
QObject <|.. FishList
class QAbstractListModel { }
QAbstractListModel <|.. FishModel
class Fish {
+Name : QString
+IsTrophy : bool
+Price : int
+FType : FType
+Quality : Quality
+Cookness
+Bait
+Location
+Fish(QString name, bool isTrophy, int price, FType type, Quality quality, Cookness cookness, Bait bait, Location location)
+ Fish(const Fish& other)
+ Fish()
}
class FishList {
+FishList(QObject *parent = nullptr)
+push_back(Fish* fish)
+remove(int index)
+insert(int index, Fish* fish)
#registerFish(int index)
#unregisterFish(int index)
#reregisterFish(int index)
}
FishList --> "*" Fish : Fish
class FishModel {
+FishModel(QObject * parent = nullptr)
+rowCount(const QModelIndex &parent)
}
FishModel --> "1" FishList : FishList
class Stub {
+loadFish()
}
Stub --> "*" Fish : Fish
- Author: Mathis Ribemont
- Author: Valetin Clergue