Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class QtTable t where
- class QtField t where
- class CountFields t where
- countFields :: proxy t -> Int
- class SetupColumns t where
- setupColumns :: HmDelegateHandle -> proxy 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 | Integers 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 |
|
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 :: proxy 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 proxyle constructor types.
Nothing
setupColumns :: HmDelegateHandle -> proxy 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. |