Diffstat (limited to 'noncore/styles/metal/plugin.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/styles/metal/plugin.cpp | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/noncore/styles/metal/plugin.cpp b/noncore/styles/metal/plugin.cpp index 1db4aac..4c9f64d 100644 --- a/noncore/styles/metal/plugin.cpp +++ b/noncore/styles/metal/plugin.cpp | |||
@@ -1,48 +1,36 @@ | |||
1 | #include <qapplication.h> | ||
2 | |||
1 | #include "metal.h" | 3 | #include "metal.h" |
2 | #include "plugin.h" | 4 | #include "plugin.h" |
3 | 5 | ||
4 | 6 | ||
5 | MetalInterface::MetalInterface ( ) : ref ( 0 ) | 7 | MetalInterface::MetalInterface ( ) : ref ( 0 ) |
6 | { | 8 | { |
7 | } | 9 | } |
8 | 10 | ||
9 | MetalInterface::~MetalInterface ( ) | 11 | MetalInterface::~MetalInterface ( ) |
10 | { | 12 | { |
11 | } | 13 | } |
12 | 14 | ||
13 | QStyle *MetalInterface::create ( ) | 15 | QStyle *MetalInterface::style ( ) |
14 | { | 16 | { |
15 | return new MetalStyle ( ); | 17 | return new MetalStyle ( ); |
16 | } | 18 | } |
17 | 19 | ||
18 | QString MetalInterface::name ( ) | 20 | QString MetalInterface::name ( ) const |
19 | { | 21 | { |
20 | return QObject::tr( "Metal", "name" ); | 22 | return qApp-> translate ( "Styles", "Metal" ); |
21 | } | 23 | } |
22 | 24 | ||
23 | QString MetalInterface::description ( ) | ||
24 | { | ||
25 | return QObject::tr( "Metal style", "description" ); | ||
26 | } | ||
27 | |||
28 | QCString MetalInterface::key ( ) | ||
29 | { | ||
30 | return QCString ( "metal" ); | ||
31 | } | ||
32 | |||
33 | unsigned int MetalInterface::version ( ) | ||
34 | { | ||
35 | return 100; // 1.0.0 (\d+.\d.\d) | ||
36 | } | ||
37 | 25 | ||
38 | QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 26 | QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
39 | { | 27 | { |
40 | *iface = 0; | 28 | *iface = 0; |
41 | 29 | ||
42 | if ( uuid == IID_QUnknown ) | 30 | if ( uuid == IID_QUnknown ) |
43 | *iface = this; | 31 | *iface = this; |
44 | else if ( uuid == IID_Style ) | 32 | else if ( uuid == IID_Style ) |
45 | *iface = this; | 33 | *iface = this; |
46 | 34 | ||
47 | if ( *iface ) | 35 | if ( *iface ) |
48 | (*iface)-> addRef ( ); | 36 | (*iface)-> addRef ( ); |