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

Method loadFile

example/mainwindow.cpp:371–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void MainWindow::loadFile(const QString &fileName)
372{
373 file.setFileName(fileName);
374 if (!hexEdit->setData(file)) {
375 QMessageBox::warning(this, tr("QHexEdit"),
376 tr("Cannot read file %1:\n%2.")
377 .arg(fileName)
378 .arg(file.errorString()));
379 return;
380 }
381 setCurrentFile(fileName);
382 statusBar()->showMessage(tr("File loaded"), 2000);
383}
384
385void MainWindow::readSettings()
386{

Callers 1

mainFunction · 0.45

Calls 1

setDataMethod · 0.80

Tested by

no test coverage detected