summaryrefslogtreecommitdiff
path: root/noncore/styles/flat/flat.cpp
Unidiff
Diffstat (limited to 'noncore/styles/flat/flat.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/flat/flat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/styles/flat/flat.cpp b/noncore/styles/flat/flat.cpp
index 24366f6..f3bacf9 100644
--- a/noncore/styles/flat/flat.cpp
+++ b/noncore/styles/flat/flat.cpp
@@ -1037,49 +1037,49 @@ void FlatStyle::drawPopupMenuItem( QPainter* p, bool checkable, int maxpmw, int
1037 white, white, 1037 white, white,
1038 dis ? discol : white, 1038 dis ? discol : white,
1039 discol, white ); 1039 discol, white );
1040 drawArrow( p, RightArrow, FALSE, 1040 drawArrow( p, RightArrow, FALSE,
1041 x+w - motifArrowHMargin - motifItemFrame - dim, y+h/2-dim/2, 1041 x+w - motifArrowHMargin - motifItemFrame - dim, y+h/2-dim/2,
1042 dim, dim, g2, TRUE ); 1042 dim, dim, g2, TRUE );
1043 } else { 1043 } else {
1044 drawArrow( p, RightArrow, 1044 drawArrow( p, RightArrow,
1045 FALSE, 1045 FALSE,
1046 x+w - motifArrowHMargin - motifItemFrame - dim, y+h/2-dim/2, 1046 x+w - motifArrowHMargin - motifItemFrame - dim, y+h/2-dim/2,
1047 dim, dim, g, mi->isEnabled() ); 1047 dim, dim, g, mi->isEnabled() );
1048 } 1048 }
1049 } 1049 }
1050#endif 1050#endif
1051} 1051}
1052 1052
1053void FlatStyle::getButtonShift( int &x, int &y ) 1053void FlatStyle::getButtonShift( int &x, int &y )
1054{ 1054{
1055 x = 0; y = 0; 1055 x = 0; y = 0;
1056} 1056}
1057 1057
1058//=========================================================================== 1058//===========================================================================
1059 1059
1060FlatStyleImpl::FlatStyleImpl() 1060FlatStyleImpl::FlatStyleImpl()
1061 : flat(0), ref(0) 1061 : flat(0)
1062{ 1062{
1063} 1063}
1064 1064
1065FlatStyleImpl::~FlatStyleImpl() 1065FlatStyleImpl::~FlatStyleImpl()
1066{ 1066{
1067 // We do not delete the style because Qt does that when a new style 1067 // We do not delete the style because Qt does that when a new style
1068 // is set. 1068 // is set.
1069} 1069}
1070 1070
1071QStyle *FlatStyleImpl::style() 1071QStyle *FlatStyleImpl::style()
1072{ 1072{
1073 if ( !flat ) 1073 if ( !flat )
1074 flat = new FlatStyle(); 1074 flat = new FlatStyle();
1075 return flat; 1075 return flat;
1076} 1076}
1077 1077
1078QString FlatStyleImpl::name() const 1078QString FlatStyleImpl::name() const
1079{ 1079{
1080 return qApp->translate("FlatStyle", "Flat", "Name of the style Flat"); 1080 return qApp->translate("FlatStyle", "Flat", "Name of the style Flat");
1081} 1081}
1082 1082
1083QRESULT FlatStyleImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) 1083QRESULT FlatStyleImpl::queryInterface( const QUuid &uuid, QUnknownInterface **iface )
1084{ 1084{
1085 *iface = 0; 1085 *iface = 0;