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

« back to all changes in this revision

Viewing changes to applets/plasmaboard/ArrowBottomKey.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 "ArrowBottomKey.h"
 
22
#include "Helpers.h"
22
23
#include <QPainter>
23
24
 
24
 
ArrowBottomKey::ArrowBottomKey(PlasmaboardWidget *parent) : FuncKey(parent){
25
 
        setKeycode(XK_Down, true);
 
25
ArrowBottomKey::ArrowBottomKey(QPoint relativePosition, QSize relativeSize) :
 
26
        FuncKey(relativePosition, relativeSize, Helpers::keysymToKeycode(XK_Down), QString()){
 
27
 
26
28
}
27
29
 
28
 
void ArrowBottomKey::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){
29
 
 
30
 
        Plasma::PushButton::paint(painter, option, widget);
31
 
        setUpPainter(painter);
32
 
 
 
30
void ArrowBottomKey::paint(QPainter *painter){
 
31
    FuncKey::paint(painter);
 
32
 
 
33
    painter->save();
 
34
    setUpPainter(painter);
 
35
    painter->setRenderHint(QPainter::Antialiasing);
33
36
        painter->rotate(-90);
34
37
        paintArrow(painter);
 
38
    painter->restore();
35
39
}