summaryrefslogtreecommitdiffstats
path: root/tools/designer
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-08-11 09:36:12 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-08-11 09:36:12 +0200
commit9ccaa95e7dbae96527b3ec502d4c604a4d691aec (patch)
treebc15acb7ecb8618314cf1a9fcc7c2f27ddd89701 /tools/designer
parent20050c010038ab10c29b68833b2054b87dd59a33 (diff)
Tr-Fixes in Qt Designer.
Diffstat (limited to 'tools/designer')
-rw-r--r--tools/designer/src/components/propertyeditor/previewframe.cpp12
-rw-r--r--tools/designer/src/lib/shared/pluginmanager.cpp2
-rw-r--r--tools/designer/src/lib/shared/previewmanager.cpp2
3 files changed, 9 insertions, 7 deletions
diff --git a/tools/designer/src/components/propertyeditor/previewframe.cpp b/tools/designer/src/components/propertyeditor/previewframe.cpp
index 33073e2826..913a476088 100644
--- a/tools/designer/src/components/propertyeditor/previewframe.cpp
+++ b/tools/designer/src/components/propertyeditor/previewframe.cpp
@@ -42,15 +42,17 @@
#include "previewframe.h"
#include "previewwidget.h"
+#include <QtCore/QCoreApplication>
+#include <QtCore/QDebug>
#include <QtGui/QPainter>
#include <QtGui/QMdiArea>
#include <QtGui/QMdiSubWindow>
#include <QtGui/QPaintEvent>
-#include <qdebug.h>
QT_BEGIN_NAMESPACE
-namespace {
+namespace qdesigner_internal {
+
class PreviewMdiArea: public QMdiArea {
public:
PreviewMdiArea(QWidget *parent = 0) : QMdiArea(parent) {}
@@ -65,13 +67,11 @@ namespace {
QPainter p(paintWidget);
p.fillRect(rect(), paintWidget->palette().color(backgroundRole()).dark());
p.setPen(QPen(Qt::white));
+ //: Palette editor background
p.drawText(0, height() / 2, width(), height(), Qt::AlignHCenter,
- tr("The moose in the noose\nate the goose who was loose."));
+ QCoreApplication::translate("qdesigner_internal::PreviewMdiArea", "The moose in the noose\nate the goose who was loose."));
return true;
}
-}
-
-namespace qdesigner_internal {
PreviewFrame::PreviewFrame(QWidget *parent) :
QFrame(parent),
diff --git a/tools/designer/src/lib/shared/pluginmanager.cpp b/tools/designer/src/lib/shared/pluginmanager.cpp
index b8c1c40ed4..58d6c5c58a 100644
--- a/tools/designer/src/lib/shared/pluginmanager.cpp
+++ b/tools/designer/src/lib/shared/pluginmanager.cpp
@@ -331,7 +331,7 @@ static bool parsePropertySpecs(QXmlStreamReader &sr,
const bool noTr = notrS == QLatin1String("true") || notrS == QLatin1String("1");
QDesignerCustomWidgetSharedData::StringPropertyType v(typeStringToType(type, &typeOk), !noTr);
if (!typeOk) {
- *errorMessage = QDesignerPluginManager::tr("'%1' is not a valid string property specification!").arg(type);
+ *errorMessage = QDesignerPluginManager::tr("'%1' is not a valid string property specification.").arg(type);
return false;
}
rc->insert(name, v);
diff --git a/tools/designer/src/lib/shared/previewmanager.cpp b/tools/designer/src/lib/shared/previewmanager.cpp
index 890bfc197c..81bf6fbefa 100644
--- a/tools/designer/src/lib/shared/previewmanager.cpp
+++ b/tools/designer/src/lib/shared/previewmanager.cpp
@@ -257,7 +257,9 @@ void PreviewDeviceSkin::slotPopupMenu()
connect(directionGroup, SIGNAL(triggered(QAction*)), this, SLOT(slotDirection(QAction*)));
directionGroup->setExclusive(true);
m_directionUpAction = createCheckableActionIntData(tr("&Portrait"), DirectionUp, m_direction, directionGroup, this);
+ //: Rotate form preview counter-clockwise
m_directionLeftAction = createCheckableActionIntData(tr("Landscape (&CCW)"), DirectionLeft, m_direction, directionGroup, this);
+ //: Rotate form preview clockwise
m_directionRightAction = createCheckableActionIntData(tr("&Landscape (CW)"), DirectionRight, m_direction, directionGroup, this);
m_closeAction = new QAction(tr("&Close"), this);
connect(m_closeAction, SIGNAL(triggered()), parentWidget(), SLOT(close()));