diff options
| author | rose <47357290+rompse@users.noreply.github.com> | 2021-10-05 17:20:51 -0400 |
|---|---|---|
| committer | rose <47357290+rompse@users.noreply.github.com> | 2021-10-06 15:55:01 -0400 |
| commit | a396e114c14c5c1cf9fa12688fdbdafe2f07b61b (patch) | |
| tree | 16c00c4b78413e0aea992de48601f2a7a5aec191 /examples/triage/fileinfo.h | |
| parent | c4f4bf5be39c224b619a5928d380d91122ecf1d8 (diff) | |
TriageView: path, size, md5, sha1, sha256
Diffstat (limited to 'examples/triage/fileinfo.h')
| -rw-r--r-- | examples/triage/fileinfo.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/triage/fileinfo.h b/examples/triage/fileinfo.h new file mode 100644 index 00000000..02cc154d --- /dev/null +++ b/examples/triage/fileinfo.h @@ -0,0 +1,21 @@ +#pragma once +#include <QtWidgets/QLabel> +#include <QtWidgets/QWidget> +#include <QCryptographicHash> +#include "uitypes.h" +#include "viewframe.h" + +class FileInfoWidget: public QWidget +{ + static constexpr std::int32_t m_maxColumns{2}; + std::pair<std::int32_t, std::int32_t> m_fieldPosition{}; // row, column + QGridLayout* m_layout{}; + + void addField(const QString& name, const QVariant& value); + void addHashField(const QString& hashName, + const QCryptographicHash::Algorithm& algorithm, + const QByteArray& data); + +public: + FileInfoWidget(QWidget* parent, BinaryViewRef bv); +}; |
