summaryrefslogtreecommitdiff
path: root/src/plugins/scxmleditor
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2017-02-22 15:09:35 +0100
committerTim Jenssen <tim.jenssen@qt.io>2017-02-22 16:25:09 +0000
commit2631ffabd5a7955a40b9779b0d52af64e3bd3a60 (patch)
treea030ea11d0d561b720d0e0d352b4a0fc728a6758 /src/plugins/scxmleditor
parent005ca71cac65b7c766d814b97b830e2af1c7aa53 (diff)
downloadqt-creator-2631ffabd5a7955a40b9779b0d52af64e3bd3a60.tar.gz
Remove spaces in initializer lists
Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor')
-rw-r--r--src/plugins/scxmleditor/plugin_interface/actionhandler.cpp44
-rw-r--r--src/plugins/scxmleditor/plugin_interface/scxmltypes.h112
2 files changed, 78 insertions, 78 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp b/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp
index c12e238a59..80d728a433 100644
--- a/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp
+++ b/src/plugins/scxmleditor/plugin_interface/actionhandler.cpp
@@ -42,32 +42,32 @@ ActionHandler::ActionHandler(QObject *parent)
const char *keyseq;
bool checkable;
} actionInfos[] = {
- { Utils::Icons::ZOOMIN_TOOLBAR, tr("Zoom In"), tr("Zoom In (Ctrl + + / Ctrl + Wheel)"), "Ctrl++", false },
- { Utils::Icons::ZOOMOUT_TOOLBAR, tr("Zoom Out"), tr("Zoom Out (Ctrl + - / Ctrl + Wheel)"), "Ctrl+-", false },
- { Utils::Icons::FITTOVIEW_TOOLBAR, tr("Fit to View"), tr("Fit to View (F11)"), "F11", false },
- { Utils::Icons::PAN_TOOLBAR, tr("Panning"), tr("Panning (Shift)"), "Shift", true },
+ {Utils::Icons::ZOOMIN_TOOLBAR, tr("Zoom In"), tr("Zoom In (Ctrl + + / Ctrl + Wheel)"), "Ctrl++", false},
+ {Utils::Icons::ZOOMOUT_TOOLBAR, tr("Zoom Out"), tr("Zoom Out (Ctrl + - / Ctrl + Wheel)"), "Ctrl+-", false},
+ {Utils::Icons::FITTOVIEW_TOOLBAR, tr("Fit to View"), tr("Fit to View (F11)"), "F11", false},
+ {Utils::Icons::PAN_TOOLBAR, tr("Panning"), tr("Panning (Shift)"), "Shift", true},
- { Utils::Icons::ZOOM_TOOLBAR, tr("Magnifier"), tr("Magnifier Tool (Alt)"), "Alt", true },
- { Utils::Icon(":/scxmleditor/images/navigator.png"), tr("Navigator"), tr("Navigator (Ctrl+E)"), "Ctrl+E", true },
+ {Utils::Icons::ZOOM_TOOLBAR, tr("Magnifier"), tr("Magnifier Tool (Alt)"), "Alt", true},
+ {Utils::Icon(":/scxmleditor/images/navigator.png"), tr("Navigator"), tr("Navigator (Ctrl+E)"), "Ctrl+E", true},
- { Utils::Icons::COPY_TOOLBAR, tr("Copy"), tr("Copy (Ctrl + C)"), "Ctrl+C", false },
- { Utils::Icons::CUT_TOOLBAR, tr("Cut"), tr("Cut (Ctrl + X)"), "Ctrl+X", false },
- { Utils::Icons::PASTE_TOOLBAR, tr("Paste"), tr("Paste (Ctrl + V)"), "Ctrl+V", false },
- { Utils::Icons::SNAPSHOT_TOOLBAR, tr("Screenshot"), tr("Screenshot (Ctrl + Shift + C)"), "Ctrl+Shift+C", false },
- { Utils::Icon({{":/scxmleditor/images/icon-export-canvas.png", Utils::Theme::IconsBaseColor}}), tr("Export to Image"), tr("Export to Image"), "Ctrl+Shift+E", false },
- { Utils::Icon({{":/utils/images/namespace.png", Utils::Theme::IconsBaseColor}}), tr("Toggle Full Namespace"), tr("Toggle Full Namespace"), "Ctrl+Shift+N", true },
+ {Utils::Icons::COPY_TOOLBAR, tr("Copy"), tr("Copy (Ctrl + C)"), "Ctrl+C", false},
+ {Utils::Icons::CUT_TOOLBAR, tr("Cut"), tr("Cut (Ctrl + X)"), "Ctrl+X", false},
+ {Utils::Icons::PASTE_TOOLBAR, tr("Paste"), tr("Paste (Ctrl + V)"), "Ctrl+V", false},
+ {Utils::Icons::SNAPSHOT_TOOLBAR, tr("Screenshot"), tr("Screenshot (Ctrl + Shift + C)"), "Ctrl+Shift+C", false},
+ {Utils::Icon({{":/scxmleditor/images/icon-export-canvas.png", Utils::Theme::IconsBaseColor}}), tr("Export to Image"), tr("Export to Image"), "Ctrl+Shift+E", false},
+ {Utils::Icon({{":/utils/images/namespace.png", Utils::Theme::IconsBaseColor}}), tr("Toggle Full Namespace"), tr("Toggle Full Namespace"), "Ctrl+Shift+N", true},
- { Utils::Icon({{":/scxmleditor/images/align_left.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Left"), tr("Align Left (Ctrl+L,1)"), "Ctrl+L,1", false },
- { Utils::Icon({{":/scxmleditor/images/align_right.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Right"), tr("Align Right (Ctrl+L,2)"), "Ctrl+L,2", false },
- { Utils::Icon({{":/scxmleditor/images/align_top.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Top"), tr("Align Top (Ctrl+L,3)"), "Ctrl+L,3", false },
- { Utils::Icon({{":/scxmleditor/images/align_bottom.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Bottom"), tr("Align Bottom (Ctrl+L,4)"), "Ctrl+L,4", false },
- { Utils::Icon({{":/scxmleditor/images/align_horizontal.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Horizontal"), tr("Align Horizontal (Ctrl+L,5)"), "Ctrl+L,5", false },
- { Utils::Icon({{":/scxmleditor/images/align_vertical.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Vertical"), tr("Align Vertical (Ctrl+L,6)"), "Ctrl+L,6", false },
- { Utils::Icon({{":/scxmleditor/images/adjust_width.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Adjust Width"), tr("Adjust Width (Ctrl+L,7)"), "Ctrl+L,7", false },
- { Utils::Icon({{":/scxmleditor/images/adjust_height.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Adjust Height"), tr("Adjust Height (Ctrl+L,8)"), "Ctrl+L,8", false },
- { Utils::Icon({{":/scxmleditor/images/adjust_size.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Adjust Size"), tr("Adjust Size (Ctrl+L,9)"), "Ctrl+L,9", false },
+ {Utils::Icon({{":/scxmleditor/images/align_left.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Left"), tr("Align Left (Ctrl+L,1)"), "Ctrl+L,1", false},
+ {Utils::Icon({{":/scxmleditor/images/align_right.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Right"), tr("Align Right (Ctrl+L,2)"), "Ctrl+L,2", false},
+ {Utils::Icon({{":/scxmleditor/images/align_top.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Top"), tr("Align Top (Ctrl+L,3)"), "Ctrl+L,3", false},
+ {Utils::Icon({{":/scxmleditor/images/align_bottom.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Bottom"), tr("Align Bottom (Ctrl+L,4)"), "Ctrl+L,4", false},
+ {Utils::Icon({{":/scxmleditor/images/align_horizontal.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Horizontal"), tr("Align Horizontal (Ctrl+L,5)"), "Ctrl+L,5", false},
+ {Utils::Icon({{":/scxmleditor/images/align_vertical.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Align Vertical"), tr("Align Vertical (Ctrl+L,6)"), "Ctrl+L,6", false},
+ {Utils::Icon({{":/scxmleditor/images/adjust_width.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Adjust Width"), tr("Adjust Width (Ctrl+L,7)"), "Ctrl+L,7", false},
+ {Utils::Icon({{":/scxmleditor/images/adjust_height.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Adjust Height"), tr("Adjust Height (Ctrl+L,8)"), "Ctrl+L,8", false},
+ {Utils::Icon({{":/scxmleditor/images/adjust_size.png", Utils::Theme::PanelTextColorMid}}, Utils::Icon::Tint), tr("Adjust Size"), tr("Adjust Size (Ctrl+L,9)"), "Ctrl+L,9", false},
- { Utils::Icon(":/scxmleditor/images/statistics.png"), tr("Show Statistics..."), tr("Show Statistics"), "", false }
+ {Utils::Icon(":/scxmleditor/images/statistics.png"), tr("Show Statistics..."), tr("Show Statistics"), "", false}
};
// Init actions
diff --git a/src/plugins/scxmleditor/plugin_interface/scxmltypes.h b/src/plugins/scxmleditor/plugin_interface/scxmltypes.h
index 5b7e4738a0..297181e362 100644
--- a/src/plugins/scxmleditor/plugin_interface/scxmltypes.h
+++ b/src/plugins/scxmleditor/plugin_interface/scxmltypes.h
@@ -87,119 +87,119 @@ struct scxmltag_type_t
// Define tag-attributes
const scxmltag_attribute_t scxml_scxml_attributes[] = {
- { "initial", nullptr, false, false, QVariant::String },
- { "name", nullptr, false, true, QVariant::String },
- { "xmlns", "http://www.w3.org/2005/07/scxml", true, false, QVariant::String },
- { "version", "1.0", true, false, QVariant::String },
- { "datamodel", nullptr, false, true, QVariant::String },
- { "binding", "early;late", false, true, QVariant::StringList }
+ {"initial", nullptr, false, false, QVariant::String},
+ {"name", nullptr, false, true, QVariant::String},
+ {"xmlns", "http://www.w3.org/2005/07/scxml", true, false, QVariant::String},
+ {"version", "1.0", true, false, QVariant::String},
+ {"datamodel", nullptr, false, true, QVariant::String},
+ {"binding", "early;late", false, true, QVariant::StringList}
};
const scxmltag_attribute_t scxml_state_attributes[] = {
- { "id", nullptr, false, true, QVariant::String },
- { "initial", nullptr, false, false, QVariant::String }
+ {"id", nullptr, false, true, QVariant::String},
+ {"initial", nullptr, false, false, QVariant::String}
};
const scxmltag_attribute_t scxml_parallel_attributes[] = {
- { "id", nullptr, false, true, QVariant::String }
+ {"id", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_transition_attributes[] = {
- { "event", nullptr, false, true, QVariant::String },
- { "cond", nullptr, false, true, QVariant::String },
- { "target", nullptr, false, true, QVariant::String },
- { "type", "internal;external", false, true, QVariant::StringList }
+ {"event", nullptr, false, true, QVariant::String},
+ {"cond", nullptr, false, true, QVariant::String},
+ {"target", nullptr, false, true, QVariant::String},
+ {"type", "internal;external", false, true, QVariant::StringList}
};
const scxmltag_attribute_t scxml_initialtransition_attributes[] = {
- { "target", nullptr, false, false, QVariant::String }
+ {"target", nullptr, false, false, QVariant::String}
};
const scxmltag_attribute_t scxml_final_attributes[] = {
- { "id", nullptr, false, true, QVariant::String }
+ {"id", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_history_attributes[] = {
- { "id", nullptr, false, true, QVariant::String },
- { "type", "shallow;deep", false, true, QVariant::StringList }
+ {"id", nullptr, false, true, QVariant::String},
+ {"type", "shallow;deep", false, true, QVariant::StringList}
};
const scxmltag_attribute_t scxml_raise_attributes[] = {
- { "event", nullptr, true, true, QVariant::String }
+ {"event", nullptr, true, true, QVariant::String}
};
const scxmltag_attribute_t scxml_if_attributes[] = {
- { "cond", nullptr, true, true, QVariant::String },
+ {"cond", nullptr, true, true, QVariant::String},
};
const scxmltag_attribute_t scxml_elseif_attributes[] = {
- { "cond", nullptr, true, true, QVariant::String }
+ {"cond", nullptr, true, true, QVariant::String}
};
const scxmltag_attribute_t scxml_foreach_attributes[] = {
- { "array", nullptr, true, true, QVariant::String },
- { "item", nullptr, true, true, QVariant::String },
- { "index", nullptr, false, true, QVariant::String }
+ {"array", nullptr, true, true, QVariant::String},
+ {"item", nullptr, true, true, QVariant::String},
+ {"index", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_log_attributes[] = {
- { "label", "", false, true, QVariant::String },
- { "expr", nullptr, false, true, QVariant::String }
+ {"label", "", false, true, QVariant::String},
+ {"expr", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_data_attributes[] = {
- { "id", nullptr, true, true, QVariant::String },
- { "src", nullptr, false, true, QVariant::String },
- { "expr", nullptr, false, true, QVariant::String }
+ {"id", nullptr, true, true, QVariant::String},
+ {"src", nullptr, false, true, QVariant::String},
+ {"expr", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_assign_attributes[] = {
- { "location", nullptr, true, true, QVariant::String },
- { "expr", nullptr, false, true, QVariant::String }
+ {"location", nullptr, true, true, QVariant::String},
+ {"expr", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_content_attributes[] = {
- { "expr", nullptr, false, true, QVariant::String }
+ {"expr", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_param_attributes[] = {
- { "name", nullptr, true, true, QVariant::String },
- { "expr", nullptr, false, true, QVariant::String },
- { "location", nullptr, false, true, QVariant::String }
+ {"name", nullptr, true, true, QVariant::String},
+ {"expr", nullptr, false, true, QVariant::String},
+ {"location", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_script_attributes[] = {
- { "src", nullptr, false, true, QVariant::String }
+ {"src", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_send_attributes[] = {
- { "event", nullptr, false, true, QVariant::String },
- { "eventexpr", nullptr, false, true, QVariant::String },
- { "target", nullptr, false, true, QVariant::String },
- { "targetexpr", nullptr, false, true, QVariant::String },
- { "type", nullptr, false, true, QVariant::String },
- { "typeexpr", nullptr, false, true, QVariant::String },
- { "id", nullptr, false, true, QVariant::String },
- { "idlocation", nullptr, false, true, QVariant::String },
- { "delay", nullptr, false, true, QVariant::String },
- { "delayexpr", nullptr, false, true, QVariant::String },
- { "namelist", nullptr, false, true, QVariant::String }
+ {"event", nullptr, false, true, QVariant::String},
+ {"eventexpr", nullptr, false, true, QVariant::String},
+ {"target", nullptr, false, true, QVariant::String},
+ {"targetexpr", nullptr, false, true, QVariant::String},
+ {"type", nullptr, false, true, QVariant::String},
+ {"typeexpr", nullptr, false, true, QVariant::String},
+ {"id", nullptr, false, true, QVariant::String},
+ {"idlocation", nullptr, false, true, QVariant::String},
+ {"delay", nullptr, false, true, QVariant::String},
+ {"delayexpr", nullptr, false, true, QVariant::String},
+ {"namelist", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_cancel_attributes[] = {
- { "sendid", nullptr, false, true, QVariant::String },
- { "sendidexpr", nullptr, false, true, QVariant::String }
+ {"sendid", nullptr, false, true, QVariant::String},
+ {"sendidexpr", nullptr, false, true, QVariant::String}
};
const scxmltag_attribute_t scxml_invoke_attributes[] = {
- { "type", nullptr, false, true, QVariant::String },
- { "typeexpr", nullptr, false, true, QVariant::String },
- { "src", nullptr, false, true, QVariant::String },
- { "srcexpr", nullptr, false, true, QVariant::String },
- { "id", nullptr, false, true, QVariant::String },
- { "idlocation", nullptr, false, true, QVariant::String },
- { "namelist", nullptr, false, true, QVariant::String },
- { "autoforward", ";true;false", false, true, QVariant::StringList }
+ {"type", nullptr, false, true, QVariant::String},
+ {"typeexpr", nullptr, false, true, QVariant::String},
+ {"src", nullptr, false, true, QVariant::String},
+ {"srcexpr", nullptr, false, true, QVariant::String},
+ {"id", nullptr, false, true, QVariant::String},
+ {"idlocation", nullptr, false, true, QVariant::String},
+ {"namelist", nullptr, false, true, QVariant::String},
+ {"autoforward", ";true;false", false, true, QVariant::StringList}
};
const scxmltag_type_t scxml_unknown = {