View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011342 | Scribus | Scripter | public | 2013-01-06 17:42 | 2013-01-06 20:50 |
| Reporter | ale | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 1.5.0svn | ||||
| Summary | 0011342: Scripter2: newDocument does not work | ||||
| Description | Scripter: newDocument does not work | ||||
| Tags | No tags attached. | ||||
| Patch | |||||
|
|
It seems scripter2 newDocument() function requires more argument than Qt signal/slot mecanism can handle. QMetaObject::invoke() can call functions with at most 9 arguments. newDocument() has already 13 arguments. |
|
|
found the solution while driving home: newDocument is not (really) a function. it should be called as Scripter.dialogs.newDocument, without the (). at least, this works, if what you want is the "new document" dialog. but we would also need a way to create a new document, without showing the dialog. and without specifying all those parameters in advance (if there is indeed such a function with 13 parameters!) |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-01-06 17:42 | ale | New Issue | |
| 2013-01-06 19:12 | jghali | Note Added: 0029617 | |
| 2013-01-06 19:12 | jghali | Summary | Scripter: createDocument does not work => Scripter: newDocument does not work |
| 2013-01-06 19:12 | jghali | Description Updated | |
| 2013-01-06 19:29 | jghali | Summary | Scripter: newDocument does not work => Scripter2: newDocument does not work |
| 2013-01-06 20:50 | ale | Note Added: 0029618 |