if (daysCheckBox->checkState() == Qt::Checked) {
QDateTime stamp = QDateTime::currentDateTime().addDays(-daysSpinBox->value());
QString since = stamp.toString(Qt::ISODate);
- conditions.append("Job.Starttime>'" + since + "'");
+ conditions.append("Job.Starttime > '" + since + "'");
+ }
+ if (filterCopyCheckBox->checkState() == Qt::Checked) {
+ conditions.append("Job.Type != 'c'" );
+ }
+ if (filterMigrationCheckBox->checkState() == Qt::Checked) {
+ conditions.append("Job.Type != 'g'" );
}
bool first = true;
foreach (QString condition, conditions) {
QSettings settings(m_console->m_dir->name(), "bat");
settings.beginGroup(m_groupText);
settings.setValue(m_splitText, m_splitter->saveState());
+ settings.setValue("FilterCopyCheckState", filterCopyCheckBox->checkState());
+ settings.setValue("FilterMigrationCheckState", filterMigrationCheckBox->checkState());
settings.endGroup();
}
QSettings settings(m_console->m_dir->name(), "bat");
settings.beginGroup(m_groupText);
m_splitter->restoreState(settings.value(m_splitText).toByteArray());
+ filterCopyCheckBox->setCheckState((Qt::CheckState)settings.value("FilterCopyCheckState").toInt());
+ filterMigrationCheckBox->setCheckState((Qt::CheckState)settings.value("FilterMigrationCheckState").toInt());
settings.endGroup();
}
<rect>
<x>20</x>
<y>220</y>
- <width>565</width>
- <height>146</height>
+ <width>573</width>
+ <height>149</height>
</rect>
</property>
<property name="maximumSize" >
</layout>
</item>
<item>
- <spacer>
- <property name="orientation" >
- <enum>Qt::Vertical</enum>
+ <widget class="QCheckBox" name="filterCopyCheckBox" >
+ <property name="text" >
+ <string>Filter Copy Jobs</string>
</property>
- <property name="sizeHint" >
- <size>
- <width>20</width>
- <height>40</height>
- </size>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="filterMigrationCheckBox" >
+ <property name="text" >
+ <string>Filter Migration Jobs</string>
</property>
- </spacer>
+ </widget>
</item>
</layout>
</item>