added custom info window,
set min size to mainwindow
This commit is contained in:
27
QtMeshViewer/Source/FileInfoWindow.cpp
Normal file
27
QtMeshViewer/Source/FileInfoWindow.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "..\Header\FileInfoWindow.h"
|
||||
#include <QIcon>
|
||||
|
||||
FileInfoWindow::FileInfoWindow(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::FileInfoWindow)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint | Qt::NoDropShadowWindowHint);
|
||||
|
||||
}
|
||||
|
||||
FileInfoWindow::~FileInfoWindow()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void FileInfoWindow::setBasicText(QString text)
|
||||
{
|
||||
ui->basic->setText(text);
|
||||
}
|
||||
|
||||
void FileInfoWindow::setDetailText(QString text)
|
||||
{
|
||||
ui->detail->setText(text);
|
||||
}
|
||||
Reference in New Issue
Block a user