added custom info window,
set min size to mainwindow
This commit is contained in:
20
QtMeshViewer/Header/FileInfoWindow.h
Normal file
20
QtMeshViewer/Header/FileInfoWindow.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include <QWidget>
|
||||
#include <QString>
|
||||
#include "ui_FileInfoWindow.h"
|
||||
|
||||
class FileInfoWindow : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FileInfoWindow(QWidget *parent = Q_NULLPTR);
|
||||
~FileInfoWindow();
|
||||
|
||||
private:
|
||||
Ui::FileInfoWindow* ui;
|
||||
|
||||
public:
|
||||
void setBasicText(QString text);
|
||||
void setDetailText(QString text);
|
||||
};
|
@@ -6,6 +6,7 @@
|
||||
#include <QStringList>
|
||||
#include <QLabel>
|
||||
#include "ui_MainWindow.h"
|
||||
#include "..\Header\FileInfoWindow.h"
|
||||
|
||||
struct Material;
|
||||
|
||||
@@ -23,6 +24,7 @@ private:
|
||||
void setupWidgets();
|
||||
QByteArray m_fileInfo;
|
||||
QLabel* m_output;
|
||||
FileInfoWindow* m_infoWindow;
|
||||
|
||||
private:
|
||||
void openFile();
|
||||
|
Reference in New Issue
Block a user