Update application API to 1.6.0, add capture title setter

This commit is contained in:
baldurk
2022-11-21 13:49:15 +00:00
parent 3ec6986ac4
commit dfe07d6822
10 changed files with 191 additions and 73 deletions
+4 -1
View File
@@ -681,7 +681,9 @@ QString LiveCapture::MakeText(Capture *cap)
text += tr(" (Remote)");
text += lit("\n") + cap->api;
if(cap->frameNumber == ~0U)
if(!cap->title.isEmpty())
text += QFormatStr("\n%1").arg(cap->title);
else if(cap->frameNumber == ~0U)
text += tr("\nUser-defined Capture");
else
text += tr("\nFrame #%1").arg(cap->frameNumber);
@@ -1145,6 +1147,7 @@ void LiveCapture::captureAdded(const QString &name, const NewCaptureData &newCap
cap->path = newCapture.path;
cap->local = newCapture.local;
cap->frameNumber = newCapture.frameNumber;
cap->title = newCapture.title;
QListWidgetItem *item = new QListWidgetItem();
item->setFlags(item->flags() | Qt::ItemIsEditable);