Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: correct typos about Dtk::Gui::DDciIcon::IconAttribute #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/util/ddciicon.zh_CN.dox
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ cmake --build build
| Light | 0 |
| Dark | 1 |

@enum Dtk::Gui::DDciIcon::IconAttibute
@enum Dtk::Gui::DDciIcon::IconAttribute
@brief DCI图标属性
@details
| 键 | 值 |
Expand Down Expand Up @@ -282,7 +282,7 @@ cmake --build build
@param[in] theme 图标主题
@param[in] mode 图标模式,默认为Normal

@fn bool Dtk::Gui::DDciIcon::isSupportedAttribute(DDciIconMatchResult result, IconAttibute attr)
@fn bool Dtk::Gui::DDciIcon::isSupportedAttribute(DDciIconMatchResult result, IconAttribute attr)
@brief 判断DCI图标是否支持指定属性
@param[in] result DCI图标匹配结果
@param[in] attr 图标属性
Expand Down
6 changes: 3 additions & 3 deletions include/util/ddciicon.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
Light = 0,
Dark = 1
};
enum IconAttibute {
enum IconAttribute {
HasPalette = 0x001
};
enum IconMatchedFlag {
Expand All @@ -85,7 +85,7 @@
RegardPaddingsAsSize = 0x02
};
Q_DECLARE_FLAGS(IconMatchedFlags, IconMatchedFlag)
Q_FLAGS(IconMatchedFlags);

Check warning on line 88 in include/util/ddciicon.h

View workflow job for this annotation

GitHub Actions / check_job / DOXYGEN_CHECK

function Dtk::Gui::DDciIcon::Q_FLAGS is not documented!

DDciIcon();
explicit DDciIcon(const DCORE_NAMESPACE::DDciFile *dciFile);
Expand All @@ -105,8 +105,8 @@
int actualSize(int size, Theme theme, Mode mode = Normal) const;

QList<int> availableSizes(Theme theme, Mode mode = Normal) const;
bool isSupportedAttribute(DDciIconMatchResult result, IconAttibute attr) const;
static bool isSupportedAttribute(const DDciIconImage &image, IconAttibute attr);
bool isSupportedAttribute(DDciIconMatchResult result, IconAttribute attr) const;
static bool isSupportedAttribute(const DDciIconImage &image, IconAttribute attr);

QPixmap pixmap(qreal devicePixelRatio, int iconSize, Theme theme, Mode mode = Normal,
const DDciIconPalette &palette = DDciIconPalette()) const;
Expand Down
4 changes: 2 additions & 2 deletions src/util/ddciicon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ QList<int> DDciIcon::availableSizes(DDciIcon::Theme theme, DDciIcon::Mode mode)
return sizes;
}

bool DDciIcon::isSupportedAttribute(DDciIconMatchResult result, IconAttibute attr) const
bool DDciIcon::isSupportedAttribute(DDciIconMatchResult result, IconAttribute attr) const
{
switch (attr) {
case HasPalette:
Expand All @@ -862,7 +862,7 @@ bool DDciIcon::isSupportedAttribute(DDciIconMatchResult result, IconAttibute att
return false;
}

bool DDciIcon::isSupportedAttribute(const DDciIconImage &image, IconAttibute attr)
bool DDciIcon::isSupportedAttribute(const DDciIconImage &image, IconAttribute attr)
{
if (image.isNull())
return false;
Expand Down