{"id":22368006,"url":"https://github.com/dridk/arraydatamodel","last_synced_at":"2025-09-03T12:35:40.481Z","repository":{"id":11093266,"uuid":"13443768","full_name":"dridk/ArrayDataModel","owner":"dridk","description":"ArrayDataModel for Qt. Same than blackberry 10 API but based on QAbstractItemModel","archived":false,"fork":false,"pushed_at":"2013-10-09T15:04:03.000Z","size":116,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T17:52:42.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dridk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-09T13:59:06.000Z","updated_at":"2020-02-17T08:07:20.000Z","dependencies_parsed_at":"2022-09-23T17:51:52.253Z","dependency_job_id":null,"html_url":"https://github.com/dridk/ArrayDataModel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2FArrayDataModel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2FArrayDataModel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2FArrayDataModel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dridk%2FArrayDataModel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dridk","download_url":"https://codeload.github.com/dridk/ArrayDataModel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689509,"owners_count":20656417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T18:25:36.924Z","updated_at":"2025-03-26T16:11:40.502Z","avatar_url":"https://github.com/dridk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"ArrayDataModel\n==============\n\nArrayDataModel for Qt. Same than [blackberry 10 ArrayDataModel](http://developer.blackberry.com/native/reference/cascades/bb__cascades__arraydatamodel.html) but based on QAbstractItemModel\n \n## API \n### public slots\n* void\tappend (const QVariantList \u0026values);\n* void\tappend (const QVariant \u0026value);\n* void\tclear ();\n* void\tinsert (int i, const QVariantList \u0026values);\n* void\tinsert (int i, const QVariant \u0026value);\n* void\tmove (int from, int to);\n* void\tremoveAt (int i);\n* void\treplace (int i, const QVariant \u0026value);\n* void\tswap (int i, int j);\n\n### public invokable\n* int\tindexOf (const QVariant \u0026value, int from=0) const;\n* bool\tisEmpty () const;\n* int\tsize () const;\n* QVariant\tvalue (int i) const;\n* QVariant\tvalue (int i, const QVariant \u0026defaultValue) const;\n\n## EXAMPLE \n  \n    \n    int main(int argc, char **argv)\n    {\n      QApplication app(argc,argv);\n      QListView * view = new QListView;\n      ArrayDataModel * model = new ArrayDataModel;\n      view-\u003esetModel(model);\n      view-\u003eshow();\n      model-\u003eappend(\"salut\");\n      model-\u003eappend(54);\n      model-\u003eappend(QDate::currentDateTime());\n      app.exec();\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdridk%2Farraydatamodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdridk%2Farraydatamodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdridk%2Farraydatamodel/lists"}