~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to applets/plasmaboard/BackspaceKey.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 09:50:14 UTC
  • mfrom: (1.1.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100525095014-6mlrm9z9bkws0zkt
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release:
  - Bump kde-sc-dev-latest build-dep version to 4.4.80
  - Refresh kubuntu_04_kimpanel_disable_scim.diff
  - Update various .install files
  - Drop liblancelot0a and liblancelot-dev packages; Upstream has broken ABI
    without an .so version bump, and after discussion with Debian it was
    decided it was not worth it to ship an unstable library.
  - Add liblancelot files to plasma-widget-lancelot, adding appropriate
    Replaces: entries
* Switch to source format 3.0 (quilt):
  - Bump debhelper build-depend version to 7.3.16 or greater

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
#include "BackspaceKey.h"
 
22
#include "Helpers.h"
22
23
#include <QPainter>
23
24
 
24
25
 
25
 
BackspaceKey::BackspaceKey(PlasmaboardWidget *parent) : FuncKey(parent){
26
 
        setKeycode(XK_BackSpace, true);
 
26
BackspaceKey::BackspaceKey(QPoint relativePosition, QSize relativeSize) :
 
27
        FuncKey(relativePosition, relativeSize, Helpers::keysymToKeycode(XK_BackSpace), QString()){
 
28
 
27
29
}
28
30
 
29
 
void BackspaceKey::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){
30
 
 
31
 
        Plasma::PushButton::paint(painter, option, widget);
32
 
        setUpPainter(painter);
33
 
        painter->translate(-2, 0);
34
 
 
 
31
void BackspaceKey::paint(QPainter *painter){
 
32
    FuncKey::paint(painter);
 
33
 
 
34
    painter->save();
 
35
    painter->setRenderHint(QPainter::Antialiasing);
 
36
    setUpPainter(painter);
35
37
        paintArrow(painter);
 
38
    painter->restore();
36
39
}