text in FileInfoWindow can be marked and copied,
code cleaning
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
#include <QWidget>
|
||||
#include <QString>
|
||||
#include "ui_FileInfoWindow.h"
|
||||
|
||||
class FileInfoWindow : public QWidget
|
||||
@@ -8,13 +7,21 @@ class FileInfoWindow : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FileInfoWindow(QWidget *parent = Q_NULLPTR);
|
||||
~FileInfoWindow();
|
||||
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; };
|
||||
|
||||
private:
|
||||
Ui::FileInfoWindow* ui;
|
||||
|
||||
public:
|
||||
void setBasicText(QString text);
|
||||
void setDetailText(QString text);
|
||||
void setBasicText(QString text) { ui->basic->setText(text); };
|
||||
void setDetailText(QString text) { ui->detail->setText(text); };
|
||||
};
|
||||
Reference in New Issue
Block a user