- remove some rather superfluous dptr methods
- whitespace fixes svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=717943
This commit is contained in:
parent
ff5b3b72db
commit
c58c19816f
@ -29,43 +29,50 @@ namespace Plasma
|
||||
class AppletBrowser::Private
|
||||
{
|
||||
public:
|
||||
Private(AppletBrowser * parent, Corona * corona)
|
||||
Private(AppletBrowser *parent, Corona *corona)
|
||||
: q(parent), window(new AppletBrowserWindow(corona))
|
||||
{};
|
||||
{}
|
||||
|
||||
Private(AppletBrowser * parent, Containment * containment)
|
||||
Private(AppletBrowser *parent, Containment *containment)
|
||||
: q(parent), window(new AppletBrowserWindow(containment))
|
||||
{};
|
||||
{}
|
||||
|
||||
~Private() {
|
||||
~Private()
|
||||
{
|
||||
delete window;
|
||||
}
|
||||
|
||||
void show() { if (window) window->show(); };
|
||||
void hide() { if (window) window->hide(); };
|
||||
|
||||
AppletBrowser * q;
|
||||
AppletBrowserWindow * window;
|
||||
AppletBrowser *q;
|
||||
AppletBrowserWindow *window;
|
||||
};
|
||||
|
||||
AppletBrowser::AppletBrowser(Corona * corona)
|
||||
: d(new Private(this, corona))
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
AppletBrowser::AppletBrowser(Containment * containment)
|
||||
: d(new Private(this, containment))
|
||||
{}
|
||||
{
|
||||
}
|
||||
|
||||
AppletBrowser::~AppletBrowser() {
|
||||
AppletBrowser::~AppletBrowser()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
void AppletBrowser::show() {
|
||||
d->window->show();
|
||||
void AppletBrowser::show()
|
||||
{
|
||||
if (d->window) {
|
||||
d->window->show();
|
||||
}
|
||||
}
|
||||
|
||||
void AppletBrowser::hide() {
|
||||
d->window->hide();
|
||||
void AppletBrowser::hide()
|
||||
{
|
||||
if (d->window) {
|
||||
d->window->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,34 +23,34 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
class Corona;
|
||||
class Containment;
|
||||
class Corona;
|
||||
class Containment;
|
||||
|
||||
/**
|
||||
* Interface for applet browser
|
||||
*
|
||||
*/
|
||||
class AppletBrowser
|
||||
{
|
||||
public:
|
||||
explicit AppletBrowser(Corona * corona);
|
||||
explicit AppletBrowser(Containment * corona);
|
||||
virtual ~AppletBrowser();
|
||||
class AppletBrowser
|
||||
{
|
||||
public:
|
||||
explicit AppletBrowser(Corona * corona);
|
||||
explicit AppletBrowser(Containment * corona);
|
||||
virtual ~AppletBrowser();
|
||||
|
||||
/**
|
||||
* Displays the applet browser window
|
||||
*/
|
||||
void show();
|
||||
/**
|
||||
* Displays the applet browser window
|
||||
*/
|
||||
void show();
|
||||
|
||||
/**
|
||||
* Hides the applet browser window
|
||||
*/
|
||||
void hide();
|
||||
/**
|
||||
* Hides the applet browser window
|
||||
*/
|
||||
void hide();
|
||||
|
||||
private:
|
||||
class Private;
|
||||
Private * const d;
|
||||
};
|
||||
private:
|
||||
class Private;
|
||||
Private * const d;
|
||||
};
|
||||
|
||||
} // namespace Plasma
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user