From dc3957854641204a3868f2e87363e6c782713339 Mon Sep 17 00:00:00 2001 From: Sudheer K Date: Wed, 15 Jun 2011 08:13:53 -0700 Subject: [PATCH] Stopped using XMLListModel to avoid memory leaks --- src/qml/StockQuoteDelegate.qml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/qml/StockQuoteDelegate.qml diff --git a/src/qml/StockQuoteDelegate.qml b/src/qml/StockQuoteDelegate.qml deleted file mode 100644 index e647282..0000000 --- a/src/qml/StockQuoteDelegate.qml +++ /dev/null @@ -1,29 +0,0 @@ -/* -@version: 0.1 -@author: Sudheer K. -@license: GNU General Public License -*/ - -import Qt 4.7 - -Component { - Item { - id: wrapper; width: wrapper.PathView.view.width; height: 50 - Rectangle { color: "black"; opacity: index % 2 ? 0.2 : 0.4; height: wrapper.height; width: wrapper.width; y: 1 - Row { - anchors.verticalCenter: parent.verticalCenter - anchors.left: parent.left - width: wrapper.PathView.view.width - 70; - spacing: 5 - Text { text: symbol; width: parent.width * 35/100; font.pixelSize: 18; font.bold: true; elide: Text.ElideRight; color: "white"; style: Text.Raised; styleColor: "black" } - Text { text: lastTradedPrice; width: parent.width * 25/100; font.pixelSize: 18; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" } - Text { text: change; width: parent.width * 20/100; font.pixelSize: 18; elide: Text.ElideRight - color: if(change >= 0){"green";} else {"red";} - style: Text.Raised; styleColor: "black" } - Text { text: changePercentage; width: parent.width * 20/100; font.pixelSize: 18; elide: Text.ElideRight; - color: if(change >= 0){"green";} else {"red";} - style: Text.Raised; styleColor: "black" } - } - } - } -} -- 1.7.9.5