Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class QtTable t where
- class QtField t where
- class Mock t where
- mock :: t
- class CountFields t where
- countFields :: sing t -> Int
- class SetupColumns t where
- setupColumns :: HmDelegateHandle -> sing t -> IO ()
- data ColumnIndexException
Documentation
A class of types with columns that can be indexed by an integer. A generic implementation is provided for all single constructor types.
Nothing
A class of types with columns that can be cast to a QtVariant
.
QtField Bool Source | |
QtField Double Source | |
QtField Int Source | |
QtField Integer Source | Indegers are marshalled through QT strings rather than ints. |
QtField String Source | |
QtField Natural Source | Naturals are marshalled through QT strings rather than ints. |
QtField Text Source | |
QtField t => QtField (Maybe t) Source |
|
A class that constructs a mock object, with all fields set to undefined
,
for use with generic implementations that don't actually use the supplied data.
Only data types with a single constuctor can have an unambiguous mock object.
Nothing
class CountFields t where Source
A class of types that have a specific number of fields. Generic implementation is provided for all purely product types.
Nothing
countFields :: sing t -> Int Source
class SetupColumns t where Source
A class of types that can provide a template to setup the QT HaskellModel. A generic implementation is provided for all single constructor types.
Nothing
setupColumns :: HmDelegateHandle -> sing t -> IO () Source
data ColumnIndexException Source
Exception thrown when QML tries to acces a column that is not available. Shouldn't really happen.
ColumnIndexNegative Int | QML called for a negative column index. |
ColumnIndexOutOfBounds Int Int | QML called for a column index that is too high. |