Mercurial > hg > octave-nkf
changeset 16823:ffc246701137
make the result list in find files dialog always fill its layout
* find-files-dialog.cc(constructor): make the last column of result list take
all available space, (handle_done): prevent warning message on unused variable
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 23 Jun 2013 16:50:08 +0200 |
parents | 0e389992291e |
children | 51bcaa55f120 |
files | libgui/src/find-files-dialog.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/find-files-dialog.cc +++ b/libgui/src/find-files-dialog.cc @@ -106,6 +106,7 @@ _file_list->setAlternatingRowColors(true); _file_list->setToolTip (tr ("Search results")); _file_list->horizontalHeader ()->restoreState (settings->value ("findfiles/column_state").toByteArray ()); + _file_list->horizontalHeader ()->setStretchLastSection (true); _file_list->sortByColumn ( settings->value ("findfiles/sort_files_by_column",0).toInt (), static_cast<Qt::SortOrder>(settings->value ("findfiles/sort_files_by_order",Qt::AscendingOrder).toUInt ())); @@ -161,7 +162,6 @@ content_layout->setColumnStretch (2,1); content_layout->addWidget (_content_case_check,5,1); - QGridLayout *main_layout = new QGridLayout; main_layout->setSizeConstraint (QLayout::SetFixedSize); main_layout->addWidget (name_group, 0, 0); @@ -205,7 +205,7 @@ delete _dir_iterator; } -void find_files_dialog::handle_done (int button) +void find_files_dialog::handle_done (int) { // make sure we stopped processing stop_find ();