summaryrefslogtreecommitdiff
path: root/noncore/styles/metal/plugin.cpp
authorsandman <sandman>2002-10-04 01:42:57 (UTC)
committer sandman <sandman>2002-10-04 01:42:57 (UTC)
commit4a6ccb87f45065bc37f801adb61c3462f870cb92 (patch) (side-by-side diff)
tree86b6819ee7a13b8df82b14b2bdcf46741b5935a0 /noncore/styles/metal/plugin.cpp
parentb7ec6d0674f0f7835da7f114683dcfa74e6bc546 (diff)
downloadopie-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.cpp22
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 @@
+#include <qapplication.h>
+
#include "metal.h"
#include "plugin.h"
@@ -10,30 +12,16 @@ MetalInterface::~MetalInterface ( )
{
}
-QStyle *MetalInterface::create ( )
+QStyle *MetalInterface::style ( )
{
return new MetalStyle ( );
}
-QString MetalInterface::name ( )
+QString MetalInterface::name ( ) const
{
- return QObject::tr( "Metal", "name" );
+ return qApp-> translate ( "Styles", "Metal" );
}
-QString MetalInterface::description ( )
-{
- return QObject::tr( "Metal style", "description" );
-}
-
-QCString MetalInterface::key ( )
-{
- return QCString ( "metal" );
-}
-
-unsigned int MetalInterface::version ( )
-{
- return 100; // 1.0.0 (\d+.\d.\d)
-}
QRESULT MetalInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface )
{