diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-08-11 07:36:12 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2009-08-11 07:36:12 (GMT) |
commit | 9ccaa95e7dbae96527b3ec502d4c604a4d691aec (patch) | |
tree | bc15acb7ecb8618314cf1a9fcc7c2f27ddd89701 /tools/designer/src/components | |
parent | 20050c010038ab10c29b68833b2054b87dd59a33 (diff) | |
download | Qt-9ccaa95e7dbae96527b3ec502d4c604a4d691aec.zip Qt-9ccaa95e7dbae96527b3ec502d4c604a4d691aec.tar.gz Qt-9ccaa95e7dbae96527b3ec502d4c604a4d691aec.tar.bz2 |
Tr-Fixes in Qt Designer.
Diffstat (limited to 'tools/designer/src/components')
-rw-r--r-- | tools/designer/src/components/propertyeditor/previewframe.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/designer/src/components/propertyeditor/previewframe.cpp b/tools/designer/src/components/propertyeditor/previewframe.cpp index 33073e2..913a476 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), |