[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.3/kdelibs/solid/solid
From: Lamarque Vieira Souza <lamarque () gmail ! com>
Date: 2009-08-11 16:37:07
Message-ID: 1250008627.221139.21218.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1010112 by lvsouza:
Backport r1010110 by lvsouza from trunk to the 4.3 branch:
Implements support to tablet switch in solid. The switch informs if a tablet laptop \
has its screen in normal rotation, like normal laptops, or if it is rotated like a \
tabletPC. Patch from Daniel O. Nascimento.
M +4 -0 backends/hal/halbutton.cpp
M +2 -1 button.h
--- branches/KDE/4.3/kdelibs/solid/solid/backends/hal/halbutton.cpp #1010111:1010112
@@ -49,6 +49,10 @@
{
return Solid::Button::SleepButton;
}
+ else if (buttontype=="tablet_mode")
+ {
+ return Solid::Button::TabletButton;
+ }
else
{
return Solid::Button::UnknownButtonType;
--- branches/KDE/4.3/kdelibs/solid/solid/button.h #1010111:1010112
@@ -55,9 +55,10 @@
* - LidButton : The switch on a laptop that senses whether the lid is open \
or closed.
* - PowerButton : The main power button on the computer.
* - SleepButton : The sleep button on a computer capable of putting the \
computer into a suspend state. + * - TabletButton : The tablet switch on a laptop \
that senses if the monitor is rotated or not.
* - UnknownButtonType : The type of the button is unknow.
*/
- enum ButtonType{ LidButton, PowerButton, SleepButton, UnknownButtonType };
+ enum ButtonType{ LidButton, PowerButton, SleepButton, UnknownButtonType, \
TabletButton };
private:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic