mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Fix regression from previous comit
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3810 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
59e26c8c70
commit
3556a8ad3e
@ -29,7 +29,6 @@
|
||||
#include "conductorpropertieswidget.h"
|
||||
#include "qeticons.h"
|
||||
#include "qetmessagebox.h"
|
||||
#include "qettabbar.h"
|
||||
#include "qettemplateeditor.h"
|
||||
#include "diagramfoliolist.h"
|
||||
#include "projectpropertiesdialog.h"
|
||||
@ -502,6 +501,29 @@ void ProjectView::moveDiagramDown(Diagram *diagram) {
|
||||
moveDiagramDown(findDiagram(diagram));
|
||||
}
|
||||
|
||||
/*
|
||||
* Deplace le schema diagram_view vers le haut / la gauche en position 0
|
||||
*/
|
||||
void ProjectView::moveDiagramUpTop(DiagramView *diagram_view)
|
||||
{
|
||||
if (!diagram_view) return;
|
||||
|
||||
int diagram_view_position = diagram_ids_.key(diagram_view);
|
||||
if (!diagram_view_position) {
|
||||
// le schema est le premier du projet
|
||||
return;
|
||||
}
|
||||
m_tab -> tabBar() -> moveTab(diagram_view_position, (diagrams().size(), 0));
|
||||
}
|
||||
|
||||
/*
|
||||
* Deplace le schema diagram vers le haut / la gauche en position 0
|
||||
*/
|
||||
void ProjectView::moveDiagramUpTop(Diagram *diagram)
|
||||
{
|
||||
moveDiagramUpTop(findDiagram(diagram));
|
||||
}
|
||||
|
||||
/**
|
||||
Deplace le schema diagram_view vers le haut / la gauche x10
|
||||
*/
|
||||
|
@ -73,6 +73,8 @@ class ProjectView : public QWidget {
|
||||
void moveDiagramUp(Diagram *);
|
||||
void moveDiagramDown(DiagramView *);
|
||||
void moveDiagramDown(Diagram *);
|
||||
void moveDiagramUpTop(DiagramView *);
|
||||
void moveDiagramUpTop(Diagram *);
|
||||
void moveDiagramUpx10(DiagramView *);
|
||||
void moveDiagramUpx10(Diagram *);
|
||||
void moveDiagramDownx10(DiagramView *);
|
||||
|
Loading…
x
Reference in New Issue
Block a user