1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-28 06:37:44 +00:00

texpart: Reformat code, misc cleanup

This commit is contained in:
Joshua Goins 2023-10-12 23:45:39 -04:00
parent 1a97441647
commit 22ec76c6b4
4 changed files with 8 additions and 1 deletions

View file

@ -40,3 +40,5 @@ void ImageLabel::resizeEvent(QResizeEvent *e)
QLabel::setPixmap(scaledPixmap()); QLabel::setPixmap(scaledPixmap());
} }
} }
#include "moc_imagelabel.cpp"

View file

@ -8,6 +8,7 @@
class ImageLabel : public QLabel class ImageLabel : public QLabel
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit ImageLabel(QWidget *parent = nullptr); explicit ImageLabel(QWidget *parent = nullptr);

View file

@ -23,3 +23,5 @@ void TexPart::load(physis_Buffer file)
QImage image(tex.rgba, tex.width, tex.height, QImage::Format_RGBA8888); QImage image(tex.rgba, tex.width, tex.height, QImage::Format_RGBA8888);
m_label->setQPixmap(QPixmap::fromImage(image)); m_label->setQPixmap(QPixmap::fromImage(image));
} }
#include "moc_texpart.cpp"

View file

@ -10,6 +10,8 @@
class TexPart : public QWidget class TexPart : public QWidget
{ {
Q_OBJECT
public: public:
explicit TexPart(GameData *data); explicit TexPart(GameData *data);