|
|
|
@ -42,8 +42,8 @@
@@ -42,8 +42,8 @@
|
|
|
|
|
|
|
|
|
|
SearchTab::SearchTab(SearchEngine *parent) : QWidget(), parent(parent) |
|
|
|
|
{ |
|
|
|
|
box=new QVBoxLayout(); |
|
|
|
|
results_lbl=new QLabel(); |
|
|
|
|
box = new QVBoxLayout(); |
|
|
|
|
results_lbl = new QLabel(); |
|
|
|
|
resultsBrowser = new QTreeView(); |
|
|
|
|
resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection); |
|
|
|
|
box->addWidget(results_lbl); |
|
|
|
@ -109,13 +109,16 @@ bool SearchTab::loadColWidthResultsList() {
@@ -109,13 +109,16 @@ bool SearchTab::loadColWidthResultsList() {
|
|
|
|
|
QString line = Preferences::instance()->getSearchColsWidth(); |
|
|
|
|
if (line.isEmpty()) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
QStringList width_list = line.split(' '); |
|
|
|
|
if (width_list.size() > SearchListModel->columnCount()) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
unsigned int listSize = width_list.size(); |
|
|
|
|
for (unsigned int i=0; i<listSize; ++i) { |
|
|
|
|
resultsBrowser->header()->resizeSection(i, width_list.at(i).toInt()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|