From bef6adb7200d11292f5701c385a4bb13f89cb354 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 2 Jan 2008 10:39:29 +0000 Subject: [PATCH] added bool invertedLayout() const; returns if the layout of the icons should appear inverted or not svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=755891 --- widgets/icon.cpp | 5 +++++ widgets/icon.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/widgets/icon.cpp b/widgets/icon.cpp index 40b5c5810..a21b5989d 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -1128,6 +1128,11 @@ void Icon::invertLayout(bool invert) d->invertLayout = invert; } +bool Icon::invertedLayout() const +{ + return d->invertLayout; +} + QSizeF Icon::sizeFromIconSize(const qreal iconWidth) const { //no text, less calculations diff --git a/widgets/icon.h b/widgets/icon.h index f92774e08..ffc794a48 100644 --- a/widgets/icon.h +++ b/widgets/icon.h @@ -158,6 +158,11 @@ public: */ void invertLayout(bool invert); + /** + * @return if the layout of the icons should appear inverted or not + */ + bool invertedLayout() const; + /** * @return optimal size given a size for the icon * @param iconWidth desidered width of the icon