summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2016-09-07 18:59:17 (GMT)
committerRalf Habacker <ralf.habacker@freenet.de>2016-09-07 19:01:38 (GMT)
commit3c57b008bc2f732ce2785d04bdf14549aa41e826 (patch)
tree09643c40ff0a4e18fe70f66f4b9c8b820e95c94b
parent11f026090b4dce75e08b2e50ae81d2a16b023c39 (diff)
Keep title setting of diagram and stereotypes window in sync with objects dock window.
-rw-r--r--umbrello/diagramswindow.cpp4
-rw-r--r--umbrello/diagramswindow.h2
-rw-r--r--umbrello/stereotypeswindow.cpp4
-rw-r--r--umbrello/stereotypeswindow.h2
-rw-r--r--umbrello/umlappprivate.h6
5 files changed, 8 insertions, 10 deletions
diff --git a/umbrello/diagramswindow.cpp b/umbrello/diagramswindow.cpp
index 04c666c..d42f51d 100644
--- a/umbrello/diagramswindow.cpp
+++ b/umbrello/diagramswindow.cpp
@@ -25,8 +25,8 @@
#include <QSortFilterProxyModel>
#include <QtDebug>
-DiagramsWindow::DiagramsWindow(QWidget *parent)
- : QDockWidget(i18n("&Diagrams"), parent)
+DiagramsWindow::DiagramsWindow(const QString &title, QWidget *parent)
+ : QDockWidget(title, parent)
{
setObjectName(QLatin1String("DiagramsWindow"));
diff --git a/umbrello/diagramswindow.h b/umbrello/diagramswindow.h
index e780203..3e33369 100644
--- a/umbrello/diagramswindow.h
+++ b/umbrello/diagramswindow.h
@@ -20,7 +20,7 @@ class DiagramsWindow : public QDockWidget
{
Q_OBJECT
public:
- explicit DiagramsWindow(QWidget *parent = 0);
+ explicit DiagramsWindow(const QString &title, QWidget *parent = 0);
~DiagramsWindow();
signals:
diff --git a/umbrello/stereotypeswindow.cpp b/umbrello/stereotypeswindow.cpp
index ccc5bba..c0446aa 100644
--- a/umbrello/stereotypeswindow.cpp
+++ b/umbrello/stereotypeswindow.cpp
@@ -25,8 +25,8 @@
#include <QSortFilterProxyModel>
#include <QtDebug>
-StereotypesWindow::StereotypesWindow(QWidget *parent)
- : QDockWidget(i18n("&Stereotypes"), parent)
+StereotypesWindow::StereotypesWindow(const QString &title, QWidget *parent)
+ : QDockWidget(title, parent)
{
setObjectName(QLatin1String("StereotypesWindow"));
diff --git a/umbrello/stereotypeswindow.h b/umbrello/stereotypeswindow.h
index 3c63caf..d6d3edb 100644
--- a/umbrello/stereotypeswindow.h
+++ b/umbrello/stereotypeswindow.h
@@ -20,7 +20,7 @@ class StereotypesWindow : public QDockWidget
{
Q_OBJECT
public:
- explicit StereotypesWindow(QWidget *parent = 0);
+ explicit StereotypesWindow(const QString &title, QWidget *parent = 0);
~StereotypesWindow();
signals:
diff --git a/umbrello/umlappprivate.h b/umbrello/umlappprivate.h
index 6275f79..d7e3045 100644
--- a/umbrello/umlappprivate.h
+++ b/umbrello/umlappprivate.h
@@ -120,11 +120,10 @@ public slots:
void createDiagramsWindow()
{
// create the tree viewer
- diagramsWindow = new DiagramsWindow(parent);
+ diagramsWindow = new DiagramsWindow(i18n("&Diagrams"), parent);
parent->addDockWidget(Qt::LeftDockWidgetArea, diagramsWindow);
viewDiagramsWindow = parent->actionCollection()->add<KToggleAction>(QLatin1String("view_diagrams_window"));
- viewDiagramsWindow->setText(i18n("Diagrams"));
connect(viewDiagramsWindow, SIGNAL(triggered(bool)), diagramsWindow, SLOT(setVisible(bool)));
}
@@ -141,11 +140,10 @@ public slots:
void createStereotypesWindow()
{
// create the tree viewer
- stereotypesWindow = new StereotypesWindow(parent);
+ stereotypesWindow = new StereotypesWindow(i18n("&Stereotypes"), parent);
parent->addDockWidget(Qt::LeftDockWidgetArea, stereotypesWindow);
viewStereotypesWindow = parent->actionCollection()->add<KToggleAction>(QLatin1String("view_stereotypes_window"));
- viewStereotypesWindow->setText(i18n("Stereotypes"));
connect(viewStereotypesWindow, SIGNAL(triggered(bool)), stereotypesWindow, SLOT(setVisible(bool)));
}