forked from qt-creator/qt-creator
ImageViewer: Convert to Tr::tr
Change-Id: Id12dc265ed60be942ec68ac5a80f57144c2d086f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -25,9 +25,10 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "imageviewerplugin.h"
|
||||
|
||||
#include "imageviewer.h"
|
||||
#include "imageviewerfactory.h"
|
||||
#include "imageviewerconstants.h"
|
||||
#include "imageviewertr.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
@@ -42,8 +43,7 @@
|
||||
using namespace Core;
|
||||
using namespace Utils;
|
||||
|
||||
namespace ImageViewer {
|
||||
namespace Internal {
|
||||
namespace ImageViewer::Internal {
|
||||
|
||||
class ImageViewerAction final : public QAction
|
||||
{
|
||||
@@ -67,8 +67,6 @@ public:
|
||||
|
||||
class ImageViewerPluginPrivate final
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Imageviewer::Internal::ImageViewerPlugin)
|
||||
|
||||
public:
|
||||
ImageViewerFactory imageViewerFactory;
|
||||
|
||||
@@ -90,46 +88,46 @@ public:
|
||||
ImageViewerAction fitToScreenAction {
|
||||
Constants::ACTION_FIT_TO_SCREEN,
|
||||
&ImageViewer::fitToScreen,
|
||||
tr("Fit to Screen"),
|
||||
tr("Ctrl+=")
|
||||
Tr::tr("Fit to Screen"),
|
||||
Tr::tr("Ctrl+=")
|
||||
};
|
||||
|
||||
ImageViewerAction switchBackgroundAction {
|
||||
Constants::ACTION_BACKGROUND,
|
||||
&ImageViewer::switchViewBackground,
|
||||
tr("Switch Background"),
|
||||
tr("Ctrl+[")
|
||||
Tr::tr("Switch Background"),
|
||||
Tr::tr("Ctrl+[")
|
||||
};
|
||||
|
||||
ImageViewerAction switchOutlineAction {
|
||||
Constants::ACTION_OUTLINE,
|
||||
&ImageViewer::switchViewOutline,
|
||||
tr("Switch Outline"),
|
||||
tr("Ctrl+]")
|
||||
Tr::tr("Switch Outline"),
|
||||
Tr::tr("Ctrl+]")
|
||||
};
|
||||
|
||||
ImageViewerAction toggleAnimationAction {
|
||||
Constants::ACTION_TOGGLE_ANIMATION,
|
||||
&ImageViewer::togglePlay,
|
||||
tr("Toggle Animation")
|
||||
Tr::tr("Toggle Animation")
|
||||
};
|
||||
|
||||
ImageViewerAction exportImageAction {
|
||||
Constants::ACTION_EXPORT_IMAGE,
|
||||
&ImageViewer::exportImage,
|
||||
tr("Export Image")
|
||||
Tr::tr("Export Image")
|
||||
};
|
||||
|
||||
ImageViewerAction exportMulitImagesAction {
|
||||
Constants::ACTION_EXPORT_MULTI_IMAGES,
|
||||
&ImageViewer::exportMultiImages,
|
||||
tr("Export Multiple Images"),
|
||||
Tr::tr("Export Multiple Images"),
|
||||
};
|
||||
|
||||
ImageViewerAction copyDataUrlAction {
|
||||
Constants::ACTION_COPY_DATA_URL,
|
||||
&ImageViewer::copyDataUrl,
|
||||
tr("Copy as Data URL"),
|
||||
Tr::tr("Copy as Data URL"),
|
||||
};
|
||||
};
|
||||
|
||||
@@ -148,5 +146,4 @@ bool ImageViewerPlugin::initialize(const QStringList &arguments, QString *errorM
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ImageViewer
|
||||
} // ImageViewer::Internal
|
||||
|
||||
Reference in New Issue
Block a user