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:
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()) {
|
if (!pix.isNull()) {
|
||||||
QLabel::setPixmap(scaledPixmap());
|
QLabel::setPixmap(scaledPixmap());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "moc_imagelabel.cpp"
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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"
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
class TexPart : public QWidget
|
class TexPart : public QWidget
|
||||||
{
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit TexPart(GameData *data);
|
explicit TexPart(GameData *data);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue