text in FileInfoWindow can be marked and copied,
code cleaning
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include <qwidget.h>
|
||||
#include <QByteArray>
|
||||
#include <QStringList>
|
||||
#include <QLabel>
|
||||
#include <QWidget>
|
||||
#include "ui_MainWindow.h"
|
||||
#include "..\Header\FileInfoWindow.h"
|
||||
#include "FileInfoWindow.h"
|
||||
#include <QByteArray>
|
||||
#include <QLabel>
|
||||
|
||||
|
||||
struct Material;
|
||||
|
||||
@@ -18,27 +17,32 @@ public:
|
||||
MainWindow(QWidget *parent = Q_NULLPTR);
|
||||
~MainWindow();
|
||||
|
||||
// attributes
|
||||
private:
|
||||
Ui::MainWindowClass* ui;
|
||||
int m_curSeverity;
|
||||
void setupWidgets();
|
||||
|
||||
QByteArray m_fileInfo;
|
||||
QLabel* m_output;
|
||||
int m_curSeverity;
|
||||
|
||||
FileInfoWindow* m_infoWindow;
|
||||
|
||||
// functions
|
||||
private:
|
||||
void setupWidgets();
|
||||
void openFile();
|
||||
void aboutFile();
|
||||
void aboutTool();
|
||||
void takeScreenShot();
|
||||
void aboutTool();
|
||||
|
||||
protected:
|
||||
virtual void resizeEvent(QResizeEvent * e) Q_DECL_OVERRIDE;
|
||||
|
||||
// slots
|
||||
public slots:
|
||||
void printMessage(QString message, int severity);
|
||||
void setFileInfo(QString name, QVector<Material>* materials, int vertices, int triangle);
|
||||
|
||||
// signals
|
||||
signals:
|
||||
void loadFile(QString);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user