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

« back to all changes in this revision

Viewing changes to applets/luna/luna.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-26 13:35:18 UTC
  • mto: (0.4.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: james.westby@ubuntu.com-20101126133518-remqkgqjafk2a4jc
Tags: upstream-4.5.80
Import upstream version 4.5.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
void Luna::init()
49
49
{
 
50
    configChanged();
50
51
    m_theme = new Plasma::Svg(this);
51
52
    m_theme->setImagePath("widgets/luna");
52
53
    m_theme->setContainsMultipleImages(true);
58
59
 
59
60
    Plasma::ToolTipManager::self()->registerWidget(this);
60
61
 
61
 
    northHemisphere = config().readEntry("northHemisphere", true);
62
 
 
63
62
    connectToEngine();
64
63
}
65
64
 
68
67
    delete m_theme;
69
68
}
70
69
 
 
70
void Luna::configChanged()
 
71
{
 
72
    northHemisphere = config().readEntry("northHemisphere", true);
 
73
}
 
74
 
71
75
void Luna::connectToEngine()
72
76
{
73
77
    Plasma::DataEngine* timeEngine = dataEngine("time");