{"thread":{"id":"6863","subject":"[PATCH 2/3] Improve default column widths by changing resize modes","startedAt":"2007-02-17T22:00:20Z","lastAt":"2007-02-17T22:00:20Z","messageCount":1,"participants":["Andy Parkins"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"34896","messageId":"200702172200.20859.andyparkins@gmail.com","threadId":"6863","inReplyTo":null,"subject":"[PATCH 2/3] Improve default column widths by changing resize modes","fromName":"Andy Parkins","fromEmail":"andyparkins@gmail.com","sentAt":"2007-02-17T22:00:20Z","receivedAt":"2007-02-17T22:00:20Z","isPatch":true,"sender":{"key":"andyparkins@gmail.com","avatar":null},"body":"The time column is not the best column to be auto stretched, it's\nprobably a fixed width because it's only showing dates.  The log column\nis more typically variable, so have that one be the one that takes up\nwhatever space is left.\n\nSigned-off-by: Andy Parkins <andyparkins@gmail.com>\n---\n src/listview.cpp |    7 ++++---\n 1 files changed, 4 insertions(+), 3 deletions(-)\n\ndiff --git a/src/listview.cpp b/src/listview.cpp\nindex 12066f3..45e696b 100644\n--- a/src/listview.cpp\n+++ b/src/listview.cpp\n@@ -64,15 +64,16 @@ void ListView::setupGeometry() {\n \tsetPalette(pl); // does not seem to inherit application paletteAnnotate\n \n \tQHeaderView* hv = header();\n-\thv->setStretchLastSection(true);\n-\thv->setResizeMode(LOG_COL, QHeaderView::Interactive);\n-\thv->setResizeMode(TIME_COL, QHeaderView::Interactive);\n+\thv->setStretchLastSection(false);\n+\thv->setResizeMode( LOG_COL, QHeaderView::Stretch );\n+\thv->setResizeMode( TIME_COL, QHeaderView::Interactive);\n \thv->setResizeMode(ANN_ID_COL, QHeaderView::ResizeToContents);\n \thv->resizeSection(GRAPH_COL, DEF_GRAPH_COL_WIDTH);\n \thv->resizeSection(LOG_COL, DEF_LOG_COL_WIDTH);\n \thv->resizeSection(AUTH_COL, DEF_AUTH_COL_WIDTH);\n \thv->resizeSection(TIME_COL, DEF_TIME_COL_WIDTH);\n \n+\n \tif (git->isMainHistory(fh))\n \t\thideColumn(ANN_ID_COL);\n }\n-- \n1.5.0.rc4.gb4d2\n"}]}