summaryrefslogtreecommitdiff
path: root/noncore/styles/metal/plugin.cpp
Side-by-side diff
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 +1,3 @@
+#include <qapplication.h>
+
#include "metal.h"
@@ -12,3 +14,3 @@ MetalInterface::~MetalInterface ( )
-QStyle *MetalInterface::create ( )
+QStyle *MetalInterface::style ( )
{
@@ -17,21 +19,7 @@ QStyle *MetalInterface::create ( )
-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)
-}