From kde-commits Sun Apr 12 18:56:23 2009 From: =?utf-8?q?Bj=C3=B6rn=20Ruberg?= Date: Sun, 12 Apr 2009 18:56:23 +0000 To: kde-commits Subject: playground/base/plasma/applets/plasmaboard Message-Id: <1239562583.997442.21193.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123956259331594 SVN commit 952880 by ruberg: Arrow for Backspace A BackspaceKey.cpp [License: UNKNOWN] A BackspaceKey.h [License: UNKNOWN] M +1 -1 CMakeLists.txt M +1 -1 EnterKey.cpp M +2 -2 widget.cpp --- trunk/playground/base/plasma/applets/plasmaboard/CMakeLists.txt #952879:952880 @@ -13,7 +13,7 @@ ) # We add our source code here -set(plasmaboard_SRCS widget.cpp BoardKey.cpp PanelIcon.cpp AlphaNumKey.cpp FuncKey.cpp EnterKey.cpp) +set(plasmaboard_SRCS widget.cpp BoardKey.cpp PanelIcon.cpp AlphaNumKey.cpp FuncKey.cpp EnterKey.cpp BackspaceKey.cpp) # Now make sure all files get to the right place kde4_add_plugin(plasma_applet_plasmaboard ${plasmaboard_SRCS}) --- trunk/playground/base/plasma/applets/plasmaboard/EnterKey.cpp #952879:952880 @@ -40,7 +40,7 @@ QPointF(rect.left() + width / 3, center.y() + height / 20), }; - painter->drawConvexPolygon(points, 3) + painter->drawConvexPolygon(points, 3); Plasma::PushButton::paint(painter, option, widget); } --- trunk/playground/base/plasma/applets/plasmaboard/widget.cpp #952879:952880 @@ -23,6 +23,7 @@ #include "AlphaNumKey.h" #include "FuncKey.h" #include "EnterKey.h" +#include "BackspaceKey.h" #include #include #include @@ -216,6 +217,7 @@ i++; } + funcKeys[0] = new BackspaceKey(this); funcKeys[2] = new EnterKey(this); i = 0; @@ -345,8 +347,6 @@ alphaKeys[46]->setKeycode(60); alphaKeys[47]->setKeycode(61); - funcKeys[0]->setKeycode(XK_BackSpace, true); - funcKeys[0]->setText("BSPC"); funcKeys[1]->setKeycode(XK_Tab, true); funcKeys[1]->setText("TAB");