Files
sbox-public/engine/Definitions/tools/QtMisc/QFile.def
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

13 lines
322 B
Modula-2

native class QFileInfo
{
static QFileInfo Create( string filePath ); [new]
inline QPixmap GetIcon( int width, int height )
{
QFileIconProvider iconProvider;
QIcon icon = iconProvider.icon( *self );
QPixmap pixmap = icon.pixmap( icon.actualSize( QSize( width, height ) ) );
return new QPixmap( pixmap );
}
}