From 69b46053c918fdc55fc7dec337e7a9b4fbadc2d4 Mon Sep 17 00:00:00 2001 From: Thomas Renne Date: Wed, 4 Mar 2020 17:38:11 +0100 Subject: [PATCH 1/2] Allow column drag and drop in the different views --- .../msidentificationlistwindow.cpp | 1 + src/gui/peptide_list_view/peptidelistwindow.cpp | 1 + src/gui/protein_list_view/proteinlistwindow.cpp | 1 + src/gui/ptm_island_list_view/ptmislandlistwindow.cpp | 2 +- src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp | 2 ++ 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/lists/ms_identification_run_list_view/msidentificationlistwindow.cpp b/src/gui/lists/ms_identification_run_list_view/msidentificationlistwindow.cpp index 839a10e6..ec5846a0 100644 --- a/src/gui/lists/ms_identification_run_list_view/msidentificationlistwindow.cpp +++ b/src/gui/lists/ms_identification_run_list_view/msidentificationlistwindow.cpp @@ -96,6 +96,7 @@ MsIdentificationListWindow::MsIdentificationListWindow(ProjectWindow *parent) ui->tableView->setModel(m_proxy_model); ui->tableView->setSortingEnabled(true); + ui->tableView->horizontalHeader()->setSectionsMovable(true); m_proxy_model->resteItemDelegates(); diff --git a/src/gui/peptide_list_view/peptidelistwindow.cpp b/src/gui/peptide_list_view/peptidelistwindow.cpp index 6e972e20..af3981a8 100644 --- a/src/gui/peptide_list_view/peptidelistwindow.cpp +++ b/src/gui/peptide_list_view/peptidelistwindow.cpp @@ -95,6 +95,7 @@ PeptideListWindow::PeptideListWindow(ProjectWindow *parent) _p_proxy_model->setDynamicSortFilter(true); ui->tableView->setModel(_p_proxy_model); ui->tableView->setSortingEnabled(true); + ui->tableView->horizontalHeader()->setSectionsMovable(true); ui->tableView->setAlternatingRowColors(true); // connect(ui->tableView, SIGNAL(clicked(const QModelIndex &)), diff --git a/src/gui/protein_list_view/proteinlistwindow.cpp b/src/gui/protein_list_view/proteinlistwindow.cpp index 627b2efb..88b1397b 100644 --- a/src/gui/protein_list_view/proteinlistwindow.cpp +++ b/src/gui/protein_list_view/proteinlistwindow.cpp @@ -95,6 +95,7 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent) _p_proxy_model->setDynamicSortFilter(true); ui->tableView->setModel(_p_proxy_model); ui->tableView->setSortingEnabled(true); + ui->tableView->horizontalHeader()->setSectionsMovable(true); ui->tableView->setAlternatingRowColors(true); QSettings settings; diff --git a/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp b/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp index 5114d8f0..53328632 100644 --- a/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp +++ b/src/gui/ptm_island_list_view/ptmislandlistwindow.cpp @@ -53,7 +53,7 @@ PtmIslandListWindow::PtmIslandListWindow(ProjectWindow *parent) ui->ptm_island_tableview->setModel(_ptm_proxy_model_p); ui->ptm_island_tableview->setSortingEnabled(true); ui->ptm_island_tableview->setAlternatingRowColors(true); - + ui->ptm_island_tableview->horizontalHeader()->setSectionsMovable(true); _statusbar_ptm_islands_label = new QLabel(""); ui->statusbar->addWidget(_statusbar_ptm_islands_label); diff --git a/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp b/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp index 5fb53774..2eb2a838 100644 --- a/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp +++ b/src/gui/ptm_peptide_list_view/ptmpeptidelistwindow.cpp @@ -54,6 +54,8 @@ PtmPeptideListWindow::PtmPeptideListWindow(PtmIslandListWindow *parent) ui->ptm_peptide_tableview->setModel(_ptm_proxy_model_p); ui->ptm_peptide_tableview->setSortingEnabled(true); ui->ptm_peptide_tableview->setAlternatingRowColors(true); + ui->ptm_peptide_tableview->horizontalHeader()->setSectionsMovable(true); + PtmSequenceDelegate *p_sequence_delegate = new PtmSequenceDelegate(_p_ptm_island_list_window, this); ui->ptm_peptide_tableview->setItemDelegateForColumn( -- GitLab From da687793f2ee4b94fe0a9e3ee8871eb60cb948e0 Mon Sep 17 00:00:00 2001 From: Thomas Renne Date: Thu, 5 Mar 2020 17:05:42 +0100 Subject: [PATCH 2/2] Add gitlab template for bug and feature request --- .gitlab/issue_templates/bug.md | 24 ++++++++++++++++++++++ .gitlab/issue_templates/feature_request.md | 15 ++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .gitlab/issue_templates/bug.md create mode 100644 .gitlab/issue_templates/feature_request.md diff --git a/.gitlab/issue_templates/bug.md b/.gitlab/issue_templates/bug.md new file mode 100644 index 00000000..ff54fd22 --- /dev/null +++ b/.gitlab/issue_templates/bug.md @@ -0,0 +1,24 @@ +# Bug report + +## Version of X!TandemPipeline +(Which version of X!TandemPipeline bug) + +## Error message +(If an error message or a warning pop-up past-it here) + +## File used +(Copy the file path used when the bug occured) + +## Steps to reproduce +(How one can reproduce the issue - **very important**) + +## What is the expected correct behavior? +(What you should see instead) + +## Optional +### Relevant logs and/or screenshots +(Paste any relevant logs - please use code blocks (```) to format console output, +logs, and code as it's very hard to read otherwise.) + +### Possible fixes +(If you can, link to the line of code that might be responsible for the problem) diff --git a/.gitlab/issue_templates/feature_request.md b/.gitlab/issue_templates/feature_request.md new file mode 100644 index 00000000..4aec9e53 --- /dev/null +++ b/.gitlab/issue_templates/feature_request.md @@ -0,0 +1,15 @@ +# New Feature request + +## Feature description +(Describe shortly the feature) + +## Feature position +(Where the new feature is located, *for a new widget describe its position according the other widget in the window*) + +## New Widget description +(*Optional, what the new widget should look like*) + +## Expected Result +(What is the expected result: description or example) + + -- GitLab