~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to app/abstractcontextmanageritem.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
// Local
23
23
#include "contextmanager.h"
24
24
 
25
 
namespace Gwenview {
 
25
namespace Gwenview
 
26
{
26
27
 
27
28
struct AbstractContextManagerItemPrivate {
28
 
        ContextManager* mContextManager;
29
 
        QWidget* mWidget;
 
29
    ContextManager* mContextManager;
 
30
    QWidget* mWidget;
30
31
};
31
32
 
32
33
AbstractContextManagerItem::AbstractContextManagerItem(ContextManager* manager)
33
34
: QObject(manager)
34
 
, d(new AbstractContextManagerItemPrivate) {
35
 
        d->mContextManager = manager;
36
 
        d->mWidget = 0;
37
 
}
38
 
 
39
 
 
40
 
AbstractContextManagerItem::~AbstractContextManagerItem() {
41
 
        delete d;
42
 
}
43
 
 
44
 
 
45
 
ContextManager* AbstractContextManagerItem::contextManager() const {
46
 
        return d->mContextManager;
47
 
}
48
 
 
49
 
 
50
 
QWidget* AbstractContextManagerItem::widget() const {
51
 
        return d->mWidget;
52
 
}
53
 
 
54
 
 
55
 
void AbstractContextManagerItem::setWidget(QWidget* widget) {
56
 
        d->mWidget = widget;
57
 
}
58
 
 
 
35
, d(new AbstractContextManagerItemPrivate)
 
36
{
 
37
    d->mContextManager = manager;
 
38
    d->mWidget = 0;
 
39
}
 
40
 
 
41
AbstractContextManagerItem::~AbstractContextManagerItem()
 
42
{
 
43
    delete d;
 
44
}
 
45
 
 
46
ContextManager* AbstractContextManagerItem::contextManager() const
 
47
{
 
48
    return d->mContextManager;
 
49
}
 
50
 
 
51
QWidget* AbstractContextManagerItem::widget() const
 
52
{
 
53
    return d->mWidget;
 
54
}
 
55
 
 
56
void AbstractContextManagerItem::setWidget(QWidget* widget)
 
57
{
 
58
    d->mWidget = widget;
 
59
}
59
60
 
60
61
} // namespace