Skip to content

Commit

Permalink
Lost 'add directory' icon on merge - added it again
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Dec 19, 2023
1 parent 244ba02 commit 088fda9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace hal
Q_OBJECT
Q_PROPERTY(QString disabledIconStyle READ disabledIconStyle WRITE setDisabledIconStyle)
Q_PROPERTY(QString newViewIconPath READ newViewIconPath WRITE setNewViewIconPath)
Q_PROPERTY(QString newDirIconPath READ newDirIconPath WRITE setNewDirIconPath)
Q_PROPERTY(QString newViewIconStyle READ newViewIconStyle WRITE setNewViewIconStyle)
Q_PROPERTY(QString renameIconPath READ renameIconPath WRITE setRenameIconPath)
Q_PROPERTY(QString renameIconStyle READ renameIconStyle WRITE setRenameIconStyle)
Expand Down Expand Up @@ -128,6 +129,7 @@ namespace hal
///@{
QString disabledIconStyle() const;
QString newViewIconPath() const;
QString newDirIconPath() const;
QString newViewIconStyle() const;
QString renameIconPath() const;
QString renameIconStyle() const;
Expand All @@ -148,6 +150,7 @@ namespace hal
void setDisabledIconStyle(const QString &path);
void setNewViewIconPath(const QString &path);
void setNewViewIconStyle(const QString &style);
void setNewDirIconPath(const QString &path);
void setRenameIconPath(const QString &path);
void setRenameIconStyle(const QString &style);
void setDeleteIconPath(const QString &path);
Expand Down Expand Up @@ -196,6 +199,7 @@ namespace hal

QAction* mNewViewAction;
QString mNewViewIconPath;
QString mNewDirIconPath;
QString mNewViewIconStyle;

QAction* mRenameAction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace hal

mOpenAction->setIcon(gui_utility::getStyledSvgIcon(mOpenIconStyle, mOpenIconPath));
mNewViewAction->setIcon(gui_utility::getStyledSvgIcon(mNewViewIconStyle, mNewViewIconPath));
mNewDirectoryAction->setIcon(gui_utility::getStyledSvgIcon(mNewViewIconStyle, mNewViewIconPath));
mNewDirectoryAction->setIcon(gui_utility::getStyledSvgIcon(mNewViewIconStyle, mNewDirIconPath));
mRenameAction->setIcon(gui_utility::getStyledSvgIcon(mRenameIconStyle, mRenameIconPath));
mDuplicateAction->setIcon(gui_utility::getStyledSvgIcon(mDuplicateIconStyle, mDuplicateIconPath));
mDeleteAction->setIcon(gui_utility::getStyledSvgIcon(mDeleteIconStyle, mDeleteIconPath));
Expand Down Expand Up @@ -376,6 +376,11 @@ namespace hal
return mNewViewIconPath;
}

QString ContextManagerWidget::newDirIconPath() const
{
return mNewDirIconPath;
}

QString ContextManagerWidget::newViewIconStyle() const
{
return mNewViewIconStyle;
Expand Down Expand Up @@ -446,6 +451,11 @@ namespace hal
mNewViewIconPath = path;
}

void ContextManagerWidget::setNewDirIconPath(const QString& path)
{
mNewDirIconPath = path;
}

void ContextManagerWidget::setNewViewIconStyle(const QString& style)
{
mNewViewIconStyle = style;
Expand Down

0 comments on commit 088fda9

Please sign in to comment.