summaryrefslogtreecommitdiff
path: root/noncore/styles/fresh
Unidiff
Diffstat (limited to 'noncore/styles/fresh') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/fresh/fresh.cpp4
-rw-r--r--noncore/styles/fresh/fresh.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/noncore/styles/fresh/fresh.cpp b/noncore/styles/fresh/fresh.cpp
index 0730329..831b620 100644
--- a/noncore/styles/fresh/fresh.cpp
+++ b/noncore/styles/fresh/fresh.cpp
@@ -795,25 +795,25 @@ void FreshStyle::drawPopupMenuItem( QPainter* p, bool checkable, int maxpmw, int
795 drawArrow( p, RightArrow, 795 drawArrow( p, RightArrow,
796 FALSE, 796 FALSE,
797 x+w - motifArrowHMargin - motifItemFrame - dim, y+h/2-dim/2, 797 x+w - motifArrowHMargin - motifItemFrame - dim, y+h/2-dim/2,
798 dim, dim, g, mi->isEnabled() ); 798 dim, dim, g, mi->isEnabled() );
799 } 799 }
800 } 800 }
801#endif 801#endif
802} 802}
803 803
804//=========================================================================== 804//===========================================================================
805 805
806FreshStyleImpl::FreshStyleImpl() 806FreshStyleImpl::FreshStyleImpl()
807 : fresh(0), ref(0) 807 : fresh(0)
808{ 808{
809} 809}
810 810
811FreshStyleImpl::~FreshStyleImpl() 811FreshStyleImpl::~FreshStyleImpl()
812{ 812{
813 // We do not delete the style because Qt does that when a new style 813 // We do not delete the style because Qt does that when a new style
814 // is set. 814 // is set.
815} 815}
816 816
817QStyle *FreshStyleImpl::style() 817QStyle *FreshStyleImpl::style()
818{ 818{
819 if ( !fresh ) 819 if ( !fresh )
@@ -824,23 +824,25 @@ QStyle *FreshStyleImpl::style()
824QString FreshStyleImpl::name() const 824QString FreshStyleImpl::name() const
825{ 825{
826 return QString("Fresh"); 826 return QString("Fresh");
827} 827}
828 828
829QRESULT FreshStyleImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 829QRESULT FreshStyleImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
830{ 830{
831 *iface = 0; 831 *iface = 0;
832 if ( uuid == IID_QUnknown ) 832 if ( uuid == IID_QUnknown )
833 *iface = this; 833 *iface = this;
834 else if ( uuid == IID_Style ) 834 else if ( uuid == IID_Style )
835 *iface = this; 835 *iface = this;
836 else
837 return QS_FALSE;
836 838
837 if ( *iface ) 839 if ( *iface )
838 (*iface)->addRef(); 840 (*iface)->addRef();
839 return QS_OK; 841 return QS_OK;
840} 842}
841 843
842Q_EXPORT_INTERFACE() 844Q_EXPORT_INTERFACE()
843{ 845{
844 Q_CREATE_INSTANCE( FreshStyleImpl ) 846 Q_CREATE_INSTANCE( FreshStyleImpl )
845} 847}
846 848
diff --git a/noncore/styles/fresh/fresh.h b/noncore/styles/fresh/fresh.h
index b4be7f3..a72a83f 100644
--- a/noncore/styles/fresh/fresh.h
+++ b/noncore/styles/fresh/fresh.h
@@ -85,16 +85,15 @@ class FreshStyleImpl : public StyleInterface
85public: 85public:
86 FreshStyleImpl(); 86 FreshStyleImpl();
87 virtual ~FreshStyleImpl(); 87 virtual ~FreshStyleImpl();
88 88
89 QRESULT queryInterface( const QUuid&, QUnknownInterface** ); 89 QRESULT queryInterface( const QUuid&, QUnknownInterface** );
90 Q_REFCOUNT 90 Q_REFCOUNT
91 91
92 virtual QStyle *style(); 92 virtual QStyle *style();
93 virtual QString name() const; 93 virtual QString name() const;
94 94
95private: 95private:
96 FreshStyle *fresh; 96 FreshStyle *fresh;
97 ulong ref;
98}; 97};
99 98
100#endif // FRESHSTYLE_H 99#endif // FRESHSTYLE_H