homescreenapp/hsdomainmodel/inc/hspagenewwidgetlayout.h
changeset 77 4b195f3bea29
parent 61 2b1b11a301d2
child 96 458d8c8d9580
--- a/homescreenapp/hsdomainmodel/inc/hspagenewwidgetlayout.h	Tue Jul 06 14:06:53 2010 +0300
+++ b/homescreenapp/hsdomainmodel/inc/hspagenewwidgetlayout.h	Wed Aug 18 09:40:07 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -35,9 +35,13 @@
     void removeAt(int index);
     QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
     void setGeometry(const QRectF &rect);
-    
     void addItem(HsWidgetHost *item);
-    
+    enum sortOrder { height, width};
+
+private:
+#ifdef HSWIDGETORGANIZER_ALGORITHM
+    QList<HsWidgetHost*> sortWidgets(sortOrder order);
+#endif    
 private:
     QSizeF mSize;
     QList<HsWidgetHost*> mNewWidgets;
@@ -46,5 +50,4 @@
     HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel)
 };
 
-
 #endif