downgradle qt to 5.15.2
This commit is contained in:
@@ -492,9 +492,9 @@ void DoricLayouts::setFrame() {
|
||||
<< " measuredX: " << this->measuredX
|
||||
<< " measuredY: " << this->measuredY;
|
||||
|
||||
if (qFabs(this->measuredWidth - this->view->width() >= 0.00001f))
|
||||
if (qAbs(this->measuredWidth - this->view->width() >= 0.00001f))
|
||||
this->view->setProperty("width", this->measuredWidth);
|
||||
if (qFabs(this->measuredHeight - this->view->height() >= 0.00001f))
|
||||
if (qAbs(this->measuredHeight - this->view->height() >= 0.00001f))
|
||||
this->view->setProperty("height", this->measuredHeight);
|
||||
|
||||
this->view->setProperty("x", this->measuredX);
|
||||
|
||||
@@ -14,7 +14,7 @@ public:
|
||||
QFile *file = new QFile(resource.fileName());
|
||||
file->open(QFile::ReadOnly | QFile::Text);
|
||||
QTextStream in(file);
|
||||
in.setEncoding(QStringConverter::Encoding::Utf8);
|
||||
in.setAutoDetectUnicode(true);
|
||||
QString content = in.readAll();
|
||||
file->close();
|
||||
delete file;
|
||||
|
||||
Reference in New Issue
Block a user