diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h --- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h +++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h @@ -26,7 +26,6 @@ #include #include -class KColorSchemeManager; class QAbstractItemModel; namespace KDecoration2 @@ -40,8 +39,6 @@ Q_PROPERTY(QString caption READ caption WRITE setCaption NOTIFY captionChanged) Q_PROPERTY(QIcon icon READ icon WRITE setIcon NOTIFY iconChanged) Q_PROPERTY(QString iconName READ iconName WRITE setIconName NOTIFY iconNameChanged) - Q_PROPERTY(QAbstractItemModel *colorSchemeModel READ colorSchemeModel CONSTANT) - Q_PROPERTY(int colorSchemeIndex READ colorSchemeIndex WRITE setColorSchemeIndex NOTIFY colorSchemeIndexChanged) Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged) Q_PROPERTY(bool closeable READ isCloseable WRITE setCloseable NOTIFY closeableChanged) Q_PROPERTY(bool keepAbove READ isKeepAbove WRITE setKeepAbove NOTIFY keepAboveChanged) @@ -137,10 +134,6 @@ void setIconName(const QString &icon); void setIcon(const QIcon &icon); - QAbstractItemModel *colorSchemeModel() const; - int colorSchemeIndex() const; - void setColorSchemeIndex(int index); - bool bordersTopEdge() const; bool bordersLeftEdge() const; bool bordersRightEdge() const; @@ -174,7 +167,6 @@ void desktopChanged(int); void widthChanged(int); void heightChanged(int); - void colorSchemeIndexChanged(int); void paletteChanged(const QPalette&); void bordersTopEdgeChanged(bool); void bordersLeftEdgeChanged(bool); @@ -187,8 +179,6 @@ void closeRequested(); private: - KColorSchemeManager *m_colorSchemeManager; - int m_colorSchemeIndex; QString m_caption; QIcon m_icon; QString m_iconName; diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp --- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp +++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.cpp @@ -21,9 +21,6 @@ #include #include -#include -#include - #include #include #include @@ -37,8 +34,6 @@ PreviewClient::PreviewClient(DecoratedClient *c, Decoration *decoration) : QObject(decoration) , ApplicationMenuEnabledDecoratedClientPrivate(c, decoration) - , m_colorSchemeManager(new KColorSchemeManager(this)) - , m_colorSchemeIndex(0) , m_icon(QIcon::fromTheme(QStringLiteral("start-here-kde"))) , m_iconName(m_icon.name()) , m_palette(QStringLiteral("kdeglobals")) @@ -272,25 +267,6 @@ return m_palette.color(group, role); } -QAbstractItemModel *PreviewClient::colorSchemeModel() const -{ - return m_colorSchemeManager->model(); -} - -int PreviewClient::colorSchemeIndex() const -{ - return m_colorSchemeIndex; -} - -void PreviewClient::setColorSchemeIndex(int index) -{ - if (m_colorSchemeIndex == index) { - return; - } - m_colorSchemeIndex = index; - emit colorSchemeIndexChanged(m_colorSchemeIndex); -} - Qt::Edges PreviewClient::adjacentScreenEdges() const { Qt::Edges edges;