本文整理汇总了C++中QObjectScopedPointer::getReferenceUrl方法的典型用法代码示例。如果您正苦于以下问题:C++ QObjectScopedPointer::getReferenceUrl方法的具体用法?C++ QObjectScopedPointer::getReferenceUrl怎么用?C++ QObjectScopedPointer::getReferenceUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QObjectScopedPointer
的用法示例。
在下文中一共展示了QObjectScopedPointer::getReferenceUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initPrepareToImportTask
void BAMImporterTask::initPrepareToImportTask() {
GUrl srcUrl = loadInfoTask->getSourceUrl();
isSqliteDbTransit = hintedDbiRef.isValid() && SQLITE_DBI_ID != hintedDbiRef.dbiFactoryId;
if (!isSqliteDbTransit) {
localDbiRef = U2DbiRef(SQLITE_DBI_ID, srcUrl.dirPath() + QDir::separator() + srcUrl.fileName() + ".ugenedb");
} else {
const QString tmpDir = AppContext::getAppSettings()->getUserAppsSettings()->getCurrentProcessTemporaryDirPath("assembly_conversion") + QDir::separator();
QDir().mkpath(tmpDir);
const QString pattern = tmpDir + "XXXXXX.ugenedb";
QTemporaryFile *tempLocalDb = new QTemporaryFile(pattern, this);
tempLocalDb->open();
const QString filePath = tempLocalDb->fileName();
tempLocalDb->close();
SAFE_POINT_EXT(QFile::exists(filePath), setError(tr("Can't create a temporary database")), );
localDbiRef = U2DbiRef(SQLITE_DBI_ID, filePath);
}
QString refUrl;
bool convert = true;
if (useGui) {
QObjectScopedPointer<ConvertToSQLiteDialog> convertDialog = new ConvertToSQLiteDialog(loadInfoTask->getSourceUrl(), loadInfoTask->getInfo(), loadInfoTask->isSam());
convertDialog->hideAddToProjectOption();
const int rc = convertDialog->exec();
CHECK_EXT(!convertDialog.isNull(), setError("NULL dialog"), );
if (rc == QDialog::Accepted) {
localDbiRef = U2DbiRef(SQLITE_DBI_ID, convertDialog->getDestinationUrl().getURLString());
refUrl = convertDialog->getReferenceUrl();
} else {
convert = false;
stateInfo.setCanceled(true);
}
} else if (loadInfoTask->isSam() && loadInfoTask->getInfo().getHeader().getReferences().isEmpty()) {