MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / setCurrentFile

Method setCurrentFile

example/mainwindow.cpp:452–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452void MainWindow::setCurrentFile(const QString &fileName)
453{
454 curFile = QFileInfo(fileName).canonicalFilePath();
455 isUntitled = fileName.isEmpty();
456 setWindowModified(false);
457 if (fileName.isEmpty())
458 setWindowFilePath("QHexEdit");
459 else
460 setWindowFilePath(curFile + " - QHexEdit");
461}
462
463QString MainWindow::strippedName(const QString &fullFileName)
464{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected