Change "YMD" to "Ymd" in QDate methods; add some todos.

- QDate: Changes "newWithYMD" to "newWithYmd" (and ditto for "isValidYMD")
  for consistency with similarly named "Rgb" methods in QColor.

- Adds a bunch of todo comments to fill out methods and signals for new
  classes.
parent 483a6bcd
......@@ -66,7 +66,7 @@ c_QDate =
[
-- Public Functions
just $ mkCtor "new" []
, just $ mkCtor "newWithYMD" [intT, intT, intT]
, just $ mkCtor "newWithYmd" [intT, intT, intT]
, just $ mkConstMethod "addDays" [int64T] (objT c_QDate)
, just $ mkConstMethod "addMonths" [intT] (objT c_QDate)
, just $ mkConstMethod "addYears" [intT] (objT c_QDate)
......@@ -104,5 +104,5 @@ c_QDate =
, just $ mkStaticMethod' "fromString" "fromStringWithStringFormat"
[objT c_QString, objT c_QString] (objT c_QDate)
, just $ mkStaticMethod "isLeapYear" [intT] boolT
, just $ mkStaticMethod' "isValid" "isValidYMD" [intT, intT, intT] boolT
, just $ mkStaticMethod' "isValid" "isValidYmd" [intT, intT, intT] boolT
]
......@@ -66,4 +66,5 @@ c_QSettings =
, mkMethod "setValue" [objT c_QString, objT c_QVariant] voidT
, mkConstMethod "value" [objT c_QString] (objT c_QVariant)
, mkConstMethod' "value" "valueWithDefault" [objT c_QString, objT c_QVariant] (objT c_QVariant)
-- TODO Other methods.
]
......@@ -44,9 +44,9 @@ c_QAbstractItemDelegate =
addReqIncludes [includeStd "QAbstractItemDelegate"] $
classSetEntityPrefix "" $
makeClass (ident "QAbstractItemDelegate") Nothing [c_QObject] $
[
[ -- TODO Methods.
]
signals =
[
[ -- TODO Signals.
]
......@@ -43,12 +43,8 @@ import Graphics.UI.Qtah.Generator.Types
aModule =
AQtModule $
makeQtModule ["Widgets", "QDateEdit"] $
QtExport (ExportClass c_QDateEdit) :
map QtExportSignal signals ++
(map QtExport . collect)
[
]
makeQtModule ["Widgets", "QDateEdit"]
[ QtExport $ ExportClass c_QDateEdit ]
c_QDateEdit =
addReqIncludes [includeStd "QDateEdit"] $
......@@ -60,7 +56,3 @@ c_QDateEdit =
, just $ mkCtor "newWithDate" [objT c_QDate]
, just $ mkCtor "newWithDateAndParent" [objT c_QDate, ptrT $ objT c_QWidget]
]
signals =
[
]
......@@ -83,6 +83,7 @@ c_QDateTimeEdit =
-- TODO test (qtVersion >= [4, 4]) $ mkProp "timeSpec" Qt.TimeSpec
-- Public Functions
, just $ mkCtor "new" []
-- TODO Other methods.
]
signals =
......
......@@ -42,9 +42,8 @@ minVersion = [4, 4]
aModule =
AQtModule $
makeQtModuleWithMinVersion ["Widgets", "QStyledItemDelegate"] minVersion $
QtExport (ExportClass c_QStyledItemDelegate) :
map QtExportSignal signals
makeQtModuleWithMinVersion ["Widgets", "QStyledItemDelegate"] minVersion
[ QtExport $ ExportClass c_QStyledItemDelegate ]
c_QStyledItemDelegate =
addReqIncludes [includeStd "QStyledItemDelegate"] $
......@@ -59,7 +58,3 @@ c_QStyledItemDelegate =
-- TODO QItemEditorFactory * itemEditorFactory() const
-- TODO void setItemEditorFactory(QItemEditorFactory *factory)
]
signals =
[
]
......@@ -80,6 +80,7 @@ c_QTreeView =
, just $ mkMethod "hideColumn" [intT] voidT
, just $ mkMethod "resizeColumnToContents" [intT] voidT
, just $ mkMethod "showColumn" [intT] voidT
-- TODO Other methods.
]
signals :: [Signal]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment