author | sandman <sandman> | 2002-10-04 01:42:57 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-04 01:42:57 (UTC) |
commit | 4a6ccb87f45065bc37f801adb61c3462f870cb92 (patch) (unidiff) | |
tree | 86b6819ee7a13b8df82b14b2bdcf46741b5935a0 /noncore/styles/metal/plugin.cpp | |
parent | b7ec6d0674f0f7835da7f114683dcfa74e6bc546 (diff) | |
download | opie-4a6ccb87f45065bc37f801adb61c3462f870cb92.zip opie-4a6ccb87f45065bc37f801adb61c3462f870cb92.tar.gz opie-4a6ccb87f45065bc37f801adb61c3462f870cb92.tar.bz2 |
- ported all OPIE styles to the new Qtopia compatible style interface
- some cleanup in liquid (unused code)
Diffstat (limited to 'noncore/styles/metal/plugin.cpp') (more/less context) (ignore 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,3 +1,5 @@ | |||
1 | #include <qapplication.h> | ||
2 | |||
1 | #include "metal.h" | 3 | #include "metal.h" |
2 | #include "plugin.h" | 4 | #include "plugin.h" |
3 | 5 | ||
@@ -10,30 +12,16 @@ 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 | { |