~ubuntu-branches/ubuntu/trusty/kdeplasma-addons/trusty

« back to all changes in this revision

Viewing changes to applets/lancelot/tools/puck/Modules/Widgets/Lancelot__BasicWidget.py

  • 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:
11
11
        includesCode = ""
12
12
        for include in includes:
13
13
            if (include != ""):
14
 
                includesCode = "#include<" + include + ">\n"
 
14
                includesCode += "#include<" + include + ">\n"
15
15
        return includesCode
16
16
 
17
17
 
18
18
    def setup(self):
19
19
        setup = Lancelot__Widget.Lancelot__WidgetHandler.setup(self)
20
20
 
21
 
        
 
21
 
22
22
        if self.hasAttribute('icon'):
23
23
            setup += self.attribute('name') \
24
24
                  + '->setIcon(KIcon("' + self.attribute('icon') + '"));'
25
 
        
 
25
 
26
26
        if self.hasAttribute('iconSize'):
27
27
            setup += self.attribute('name') \
28
28
                  + '->setIconSize(QSize(' + self.attribute('iconSize') + '));'
29
 
        
 
29
 
30
30
        if self.hasAttribute('title'):
31
31
            setup += self.attribute('name') \
32
32
                  + '->setTitle(i18n("' + self.attribute('title') + '"));'
33
 
        
 
33
 
34
34
        if self.hasAttribute('description'):
35
35
            setup += self.attribute('name') \
36
36
                  + '->setDescription(i18n("' + self.attribute('description') + '"));'
37
 
        
 
37
 
38
38
        if self.hasAttribute('innerOrientation'):
39
39
            setup += self.attribute('name') \
40
40
                  + '->setInnerOrientation(Qt::' + self.attribute('innerOrientation') + ');'
41
 
        
 
41
 
42
42
 
43
43
        return setup;
44
44