Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Meego:Tablet
libmeegotouch
BMC13246_0004-Changed-MTheme-remove-assumption-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File BMC13246_0004-Changed-MTheme-remove-assumption-that-default-orient.patch of Package libmeegotouch
From ecd8622f16f0d1fb054c22017bdfc008c3e88e09 Mon Sep 17 00:00:00 2001 From: Shane Bryan <shane.bryan@linux.intel.com> Date: Tue, 8 Mar 2011 14:07:32 -0800 Subject: [PATCH 4/9] Changed: MTheme - remove assumption that default orientation is landscape RevBy: Daniel d'Andrada ModifiedBy: Daniel d'Andrada - made it use a different method from MDeviceProfile Details: Rather than assuming that default theme orientation is M::Landscape, return sane result based on device native orientation. Part of fix for BMC#13264. --- src/corelib/theme/mtheme.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/corelib/theme/mtheme.cpp b/src/corelib/theme/mtheme.cpp index 6481ddd..0f6508c 100644 --- a/src/corelib/theme/mtheme.cpp +++ b/src/corelib/theme/mtheme.cpp @@ -59,6 +59,7 @@ M_LIBRARY #include "mapplicationwindow.h" #include "mcomponentdata.h" #include "mcomponentdata_p.h" +#include "mdeviceprofile.h" #include "mgraphicssystemhelper.h" @@ -498,7 +499,9 @@ bool MThemePrivate::appendLibraryStyleSheet(QList<const MStyleSheet *> &sheets, const MStyle *MTheme::style(const char *styleClassName, const QString &objectName) { - return MTheme::style(styleClassName, objectName, 0, 0, M::Landscape, NULL); + M::Orientation nativeOrientation = MDeviceProfile::instance()->orientationFromAngle(M::Angle0); + + return MTheme::style(styleClassName, objectName, 0, 0, nativeOrientation, NULL); } const MStyle *MTheme::style(const char *styleClassName, -- 1.7.2.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor