Silence a couple of warnings

This commit is contained in:
Martin Kleusberg
2019-04-29 19:14:10 +02:00
parent 15c23bb0d3
commit f821fbb1a8
22 changed files with 108 additions and 110 deletions

View File

@@ -22,14 +22,14 @@ FilterTableHeader::FilterTableHeader(QTableView* parent) :
setContextMenuPolicy(Qt::CustomContextMenu);
}
void FilterTableHeader::generateFilters(int number, bool showFirst)
void FilterTableHeader::generateFilters(size_t number, bool showFirst)
{
// Delete all the current filter widgets
qDeleteAll(filterWidgets);
filterWidgets.clear();
// And generate a bunch of new ones
for(int i=0;i < number; ++i)
for(size_t i=0;i < number; ++i)
{
FilterLineEdit* l = new FilterLineEdit(this, &filterWidgets, i);
if(!showFirst && i == 0) // This hides the first input widget which belongs to the hidden rowid column