forked from qt-creator/qt-creator
Templates: Use C++17 compact namespaces in the plugin template
Change-Id: If4c8540e4d1d9b42efcd1c039c28f85bd0fb98fd Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -13,8 +13,7 @@
|
|||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
namespace %{PluginName} {
|
namespace %{PluginName}::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
%{CN}::%{CN}()
|
%{CN}::%{CN}()
|
||||||
{
|
{
|
||||||
@@ -75,5 +74,4 @@ void %{CN}::triggerAction()
|
|||||||
tr("This is an action from %{PluginName}."));
|
tr("This is an action from %{PluginName}."));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace %{PluginName}::Internal
|
||||||
} // namespace %{PluginName}
|
|
||||||
|
@@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
|
|
||||||
namespace %{PluginName} {
|
namespace %{PluginName}::Internal {
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class %{CN} : public ExtensionSystem::IPlugin
|
class %{CN} : public ExtensionSystem::IPlugin
|
||||||
{
|
{
|
||||||
@@ -29,8 +28,7 @@ private:
|
|||||||
void triggerAction();
|
void triggerAction();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace %{PluginName}::Internal
|
||||||
} // namespace %{PluginName}
|
|
||||||
|
|
||||||
@if ! '%{Cpp:PragmaOnce}'
|
@if ! '%{Cpp:PragmaOnce}'
|
||||||
#endif // %{GUARD}
|
#endif // %{GUARD}
|
||||||
|
Reference in New Issue
Block a user