Skip to content

Commit 55b06a3

Browse files
topazuslzwind
authored andcommitted
Fix: support Qt 6.10.1
In Qt 6.10.1, QString::arg() do not supports arguments of types that implicitly convert to integral types. see https://doc.qt.io/qt-6/qstring.html#arg-2
1 parent 22b176c commit 55b06a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ int main(int argc, char *argv[])
7272

7373
QFileInfo fileInfo(path);
7474
qInfo() << qPrintable(QString("Open file, isFile: %1, suffix: %2, size: %3, permssion: %4").arg(fileInfo.isFile())
75-
.arg(fileInfo.suffix()).arg(fileInfo.size()).arg(fileInfo.permissions()));
75+
.arg(fileInfo.suffix()).arg(fileInfo.size()).arg(static_cast<int>(fileInfo.permissions())));
7676
}
7777

7878
bool hasWindowFlag = parser.isSet(newWindowOption);

0 commit comments

Comments
 (0)