comparison src/folderselectdialog.cpp @ 88:3916cb3c9105

Add new FilterSort model that allows to include empty values
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 19 Jun 2015 14:26:16 +0200
parents a32406f8832f
children c3000fa6ca56
comparison
equal deleted inserted replaced
87:3b3a1384eb5f 88:3916cb3c9105
113 &FolderSelectDialog::goClicked); 113 &FolderSelectDialog::goClicked);
114 connect(mPathLineEdit, &QLineEdit::returnPressed, this, 114 connect(mPathLineEdit, &QLineEdit::returnPressed, this,
115 &FolderSelectDialog::goClicked); 115 &FolderSelectDialog::goClicked);
116 } 116 }
117 117
118 mFilterWidget = new FilterWidget(mSortModel); 118 mFilterWidget = new FilterWidget(mSortModel, false);
119 base->addWidget(mFilterWidget); 119 base->addWidget(mFilterWidget);
120 connect(mSortModel, &QSortFilterProxyModel::sourceModelChanged,
121 mFilterWidget, &FilterWidget::headersChanged);
120 122
121 mView = new QTableView; 123 mView = new QTableView;
122 mView->setModel(mSortModel); 124 mView->setModel(mSortModel);
123 125
124 mView->setSelectionBehavior(QAbstractItemView::SelectRows); 126 mView->setSelectionBehavior(QAbstractItemView::SelectRows);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)