-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed problem with emitting dataChanged()
- Loading branch information
Showing
4 changed files
with
40 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
open Core_kernel.Std | ||
|
||
module MethOptions = struct | ||
type t = | ||
[ `PrintMethCalls | ||
| `DebugBlockingSections | ||
| `AbstractItemModel of string option ] list | ||
|
||
end | ||
|
||
module TypeOptions = struct | ||
type t = [`AbstractItemModel of string option ] list | ||
let of_meth_options (config: MethOptions.t) : t = | ||
List.fold_left ~init:[] config ~f:(fun acc -> function | ||
| `PrintMethCalls | ||
| `DebugBlockingSections -> acc | ||
| `AbstractItemModel _ as x -> x::acc | ||
) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters