MCPcopy Create free account
hub / github.com/TeXworks/texworks / getFileProperties

Method getFileProperties

src/TWApp.cpp:1407–1419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407QMap<QString,QVariant> TWApp::getFileProperties(const QString& path)
1408{
1409 Tw::Settings settings;
1410 QList<QVariant> fileList = settings.value(QString::fromLatin1("recentFiles")).toList();
1411 QList<QVariant>::iterator i = fileList.begin();
1412 while (i != fileList.end()) {
1413 QMap<QString,QVariant> h = i->toMap();
1414 if (h.value(QString::fromLatin1("path")).toString() == path)
1415 return h;
1416 ++i;
1417 }
1418 return QMap<QString,QVariant>();
1419}
1420
1421void TWApp::openHelpFile(const QString& helpDirName)
1422{

Callers 3

loadFileMethod · 0.80
delayedInitMethod · 0.80
PDFDocumentWindowMethod · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected