forked from qt-creator/qt-creator
Utils: Add an "online" icon
..and use it in the Help plugin to open online help. Change-Id: Ic84c63257a08b3c2ac76bedc0db04f297f695291 Reviewed-by: Tasuku Suzuki <tasuku.suzuki@qbc.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
BIN
src/libs/utils/images/online.png
Normal file
BIN
src/libs/utils/images/online.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 B |
BIN
src/libs/utils/images/online@2x.png
Normal file
BIN
src/libs/utils/images/online@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 440 B |
@@ -223,6 +223,8 @@
|
|||||||
<file>images/toggleprogressdetails@2x.png</file>
|
<file>images/toggleprogressdetails@2x.png</file>
|
||||||
<file>images/unknownfile.png</file>
|
<file>images/unknownfile.png</file>
|
||||||
<file>images/dir.png</file>
|
<file>images/dir.png</file>
|
||||||
|
<file>images/online.png</file>
|
||||||
|
<file>images/online@2x.png</file>
|
||||||
<file alias="mimetypes/freedesktop.org.xml" compression-algorithm="best">../3rdparty/xdg/freedesktop.org.xml</file>
|
<file alias="mimetypes/freedesktop.org.xml" compression-algorithm="best">../3rdparty/xdg/freedesktop.org.xml</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/codemodel">
|
<qresource prefix="/codemodel">
|
||||||
|
@@ -194,6 +194,8 @@ const Icon SORT_ALPHABETICALLY_TOOLBAR({
|
|||||||
{QLatin1String(":/utils/images/sort_alphabetically.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/utils/images/sort_alphabetically.png"), Theme::IconsBaseColor}});
|
||||||
const Icon TOGGLE_PROGRESSDETAILS_TOOLBAR({
|
const Icon TOGGLE_PROGRESSDETAILS_TOOLBAR({
|
||||||
{QLatin1String(":/utils/images/toggleprogressdetails.png"), Theme::IconsBaseColor}});
|
{QLatin1String(":/utils/images/toggleprogressdetails.png"), Theme::IconsBaseColor}});
|
||||||
|
const Icon ONLINE_TOOLBAR({
|
||||||
|
{QLatin1String(":/utils/images/online.png"), Theme::IconsBaseColor}});
|
||||||
|
|
||||||
const Icon WARNING({
|
const Icon WARNING({
|
||||||
{QLatin1String(":/utils/images/warningfill.png"), Theme::BackgroundColorNormal},
|
{QLatin1String(":/utils/images/warningfill.png"), Theme::BackgroundColorNormal},
|
||||||
|
@@ -113,6 +113,7 @@ QTCREATOR_UTILS_EXPORT extern const Icon LINK;
|
|||||||
QTCREATOR_UTILS_EXPORT extern const Icon LINK_TOOLBAR;
|
QTCREATOR_UTILS_EXPORT extern const Icon LINK_TOOLBAR;
|
||||||
QTCREATOR_UTILS_EXPORT extern const Icon SORT_ALPHABETICALLY_TOOLBAR;
|
QTCREATOR_UTILS_EXPORT extern const Icon SORT_ALPHABETICALLY_TOOLBAR;
|
||||||
QTCREATOR_UTILS_EXPORT extern const Icon TOGGLE_PROGRESSDETAILS_TOOLBAR;
|
QTCREATOR_UTILS_EXPORT extern const Icon TOGGLE_PROGRESSDETAILS_TOOLBAR;
|
||||||
|
QTCREATOR_UTILS_EXPORT extern const Icon ONLINE_TOOLBAR;
|
||||||
|
|
||||||
QTCREATOR_UTILS_EXPORT extern const Icon INFO;
|
QTCREATOR_UTILS_EXPORT extern const Icon INFO;
|
||||||
QTCREATOR_UTILS_EXPORT extern const Icon INFO_TOOLBAR;
|
QTCREATOR_UTILS_EXPORT extern const Icon INFO_TOOLBAR;
|
||||||
|
@@ -208,7 +208,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
|||||||
layout->addWidget(new Utils::StyledSeparator(toolBar));
|
layout->addWidget(new Utils::StyledSeparator(toolBar));
|
||||||
layout->addWidget(Core::Command::toolButtonWithAppendedShortcut(m_addBookmarkAction, cmd));
|
layout->addWidget(Core::Command::toolButtonWithAppendedShortcut(m_addBookmarkAction, cmd));
|
||||||
|
|
||||||
m_openOnlineDocumentationAction = new QAction(Utils::Icons::EXPORTFILE_TOOLBAR.icon(), tr("Open Online Documentation..."), this);
|
m_openOnlineDocumentationAction = new QAction(Utils::Icons::ONLINE_TOOLBAR.icon(), tr("Open Online Documentation..."), this);
|
||||||
cmd = Core::ActionManager::registerAction(m_openOnlineDocumentationAction, Constants::HELP_OPENONLINE, context);
|
cmd = Core::ActionManager::registerAction(m_openOnlineDocumentationAction, Constants::HELP_OPENONLINE, context);
|
||||||
connect(m_openOnlineDocumentationAction, &QAction::triggered, this, &HelpWidget::openOnlineDocumentation);
|
connect(m_openOnlineDocumentationAction, &QAction::triggered, this, &HelpWidget::openOnlineDocumentation);
|
||||||
layout->addWidget(Core::Command::toolButtonWithAppendedShortcut(m_openOnlineDocumentationAction, cmd));
|
layout->addWidget(Core::Command::toolButtonWithAppendedShortcut(m_openOnlineDocumentationAction, cmd));
|
||||||
|
@@ -3727,6 +3727,39 @@
|
|||||||
width="100%"
|
width="100%"
|
||||||
height="100%" />
|
height="100%" />
|
||||||
</g>
|
</g>
|
||||||
|
<g
|
||||||
|
id="src/libs/utils/images/online"
|
||||||
|
transform="translate(176)"
|
||||||
|
style="display:inline">
|
||||||
|
<use
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
xlink:href="#backgroundRect"
|
||||||
|
id="use6217"
|
||||||
|
width="100%"
|
||||||
|
height="100%"
|
||||||
|
transform="translate(1740,132)"
|
||||||
|
style="display:inline" />
|
||||||
|
<circle
|
||||||
|
style="fill:none;stroke:#000000"
|
||||||
|
id="path6227"
|
||||||
|
cx="1732.5"
|
||||||
|
cy="575.5"
|
||||||
|
r="6" />
|
||||||
|
<ellipse
|
||||||
|
cy="575.5"
|
||||||
|
cx="1732.5"
|
||||||
|
id="circle6239"
|
||||||
|
style="fill:none;stroke:#000000"
|
||||||
|
ry="6"
|
||||||
|
rx="2.8299999" />
|
||||||
|
<path
|
||||||
|
id="path2519"
|
||||||
|
style="fill:none;stroke:#000000"
|
||||||
|
d="m 1727,572.5 h 11 m -11,6 h 11 m -11,-3 h 11"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccc" />
|
||||||
|
</g>
|
||||||
</g>
|
</g>
|
||||||
<g
|
<g
|
||||||
inkscape:groupmode="layer"
|
inkscape:groupmode="layer"
|
||||||
|
Before Width: | Height: | Size: 379 KiB After Width: | Height: | Size: 380 KiB |
Reference in New Issue
Block a user