diff options
author | Alessandro Portale <[email protected]> | 2023-05-09 13:20:04 +0200 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2023-05-10 13:25:10 +0000 |
commit | 5975657e7747052211310a9bfedaac1fa937fc19 (patch) | |
tree | a9a784fb73800559ff49358c27f06cbb4b58a880 /src/plugins/imageviewer/imageviewer.cpp | |
parent | 68656354427141b8521270a559cffe8230f5d6fd (diff) |
Utils: Centralize style-related property names as constants
This introduces string constants in Utils::StyleHelper. They are used by
code all over in Qt Creator to tell ManhattanStyle how to paint certain
widgets.
Change-Id: Iecca36103f80084cd5fe93fcb6b18b8fbb3a32bb
Reviewed-by: Christian Stenger <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'src/plugins/imageviewer/imageviewer.cpp')
-rw-r--r-- | src/plugins/imageviewer/imageviewer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/imageviewer/imageviewer.cpp b/src/plugins/imageviewer/imageviewer.cpp index 9c19b0ffbf8..5d4a068e717 100644 --- a/src/plugins/imageviewer/imageviewer.cpp +++ b/src/plugins/imageviewer/imageviewer.cpp @@ -17,8 +17,9 @@ #include <utils/filepath.h> #include <utils/qtcassert.h> -#include <utils/utilsicons.h> #include <utils/styledbar.h> +#include <utils/stylehelper.h> +#include <utils/utilsicons.h> #include <QAction> #include <QDebug> @@ -112,7 +113,7 @@ void ImageViewer::ctor() d->shareButton->setToolTip(Tr::tr("Export")); d->shareButton->setPopupMode(QToolButton::InstantPopup); d->shareButton->setIcon(Icons::EXPORTFILE_TOOLBAR.icon()); - d->shareButton->setProperty("noArrow", true); + d->shareButton->setProperty(StyleHelper::C_NO_ARROW, true); auto shareMenu = new QMenu(d->shareButton); shareMenu->addAction(d->actionExportImage); shareMenu->addAction(d->actionMultiExportImages); |