2023-08-06 08:48:11 -04:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2024-02-04 15:32:35 -05:00
|
|
|
#include <KLocalizedString>
|
2023-08-06 08:48:11 -04:00
|
|
|
#include <QFormLayout>
|
2023-04-09 15:32:09 -04:00
|
|
|
#include <QLabel>
|
2023-08-06 08:48:11 -04:00
|
|
|
#include <QTreeWidget>
|
2023-04-09 15:32:09 -04:00
|
|
|
|
|
|
|
#include "filepropertieswindow.h"
|
|
|
|
|
2023-12-09 15:24:54 -05:00
|
|
|
FilePropertiesWindow::FilePropertiesWindow(const QString &path, physis_Buffer buffer, QWidget *parent)
|
2023-10-10 18:02:13 -04:00
|
|
|
: QWidget(parent)
|
|
|
|
{
|
2024-02-04 15:32:35 -05:00
|
|
|
setWindowTitle(i18nc("@title:window", "Properties for ") + path);
|
2023-04-09 15:32:09 -04:00
|
|
|
|
|
|
|
auto layout = new QFormLayout();
|
|
|
|
setLayout(layout);
|
|
|
|
|
|
|
|
auto pathLabel = new QLabel(path);
|
2024-02-04 15:32:35 -05:00
|
|
|
layout->addRow(i18nc("@label", "Path"), pathLabel);
|
2023-04-09 15:32:09 -04:00
|
|
|
|
2024-02-04 15:32:35 -05:00
|
|
|
auto typeLabel = new QLabel(i18n("Unknown type"));
|
|
|
|
layout->addRow(i18nc("@label", "Type"), typeLabel);
|
2023-04-09 15:32:09 -04:00
|
|
|
|
2023-10-12 20:18:22 -04:00
|
|
|
auto sizeLabel = new QLabel(QString::number(buffer.size));
|
2024-02-04 15:32:35 -05:00
|
|
|
layout->addRow(i18nc("@label", "Size (in bytes)"), sizeLabel);
|
2023-04-09 15:32:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
#include "moc_filepropertieswindow.cpp"
|