Diffstat (limited to 'noncore/styles/theme/plugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/theme/plugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/styles/theme/plugin.cpp b/noncore/styles/theme/plugin.cpp index 2560720..dca8685 100644 --- a/noncore/styles/theme/plugin.cpp +++ b/noncore/styles/theme/plugin.cpp | |||
@@ -1,33 +1,33 @@ | |||
1 | #include <qapplication.h> | 1 | #include <qapplication.h> |
2 | 2 | ||
3 | #include "othemestyle.h" | 3 | #include "othemestyle.h" |
4 | #include "themeset.h" | 4 | #include "themeset.h" |
5 | #include "plugin.h" | 5 | #include "plugin.h" |
6 | 6 | ||
7 | 7 | ||
8 | 8 | ||
9 | ThemeInterface::ThemeInterface ( ) : ref ( 0 ) | 9 | ThemeInterface::ThemeInterface ( ) |
10 | { | 10 | { |
11 | m_widget = 0; | 11 | m_widget = 0; |
12 | } | 12 | } |
13 | 13 | ||
14 | ThemeInterface::~ThemeInterface ( ) | 14 | ThemeInterface::~ThemeInterface ( ) |
15 | { | 15 | { |
16 | } | 16 | } |
17 | 17 | ||
18 | QStyle *ThemeInterface::style ( ) | 18 | QStyle *ThemeInterface::style ( ) |
19 | { | 19 | { |
20 | return new OThemeStyle ( "" ); | 20 | return new OThemeStyle ( "" ); |
21 | } | 21 | } |
22 | 22 | ||
23 | QString ThemeInterface::name ( ) const | 23 | QString ThemeInterface::name ( ) const |
24 | { | 24 | { |
25 | return qApp-> translate ( "Styles", "Themed style" ); | 25 | return qApp-> translate ( "Styles", "Themed style" ); |
26 | } | 26 | } |
27 | 27 | ||
28 | QString ThemeInterface::description ( ) const | 28 | QString ThemeInterface::description ( ) const |
29 | { | 29 | { |
30 | return qApp-> translate ( "Styles", "KDE2 theme compatible style engine" ); | 30 | return qApp-> translate ( "Styles", "KDE2 theme compatible style engine" ); |
31 | } | 31 | } |
32 | 32 | ||
33 | bool ThemeInterface::hasSettings ( ) const | 33 | bool ThemeInterface::hasSettings ( ) const |
@@ -44,38 +44,40 @@ QWidget *ThemeInterface::create ( QWidget *parent, const char *name ) | |||
44 | 44 | ||
45 | bool ThemeInterface::accept ( ) | 45 | bool ThemeInterface::accept ( ) |
46 | { | 46 | { |
47 | if ( !m_widget ) | 47 | if ( !m_widget ) |
48 | return false; | 48 | return false; |
49 | 49 | ||
50 | return m_widget-> writeConfig ( ); | 50 | return m_widget-> writeConfig ( ); |
51 | } | 51 | } |
52 | 52 | ||
53 | void ThemeInterface::reject ( ) | 53 | void ThemeInterface::reject ( ) |
54 | { | 54 | { |
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
58 | QRESULT ThemeInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) | 58 | QRESULT ThemeInterface::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) |
59 | { | 59 | { |
60 | *iface = 0; | 60 | *iface = 0; |
61 | 61 | ||
62 | if ( uuid == IID_QUnknown ) | 62 | if ( uuid == IID_QUnknown ) |
63 | *iface = this; | 63 | *iface = this; |
64 | else if ( uuid == IID_Style ) | 64 | else if ( uuid == IID_Style ) |
65 | *iface = this; | 65 | *iface = this; |
66 | else if ( uuid == IID_StyleExtended ) | 66 | else if ( uuid == IID_StyleExtended ) |
67 | *iface = this; | 67 | *iface = this; |
68 | else | ||
69 | return QS_FALSE; | ||
68 | 70 | ||
69 | if ( *iface ) | 71 | if ( *iface ) |
70 | (*iface)-> addRef ( ); | 72 | (*iface)-> addRef ( ); |
71 | 73 | ||
72 | return QS_OK; | 74 | return QS_OK; |
73 | } | 75 | } |
74 | 76 | ||
75 | Q_EXPORT_INTERFACE() | 77 | Q_EXPORT_INTERFACE() |
76 | { | 78 | { |
77 | Q_CREATE_INSTANCE( ThemeInterface ) | 79 | Q_CREATE_INSTANCE( ThemeInterface ) |
78 | } | 80 | } |
79 | 81 | ||
80 | 82 | ||
81 | 83 | ||