[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4633 - gnunet-qt/src/plugins/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4633 - gnunet-qt/src/plugins/fs |
Date: |
Sun, 4 Mar 2007 14:03:26 -0700 (MST) |
Author: durner
Date: 2007-03-04 14:03:26 -0700 (Sun, 04 Mar 2007)
New Revision: 4633
Modified:
gnunet-qt/src/plugins/fs/fs-search.cc
Log:
recalculate row height after columns are made visible/hidden
Modified: gnunet-qt/src/plugins/fs/fs-search.cc
===================================================================
--- gnunet-qt/src/plugins/fs/fs-search.cc 2007-03-04 19:02:28 UTC (rev
4632)
+++ gnunet-qt/src/plugins/fs/fs-search.cc 2007-03-04 21:03:26 UTC (rev
4633)
@@ -135,7 +135,14 @@
item = menu->exec();
if (item)
+ {
setColHidden(item->data().toInt(), !item->isChecked());
+
+ // kludge: hiding rows causes recalculation of row heights.
+ // This is necessary because we calculate the height for visible columns
only.
+ treeResults->setRowHidden(0, QModelIndex(), true);
+ treeResults->setRowHidden(0, QModelIndex(), false);
+ }
delete menu;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4633 - gnunet-qt/src/plugins/fs,
gnunet <=