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

refresh layout signal ok

parent 49bcce5d
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Xml_EXECUTABLE_COMPILE_FLAGS} ${Qt5 ...@@ -29,8 +29,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Xml_EXECUTABLE_COMPILE_FLAGS} ${Qt5
#sudo apt-get install libpappsomspp-dev #sudo apt-get install libpappsomspp-dev
#FIND_PACKAGE( Pappsomspp REQUIRED ) #FIND_PACKAGE( Pappsomspp REQUIRED )
# SET (PAPPSOMSPP_DIR "/home/olivier/eclipse/git/pappsomspp") SET (PAPPSOMSPP_DIR "/home/olivier/eclipse/git/pappsomspp")
SET (PAPPSOMSPP_DIR "/home/langella/developpement/git/pappsomspp") # SET (PAPPSOMSPP_DIR "/home/langella/developpement/git/pappsomspp")
SET (PAPPSOMSPP_INCLUDE_DIR "${PAPPSOMSPP_DIR}/src") SET (PAPPSOMSPP_INCLUDE_DIR "${PAPPSOMSPP_DIR}/src")
SET (PAPPSOMSPP_QT4_LIBRARY "${PAPPSOMSPP_DIR}/cbuild/src/libpappsomspp-qt4.so") SET (PAPPSOMSPP_QT4_LIBRARY "${PAPPSOMSPP_DIR}/cbuild/src/libpappsomspp-qt4.so")
......
...@@ -80,10 +80,15 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent): ...@@ -80,10 +80,15 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent):
connect( this, SIGNAL( focusReceived(bool) ),this, SLOT(doFocusReceived(bool)) ); connect( this, SIGNAL( focusReceived(bool) ),this, SLOT(doFocusReceived(bool)) );
connect(ui->centralwidget, SIGNAL(customContextMenuRequested(const QPoint &)), connect(ui->centralwidget, SIGNAL(customContextMenuRequested(const QPoint &)),
this, SLOT(showContextMenu(const QPoint &))); this, SLOT(showContextMenu(const QPoint &)));
connect(_p_proxy_model, SIGNAL(layoutChanged()),
this, SLOT(doProxyLayoutChanged()));
//connect(_protein_table_model_p, SIGNAL(layoutChanged()), this, SLOT(updateStatusBar())); //connect(_protein_table_model_p, SIGNAL(layoutChanged()), this, SLOT(updateStatusBar()));
#endif #endif
} }
void ProteinListWindow::doProxyLayoutChanged() {
updateStatusBar();
}
void ProteinListWindow::showEvalueColumn(bool show) { void ProteinListWindow::showEvalueColumn(bool show) {
_display_evalue = show; _display_evalue = show;
...@@ -173,7 +178,6 @@ void ProteinListWindow::doIdentificationGroupGrouped(IdentificationGroup * p_ide ...@@ -173,7 +178,6 @@ void ProteinListWindow::doIdentificationGroupGrouped(IdentificationGroup * p_ide
qDebug() << "ProteinListWindow::doIdentificationGroupGrouped begin"; qDebug() << "ProteinListWindow::doIdentificationGroupGrouped begin";
if (_p_identification_group == p_identification_group) { if (_p_identification_group == p_identification_group) {
_p_proxy_model->setSourceModel(_protein_table_model_p); _p_proxy_model->setSourceModel(_protein_table_model_p);
updateStatusBar();
} }
qDebug() << "ProteinListWindow::doIdentificationGroupGrouped end"; qDebug() << "ProteinListWindow::doIdentificationGroupGrouped end";
} }
...@@ -183,7 +187,6 @@ void ProteinListWindow::setIdentificationGroup(IdentificationGroup * p_identific ...@@ -183,7 +187,6 @@ void ProteinListWindow::setIdentificationGroup(IdentificationGroup * p_identific
_p_identification_group = p_identification_group; _p_identification_group = p_identification_group;
_protein_table_model_p->setIdentificationGroup(p_identification_group); _protein_table_model_p->setIdentificationGroup(p_identification_group);
_p_proxy_model->setSourceModel(_protein_table_model_p); _p_proxy_model->setSourceModel(_protein_table_model_p);
updateStatusBar();
} }
} }
......
...@@ -63,6 +63,7 @@ protected slots: ...@@ -63,6 +63,7 @@ protected slots:
void doNotValidHide(bool hide); void doNotValidHide(bool hide);
void doNotCheckedHide(bool hide); void doNotCheckedHide(bool hide);
void doNotGroupedHide(bool hide); void doNotGroupedHide(bool hide);
void doProxyLayoutChanged();
void showContextMenu(const QPoint &); void showContextMenu(const QPoint &);
void showEvalueColumn(bool show); void showEvalueColumn(bool show);
void showAccessionColumn(bool show); void showAccessionColumn(bool show);
......
...@@ -104,6 +104,7 @@ void ProteinTableModel::refresh() { ...@@ -104,6 +104,7 @@ void ProteinTableModel::refresh() {
QModelIndex topLeft = createIndex(0,0); QModelIndex topLeft = createIndex(0,0);
QModelIndex bottomRight = createIndex(rowCount(),columnCount()); QModelIndex bottomRight = createIndex(rowCount(),columnCount());
emit dataChanged(topLeft, bottomRight); emit dataChanged(topLeft, bottomRight);
emit layoutChanged();
qDebug() << "ProteinTableModel::refresh end "; qDebug() << "ProteinTableModel::refresh end ";
} }
...@@ -126,7 +127,7 @@ void ProteinTableModel::onProteinSearchEdit(QString protein_search_string) { ...@@ -126,7 +127,7 @@ void ProteinTableModel::onProteinSearchEdit(QString protein_search_string) {
QModelIndex topLeft = createIndex(0,0); QModelIndex topLeft = createIndex(0,0);
QModelIndex bottomRight = createIndex(rowCount(),columnCount()); QModelIndex bottomRight = createIndex(rowCount(),columnCount());
emit dataChanged(topLeft, bottomRight); emit dataChanged(topLeft, bottomRight);
_p_protein_list_window->updateStatusBar(); emit layoutChanged();
} }
void ProteinTableModel::setIdentificationGroup(IdentificationGroup * p_identification_group) { void ProteinTableModel::setIdentificationGroup(IdentificationGroup * p_identification_group) {
...@@ -137,6 +138,7 @@ void ProteinTableModel::setIdentificationGroup(IdentificationGroup * p_identific ...@@ -137,6 +138,7 @@ void ProteinTableModel::setIdentificationGroup(IdentificationGroup * p_identific
QModelIndex bottomRight = createIndex(rowCount(),columnCount()); QModelIndex bottomRight = createIndex(rowCount(),columnCount());
emit dataChanged(topLeft, topLeft); emit dataChanged(topLeft, topLeft);
emit headerDataChanged(Qt::Horizontal, 0,3); emit headerDataChanged(Qt::Horizontal, 0,3);
emit layoutChanged();
} }
int ProteinTableModel::rowCount(const QModelIndex &parent ) const { int ProteinTableModel::rowCount(const QModelIndex &parent ) const {
......
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