2017-01-16 14:41:37 +00:00
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
#include "ui_FileInfoWindow.h"
|
|
|
|
|
|
|
|
class FileInfoWindow : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-01-28 15:54:36 +00:00
|
|
|
FileInfoWindow(QWidget *parent = Q_NULLPTR)
|
|
|
|
: QWidget(parent)
|
|
|
|
, ui(new Ui::FileInfoWindow)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
setWindowFlags(Qt::Tool | Qt::NoDropShadowWindowHint);
|
|
|
|
ui->scrollArea->widget()->setStyleSheet("background-color: #ffffff");
|
|
|
|
};
|
|
|
|
|
|
|
|
~FileInfoWindow() { delete ui; };
|
2017-01-16 14:41:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::FileInfoWindow* ui;
|
|
|
|
|
|
|
|
public:
|
2017-01-28 15:54:36 +00:00
|
|
|
void setBasicText(QString text) { ui->basic->setText(text); };
|
|
|
|
void setDetailText(QString text) { ui->detail->setText(text); };
|
2017-01-16 14:41:37 +00:00
|
|
|
};
|