Mercurial > projects > qtd
diff examples/draganddrop/dropsite/dropsitewindow.d @ 374:681af90e1d53
Removed debug writelns. Fixed build script.
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Thu, 08 Jul 2010 22:21:56 +0300 |
parents | a032df77b6ab |
children |
line wrap: on
line diff
--- a/examples/draganddrop/dropsite/dropsitewindow.d Thu Jul 08 17:20:02 2010 +0300 +++ b/examples/draganddrop/dropsite/dropsitewindow.d Thu Jul 08 22:21:56 2010 +0300 @@ -52,10 +52,6 @@ import droparea; - -import std.stdio; //TODO: remove - - class DropSiteWindow : public QWidget { public: @@ -111,7 +107,6 @@ foreach (string format; mimeData.formats()) { - writeln("Point 1"); QTableWidgetItem formatItem = new QTableWidgetItem(format); formatItem.setFlags(Qt.ItemIsEnabled); formatItem.setTextAlignment(Qt.AlignTop | Qt.AlignLeft); @@ -136,22 +131,15 @@ } int row = formatsTable.rowCount(); + formatsTable.insertRow(row); - - writeln("Point 2"); formatsTable.setItem(row, 0, new QTableWidgetItem(format)); - writeln("Point 3"); formatsTable.setItem(row, 1, new QTableWidgetItem(text)); } formatsTable.resizeColumnToContents(0); } - - ~this() - { - writeln("deleting dropsitewindow"); - } - + private: DropArea dropArea;