mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Project view : prepend the positon number or the folio label (acording the configuration of qet) in the title of each diagram view tabs.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4918 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "qeticons.h"
|
||||
#include "qetapp.h"
|
||||
#include "qetdiagrameditor.h"
|
||||
#include "projectview.h"
|
||||
|
||||
/**
|
||||
Constructor
|
||||
@@ -55,12 +56,19 @@ void QETMainWindow::initCommonActions() {
|
||||
|
||||
configure_action_ = new QAction(QET::Icons::Configure, tr("&Configurer QElectroTech"), this);
|
||||
configure_action_ -> setStatusTip(tr("Permet de régler différents paramètres de QElectroTech", "status bar tip"));
|
||||
connect(configure_action_, &QAction::triggered, [qet_app]() {
|
||||
connect(configure_action_, &QAction::triggered, [qet_app]()
|
||||
{
|
||||
qet_app->configureQET();
|
||||
//TODO we use reloadOldElementPanel only to keep up to date the string of the folio in the old element panel.
|
||||
//then, if user change the option "Use labels of folio instead of their ID" the string of folio in the old element panel is up to date
|
||||
foreach (QETDiagramEditor *qde, qet_app->diagramEditors())
|
||||
//TODO we use reloadOldElementPanel only to keep up to date the string of the folio in the old element panel.
|
||||
//then, if user change the option "Use labels of folio instead of their ID" the string of folio in the old element panel is up to date
|
||||
for (QETDiagramEditor *qde : qet_app->diagramEditors())
|
||||
{
|
||||
qde->reloadOldElementPanel();
|
||||
for (ProjectView *pv : qde->openedProjects())
|
||||
{
|
||||
pv->updateAllTabsTitle();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
fullscreen_action_ = new QAction(this);
|
||||
|
||||
Reference in New Issue
Block a user