Skip to content
Snippets Groups Projects
Commit a5357f06 authored by Olivier Langella's avatar Olivier Langella
Browse files

sho hide ok

parent 7c3309b2
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,39 @@
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayoutcb">
<item>
<widget class="QLabel" name="labelhide">
<property name="text">
<string>hide :</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="hideNotValidCheckBox">
<property name="text">
<string>not valid</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="hideNotCheckedCheckBox">
<property name="text">
<string>not checked</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="hideNotGroupedCheckBox">
<property name="text">
<string>not grouped</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTableView" name="tableView"/>
</item>
......@@ -43,5 +76,60 @@
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
<connections>
<connection>
<sender>hideNotValidCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>PeptideView</receiver>
<slot>doNotValidHide(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>245</x>
<y>53</y>
</hint>
<hint type="destinationlabel">
<x>839</x>
<y>171</y>
</hint>
</hints>
</connection>
<connection>
<sender>hideNotCheckedCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>PeptideView</receiver>
<slot>doNotCheckedHide(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>482</x>
<y>47</y>
</hint>
<hint type="destinationlabel">
<x>920</x>
<y>269</y>
</hint>
</hints>
</connection>
<connection>
<sender>hideNotGroupedCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>PeptideView</receiver>
<slot>doNotGroupedHide(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>688</x>
<y>57</y>
</hint>
<hint type="destinationlabel">
<x>1079</x>
<y>360</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>doNotValidHide(bool)</slot>
<slot>doNotCheckedHide(bool)</slot>
<slot>doNotGroupedHide(bool)</slot>
</slots>
</ui>
......@@ -46,6 +46,24 @@ PeptideListWindow::PeptideListWindow(ProjectWindow *parent):
//connect(ui->tableView, SIGNAL(clicked(const QModelIndex &)), _p_proxy_model, SLOT(onTableClicked(const QModelIndex &)));
QSettings settings;
bool hide = settings.value("peptideview/hidenotvalid", "true").toBool();
if (hide) {
ui->hideNotValidCheckBox->setCheckState(Qt::Checked);
}
_p_proxy_model->hideNotValid(hide);
hide = settings.value("peptideview/hidenotchecked", "false").toBool();
if (hide) {
ui->hideNotCheckedCheckBox->setCheckState(Qt::Checked);
}
_p_proxy_model->hideNotChecked(hide);
hide = settings.value("peptideview/hidenotgrouped", "false").toBool();
if (hide) {
ui->hideNotGroupedCheckBox->setCheckState(Qt::Checked);
}
_p_proxy_model->hideNotGrouped(hide);
#if QT_VERSION >= 0x050000
// Qt5 code
......
......@@ -60,7 +60,7 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent):
if (hide) {
ui->hideNotGroupedCheckBox->setCheckState(Qt::Checked);
}
_p_proxy_model->hideNotGrouped(settings.value("proteinview/hidenotgrouped", "false").toBool());
_p_proxy_model->hideNotGrouped(hide);
#if QT_VERSION >= 0x050000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment