Skip to content

Commit

Permalink
indicators: Fix element
Browse files Browse the repository at this point in the history
Import QtQuick.Layouts to make the Layout attached object available and
correct properties name.

Issue: #134
  • Loading branch information
plfiorini committed Mar 22, 2014
1 parent 5d7e914 commit ac98947
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -26,19 +26,20 @@

import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import Fluid.Ui 1.0 as FluidUi
import Hawaii.Shell 1.0
import Hawaii.Shell.Core 1.0

Item {
id: statusArea
Layout.implicitWidth: {
Layout.preferredWidth: {
if (listView.orientation == ListView.Horizontal)
return listView.headerItem.width + (listView.count * __priv.iconSize) +
(__priv.margin * (listView.count + 3));
return __priv.iconSize;
}
Layout.implicitHeight: {
Layout.preferredHeight: {
if (listView.orientation == ListView.Horizontal)
return __priv.iconSize;
return listView.headerItem.height + (listView.count * __priv.iconSize) +
Expand Down

0 comments on commit ac98947

Please sign in to comment.