using getItem directly since QVariantMaps work now in 0.6 of cxxqt
This commit is contained in:
parent
80f4b47fd0
commit
60b89a84d7
3 changed files with 7 additions and 4 deletions
|
@ -351,9 +351,12 @@ Item {
|
|||
presProxyModel.presentationModel.newItem(url, pageCount);
|
||||
selectedLibrary = "presentation";
|
||||
presentationLibrary.libraryList.currentIndex = presProxyModel.presentationModel.count - 1;
|
||||
let presId = presentationLibrary.libraryList.currentIndex + 1;
|
||||
let pres = presProxyModel.presentationModel.getItem(presId);
|
||||
console.log(pres.id);
|
||||
if (!editMode)
|
||||
editMode = true;
|
||||
editSwitch(presentationLibrary.libraryList.currentIndex, "presentation");
|
||||
editSwitch(presId, "presentation");
|
||||
pdf.source = "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue