- remove some rather superfluous dptr methods

- whitespace fixes

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=717943
This commit is contained in:
Aaron J. Seigo 2007-09-27 19:04:24 +00:00
parent ff5b3b72db
commit c58c19816f
2 changed files with 44 additions and 37 deletions

View File

@ -29,43 +29,50 @@ namespace Plasma
class AppletBrowser::Private class AppletBrowser::Private
{ {
public: public:
Private(AppletBrowser * parent, Corona * corona) Private(AppletBrowser *parent, Corona *corona)
: q(parent), window(new AppletBrowserWindow(corona)) : q(parent), window(new AppletBrowserWindow(corona))
{}; {}
Private(AppletBrowser * parent, Containment * containment) Private(AppletBrowser *parent, Containment *containment)
: q(parent), window(new AppletBrowserWindow(containment)) : q(parent), window(new AppletBrowserWindow(containment))
{}; {}
~Private() { ~Private()
{
delete window; delete window;
} }
void show() { if (window) window->show(); }; AppletBrowser *q;
void hide() { if (window) window->hide(); }; AppletBrowserWindow *window;
AppletBrowser * q;
AppletBrowserWindow * window;
}; };
AppletBrowser::AppletBrowser(Corona * corona) AppletBrowser::AppletBrowser(Corona * corona)
: d(new Private(this, corona)) : d(new Private(this, corona))
{} {
}
AppletBrowser::AppletBrowser(Containment * containment) AppletBrowser::AppletBrowser(Containment * containment)
: d(new Private(this, containment)) : d(new Private(this, containment))
{} {
}
AppletBrowser::~AppletBrowser() { AppletBrowser::~AppletBrowser()
{
delete d; delete d;
} }
void AppletBrowser::show() { void AppletBrowser::show()
{
if (d->window) {
d->window->show(); d->window->show();
}
} }
void AppletBrowser::hide() { void AppletBrowser::hide()
{
if (d->window) {
d->window->hide(); d->window->hide();
}
} }

View File

@ -23,16 +23,16 @@
namespace Plasma namespace Plasma
{ {
class Corona; class Corona;
class Containment; class Containment;
/** /**
* Interface for applet browser * Interface for applet browser
* *
*/ */
class AppletBrowser class AppletBrowser
{ {
public: public:
explicit AppletBrowser(Corona * corona); explicit AppletBrowser(Corona * corona);
explicit AppletBrowser(Containment * corona); explicit AppletBrowser(Containment * corona);
virtual ~AppletBrowser(); virtual ~AppletBrowser();
@ -47,10 +47,10 @@ namespace Plasma
*/ */
void hide(); void hide();
private: private:
class Private; class Private;
Private * const d; Private * const d;
}; };
} // namespace Plasma } // namespace Plasma