1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-25 13:17:46 +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

@ -39,4 +39,6 @@ void ImageLabel::resizeEvent(QResizeEvent *e)
if (!pix.isNull()) {
QLabel::setPixmap(scaledPixmap());
}
}
}
#include "moc_imagelabel.cpp"

View file

@ -8,6 +8,7 @@
class ImageLabel : public QLabel
{
Q_OBJECT
public:
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);
m_label->setQPixmap(QPixmap::fromImage(image));
}
#include "moc_texpart.cpp"

View file

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