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:
parent
1a97441647
commit
22ec76c6b4
4 changed files with 8 additions and 1 deletions
|
@ -39,4 +39,6 @@ void ImageLabel::resizeEvent(QResizeEvent *e)
|
|||
if (!pix.isNull()) {
|
||||
QLabel::setPixmap(scaledPixmap());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_imagelabel.cpp"
|
|
@ -8,6 +8,7 @@
|
|||
class ImageLabel : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ImageLabel(QWidget *parent = nullptr);
|
||||
|
||||
|
|
|
@ -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"
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
class TexPart : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TexPart(GameData *data);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue