API review
more SIGNAL changed() -> themeChanged() thanks Alexis for your vigilance! svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800244
This commit is contained in:
parent
d52b839cf9
commit
970e72245c
@ -198,7 +198,7 @@ public:
|
|||||||
|
|
||||||
applet->setDrawStandardBackground(true);
|
applet->setDrawStandardBackground(true);
|
||||||
|
|
||||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(changed()), applet, SLOT(themeChanged()));
|
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), applet, SLOT(themeChanged()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// put all setup routines for script here. at this point we can assume that
|
// put all setup routines for script here. at this point we can assume that
|
||||||
|
@ -78,7 +78,7 @@ Dialog::Dialog( QWidget * parent, Qt::WindowFlags f )
|
|||||||
|
|
||||||
connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(update()));
|
connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(update()));
|
||||||
|
|
||||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(changed()), this, SLOT(themeUpdated()));
|
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(themeUpdated()));
|
||||||
d->themeUpdated();
|
d->themeUpdated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
svg.cpp
4
svg.cpp
@ -79,7 +79,7 @@ class Svg::Private
|
|||||||
void setImagePath(const QString &imagePath, Svg *q)
|
void setImagePath(const QString &imagePath, Svg *q)
|
||||||
{
|
{
|
||||||
if (themed) {
|
if (themed) {
|
||||||
disconnect(Plasma::Theme::defaultTheme(), SIGNAL(changed()), q, SLOT(themeChanged()));
|
disconnect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), q, SLOT(themeChanged()));
|
||||||
disconnect(KGlobalSettings::self(), SIGNAL(kdisplayPaletteChanged()), q, SLOT(colorsChanged()));
|
disconnect(KGlobalSettings::self(), SIGNAL(kdisplayPaletteChanged()), q, SLOT(colorsChanged()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ class Svg::Private
|
|||||||
|
|
||||||
if (themed) {
|
if (themed) {
|
||||||
themePath = imagePath;
|
themePath = imagePath;
|
||||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(changed()), q, SLOT(themeChanged()));
|
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), q, SLOT(themeChanged()));
|
||||||
|
|
||||||
// check if svg wants colorscheme applied
|
// check if svg wants colorscheme applied
|
||||||
createRenderer();
|
createRenderer();
|
||||||
|
@ -288,7 +288,7 @@ Icon::~Icon()
|
|||||||
void Icon::init()
|
void Icon::init()
|
||||||
{
|
{
|
||||||
readColors();
|
readColors();
|
||||||
connect(Plasma::Theme::defaultTheme(), SIGNAL(changed()), SLOT(readColors()));
|
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(readColors()));
|
||||||
|
|
||||||
// setAcceptedMouseButtons(Qt::LeftButton);
|
// setAcceptedMouseButtons(Qt::LeftButton);
|
||||||
setAcceptsHoverEvents(true);
|
setAcceptsHoverEvents(true);
|
||||||
|
@ -221,7 +221,7 @@ ToolTip::ToolTip()
|
|||||||
connect(d->showTimer, SIGNAL(timeout()), SLOT(showToolTip()));
|
connect(d->showTimer, SIGNAL(timeout()), SLOT(showToolTip()));
|
||||||
connect(d->hideTimer, SIGNAL(timeout()), SLOT(resetShownState()));
|
connect(d->hideTimer, SIGNAL(timeout()), SLOT(resetShownState()));
|
||||||
|
|
||||||
connect(Plasma::Theme::self(), SIGNAL(changed()), this, SLOT(themeUpdated()));
|
connect(Plasma::Theme::self(), SIGNAL(themeChanged()), this, SLOT(themeUpdated()));
|
||||||
themeUpdated();
|
themeUpdated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user