mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-24 06:09:48 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
13 lines
322 B
Modula-2
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 );
|
|
}
|
|
} |