From 556c95ec32d522305100d405eee2ef93eb6fe306 Mon Sep 17 00:00:00 2001 From: Gunnar Schmidt Date: Wed, 24 Sep 2003 20:02:35 +0000 Subject: [PATCH] added the borderSizes() method to the Plastik decoration and corrected the parameters of the borderSizes() method in the KStep decoration svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=253697 --- clients/plastik/plastik.cpp | 9 +++++++++ clients/plastik/plastik.h | 1 + 2 files changed, 10 insertions(+) diff --git a/clients/plastik/plastik.cpp b/clients/plastik/plastik.cpp index 99dcabefde..866b31f1f3 100644 --- a/clients/plastik/plastik.cpp +++ b/clients/plastik/plastik.cpp @@ -179,6 +179,15 @@ QColor PlastikHandler::getColor(KWinPlastik::ColorType type, const bool active) } } +QValueList< PlastikHandler::BorderSize > +PlastikHandler::borderSizes() const +{ + // the list must be sorted + return QValueList< BorderSize >() << BorderTiny << BorderNormal << + BorderLarge << BorderVeryLarge << BorderHuge << + BorderVeryHuge << BorderOversized; +} + } // KWinPlastik ////////////////////////////////////////////////////////////////////////////// diff --git a/clients/plastik/plastik.h b/clients/plastik/plastik.h index 10048a511a..da2c689e79 100644 --- a/clients/plastik/plastik.h +++ b/clients/plastik/plastik.h @@ -76,6 +76,7 @@ public: static Qt::AlignmentFlags titleAlign() { return m_titleAlign; } static bool reverseLayout() { return m_reverse; } static QColor getColor(KWinPlastik::ColorType type, const bool active = true); + QValueList< PlastikHandler::BorderSize > borderSizes() const; private: void readConfig();