#include <QHBoxLayout>
#include <QGridLayout>
-SubanalysisWindow::SubanalysisWindow(QWidget *parent)
+SubanalysisWindow::SubanalysisWindow(MussaRef m, QWidget *parent)
: QWidget(parent),
+ analysis(m),
window(0),
threshold(0),
table(0),
this, SLOT(modelUpdated(const QModelIndex&, int, int)));
connect(&model, SIGNAL(rowsRemoved(const QModelIndex&, int, int)),
this, SLOT(modelUpdated(const QModelIndex&, int, int)));
+
+ updateTitle();
}
SequenceLocationModel& SubanalysisWindow::getModel()
// if the model is empty we shouldn't be able to click ok
if (ok) ok->setEnabled(not model.empty());
}
+
+void SubanalysisWindow::updateTitle()
+{
+ std::string title("Subanalysis: ");
+ if (analysis) {
+ title += analysis->get_title();
+ }
+ setWindowTitle(title.c_str());
+}
\ No newline at end of file