r20492 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Oct 24 13:21:01 UTC 2015


Author: jghali
Date: Sat Oct 24 13:21:01 2015
New Revision: 20492

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20492
Log:
#13457: Marks Manager non-switching translations

Modified:
    trunk/Scribus/scribus/ui/marksmanager.cpp
    trunk/Scribus/scribus/ui/marksmanager.h
    trunk/Scribus/scribus/ui/marksmanager.ui

Modified: trunk/Scribus/scribus/ui/marksmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20492&path=/trunk/Scribus/scribus/ui/marksmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/marksmanager.cpp	(original)
+++ trunk/Scribus/scribus/ui/marksmanager.cpp	Sat Oct 24 13:21:01 2015
@@ -132,13 +132,22 @@
 	connect(m_Doc->scMW(), SIGNAL(UpdateRequest(int)), this , SLOT(handleUpdateRequest(int)));
 }
 
+void MarksManager::changeEvent(QEvent *e)
+{
+	if (e->type() == QEvent::LanguageChange)
+	{
+		languageChange();
+		return;
+	}
+	ScrPaletteBase::changeEvent(e);
+}
+
 void MarksManager::languageChange()
 {
-	setWindowTitle(tr("Marks Manager"));
+	retranslateUi(this);
+
 	listView->setToolTip(tr("Double click to find mark in text"));
-	UpdateButton->setText(tr("Update All Marks"));
 	UpdateButton->setToolTip(tr("Update all reference texts for all marks"));
-	EditButton->setText(tr("Edit"));
 	EditButton->setToolTip(tr("Edit selected mark"));
 	if (m_Doc != NULL)
 		updateListView();

Modified: trunk/Scribus/scribus/ui/marksmanager.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20492&path=/trunk/Scribus/scribus/ui/marksmanager.h
==============================================================================
--- trunk/Scribus/scribus/ui/marksmanager.h	(original)
+++ trunk/Scribus/scribus/ui/marksmanager.h	Sat Oct 24 13:21:01 2015
@@ -16,6 +16,8 @@
 public:
 	explicit MarksManager(QWidget *parent = 0, const char *name = "MarksManager");
 	~MarksManager();
+
+	virtual void changeEvent(QEvent *e);
 	void updateListView();
 
 private:

Modified: trunk/Scribus/scribus/ui/marksmanager.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20492&path=/trunk/Scribus/scribus/ui/marksmanager.ui
==============================================================================
--- trunk/Scribus/scribus/ui/marksmanager.ui	(original)
+++ trunk/Scribus/scribus/ui/marksmanager.ui	Sat Oct 24 13:21:01 2015
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>253</width>
-    <height>249</height>
+    <width>297</width>
+    <height>271</height>
    </rect>
   </property>
   <property name="sizePolicy">
@@ -23,7 +23,7 @@
    </size>
   </property>
   <property name="windowTitle">
-   <string>Dialog</string>
+   <string>Marks Manager</string>
   </property>
   <property name="modal">
    <bool>false</bool>




More information about the scribus-commit mailing list