svn path=/trunk/KDE/kdelibs/; revision=903301

This commit is contained in:
Sebastian Kügler 2008-12-30 12:53:33 +00:00
parent d50b126504
commit 168ae12dc5
2 changed files with 4 additions and 0 deletions

View File

@ -291,6 +291,7 @@ void IconWidget::init()
{
readColors();
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(readColors()));
connect(KGlobalSettings::self(), SIGNAL(kdisplayPaletteChanged()), SLOT(readColors()));
// setAcceptedMouseButtons(Qt::LeftButton);
setAcceptsHoverEvents(true);

View File

@ -24,6 +24,7 @@
#include <QDir>
#include <kmimetype.h>
#include <kglobalsettings.h>
#include "theme.h"
#include "svg.h"
@ -91,6 +92,8 @@ Label::Label(QGraphicsWidget *parent)
connect(native, SIGNAL(linkActivated(QString)), this, SIGNAL(linkActivated(QString)));
connect(Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(setPalette()));
connect(KGlobalSettings::self(), SIGNAL(kdisplayPaletteChanged()), this, SLOT(setPalette()));
native->setAttribute(Qt::WA_NoSystemBackground);
native->setWordWrap(true);
setWidget(native);