Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/ArchiveBookModel.cpp
Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Line(s) | 330 | { | |||
---|---|---|---|---|---|
349 | BookModel::setAuthor(newAuthor); | 349 | BookModel::setAuthor(newAuthor); | ||
350 | } | 350 | } | ||
351 | 351 | | |||
352 | QString ArchiveBookModel::publisher() const | 352 | QString ArchiveBookModel::publisher() const | ||
353 | { | 353 | { | ||
354 | AdvancedComicBookFormat::Document* acbfDocument = qobject_cast<AdvancedComicBookFormat::Document*>(acbfData()); | 354 | AdvancedComicBookFormat::Document* acbfDocument = qobject_cast<AdvancedComicBookFormat::Document*>(acbfData()); | ||
355 | if(acbfDocument) | 355 | if(acbfDocument) | ||
356 | { | 356 | { | ||
357 | if(acbfDocument->metaData()->publishInfo()->publisher().length() > 0) | 357 | if(!acbfDocument->metaData()->publishInfo()->publisher().isEmpty()) | ||
358 | { | 358 | { | ||
359 | return acbfDocument->metaData()->publishInfo()->publisher(); | 359 | return acbfDocument->metaData()->publishInfo()->publisher(); | ||
360 | } | 360 | } | ||
361 | } | 361 | } | ||
362 | return BookModel::publisher(); | 362 | return BookModel::publisher(); | ||
363 | } | 363 | } | ||
364 | 364 | | |||
365 | void ArchiveBookModel::setPublisher(QString newPublisher) | 365 | void ArchiveBookModel::setPublisher(QString newPublisher) | ||
▲ Show 20 Lines • Show All 889 Lines • Show Last 20 Lines |