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 | |
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)
-rw-r--r-- | noncore/styles/metal/plugin.cpp | 22 | ||||
-rw-r--r-- | noncore/styles/metal/plugin.h | 9 |
2 files changed, 7 insertions, 24 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,42 +1,30 @@ | |||
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 ) |
diff --git a/noncore/styles/metal/plugin.h b/noncore/styles/metal/plugin.h index f61c833..545aea9 100644 --- a/noncore/styles/metal/plugin.h +++ b/noncore/styles/metal/plugin.h | |||
@@ -9,19 +9,14 @@ public: | |||
9 | MetalInterface ( ); | 9 | MetalInterface ( ); |
10 | virtual ~MetalInterface ( ); | 10 | virtual ~MetalInterface ( ); |
11 | 11 | ||
12 | QRESULT queryInterface ( const QUuid &, QUnknownInterface ** ); | 12 | QRESULT queryInterface ( const QUuid &, QUnknownInterface ** ); |
13 | Q_REFCOUNT | 13 | Q_REFCOUNT |
14 | 14 | ||
15 | virtual QStyle *create ( ); | 15 | virtual QStyle *style ( ); |
16 | 16 | virtual QString name ( ) const; | |
17 | virtual QString description ( ); | ||
18 | virtual QString name ( ); | ||
19 | virtual QCString key ( ); | ||
20 | |||
21 | virtual unsigned int version ( ); | ||
22 | 17 | ||
23 | private: | 18 | private: |
24 | ulong ref; | 19 | ulong ref; |
25 | }; | 20 | }; |
26 | 21 | ||
27 | #endif | 22 | #endif |