From: Tomas S. <tom...@gm...> - 2010-09-23 18:01:33
|
Hello Getting back to this year old question. 2010-01-20 Neulinger, Nathan: > Is it possible to allow multiline results to expand the height of a cell > in the results listing? I know that the code doesn't currently support > this, but is there an option in the Qt table widget that could be turned > on/off with a preference setting to allow this? Apparently Qt works this way: 1. QTableView::sizeHintForRow calculates what width of a row should be (automatic calculation seems OK). 2. ONLY if QTableView resizeRowsToContents(); is called (and only then) that Height value is actually used. Now there is toResultTableView::sizeHintForRow defined which always returns 5 (while automatically calculated value by Qt on my environment for one row is 15, two rows - 30 etc.). resizeRowsToContents is NOT called in toResultTableView::applyColumnRules so that sizeHint is not used. Therefore questions: 1. Do we really need this toResultTableView::sizeHintForRow returning 5? Default Qt procedure calculates row height correctly and TOra does work OK with that method commented out. But maybe it is actually used somewhere? Code scan finds resizeRowsToContents only in tostorage.cpp, but I do not see any ill effects in Storage tool with automatic height calculation enabled. 2. How should this vertical expansion implemented? For worksheet only? What about schema browser? What about all other results? (Easiest way is to enable it everywhere when checkbox in preferences is set). 3. Option(s) should be added to control row expansion in ...? -- Tomas Straupis |