fixed asan stuff
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
8b8ea2d270
commit
321bbf1fa8
@ -49,7 +49,7 @@ SkinUpload::SkinUpload(QString token, QString path, QString variant) : NetReques
|
|||||||
|
|
||||||
QNetworkReply* SkinUpload::getReply(QNetworkRequest& request)
|
QNetworkReply* SkinUpload::getReply(QNetworkRequest& request)
|
||||||
{
|
{
|
||||||
QHttpMultiPart* multiPart = new QHttpMultiPart(QHttpMultiPart::FormDataType);
|
QHttpMultiPart* multiPart = new QHttpMultiPart(QHttpMultiPart::FormDataType, this);
|
||||||
|
|
||||||
QHttpPart skin;
|
QHttpPart skin;
|
||||||
skin.setHeader(QNetworkRequest::ContentTypeHeader, QVariant("image/png"));
|
skin.setHeader(QNetworkRequest::ContentTypeHeader, QVariant("image/png"));
|
||||||
|
@ -74,7 +74,7 @@ SkinManageDialog::SkinManageDialog(QWidget* parent, MinecraftAccountPtr acct)
|
|||||||
contentsWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
contentsWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||||
contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||||
contentsWidget->installEventFilter(this);
|
contentsWidget->installEventFilter(this);
|
||||||
contentsWidget->setItemDelegate(new ListViewDelegate());
|
contentsWidget->setItemDelegate(new ListViewDelegate(this));
|
||||||
|
|
||||||
contentsWidget->setAcceptDrops(true);
|
contentsWidget->setAcceptDrops(true);
|
||||||
contentsWidget->setDropIndicatorShown(true);
|
contentsWidget->setDropIndicatorShown(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user