1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#include "metal.h" extern "C" { QStyle* allocate ( ); int minor_version ( ); int major_version ( ); const char *description ( ); } QStyle* allocate ( ) { return new MetalStyle ( ); } int minor_version ( ) { return 0; } int major_version ( ) { return 1; } const char *description ( ) { return "Metal style plugin"; }