| 11 | #include <QFutureWatcher> |
| 12 | |
| 13 | void FileInfoWidget::addCopyableField(const QString& name, const QVariant& value) |
| 14 | { |
| 15 | auto& [row, column] = this->m_fieldPosition; |
| 16 | |
| 17 | const auto valueLabel = new CopyableLabel(value.toString(), getThemeColor(AlphanumericHighlightColor)); |
| 18 | valueLabel->setFont(getMonospaceFont(this)); |
| 19 | |
| 20 | this->m_layout->addWidget(new QLabel(name), row, column); |
| 21 | this->m_layout->addWidget(valueLabel, row++, column + 1); |
| 22 | } |
| 23 | |
| 24 | void FileInfoWidget::addField(const QString& name, const QVariant& value) |
| 25 | { |