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
This commit is contained in:
Marco Martin 2008-01-02 10:39:29 +00:00
parent 75f6e84d59
commit bef6adb720
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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