~ubuntu-branches/ubuntu/quantal/kde-runtime/quantal

« back to all changes in this revision

Viewing changes to plasma/kpart/plasmakpart.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-06-03 21:50:00 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120603215000-vn7oarsq0ynrydj5
Tags: upstream-4.8.80
Import upstream version 4.8.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
 
123
123
PlasmaKPartCorona* PlasmaKPart::corona() const
124
124
{
 
125
    Q_ASSERT(m_corona);
125
126
    return m_corona;
126
127
}
127
128
 
128
129
void PlasmaKPart::createView(Plasma::Containment *containment)
129
130
{
 
131
    Q_ASSERT(containment);
130
132
    m_view->setContainment(containment);
131
133
}
132
134
 
133
135
void PlasmaKPart::addApplet(const QString& name, const QVariantList& args, const QRectF& geometry )
134
136
{
 
137
    Q_ASSERT(containment());
135
138
    containment()->addApplet(name, args, geometry);
136
139
}
137
140
 
155
158
 
156
159
Plasma::Containment* PlasmaKPart::containment() const
157
160
{
 
161
    Q_ASSERT(corona());
 
162
    Q_ASSERT(!corona()->containments().isEmpty());
158
163
    return corona()->containments().first();
159
164
}
160
165