Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrKudrya committed Dec 19, 2024
1 parent fccf241 commit 76d3a87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ using namespace twoDModel::view;
ActionsBox::ActionsBox(QObject *parent)
: QObject(parent)
, mSceneModeActions(this)
, mScrollHandModeAction(new QAction(AbstractItem::loadTextColorIcon(":/icons/2d_hand.png"), tr("Hand dragging mode"), this))
, mScrollHandModeAction(new QAction(AbstractItem::loadTextColorIcon(":/icons/2d_hand.png")
, tr("Hand dragging mode"), this))
, mMultiSelectionModeAction(new QAction(QIcon(":/icons/2d_multiselection.png"), tr("Multiselection mode"), this))
, mSeparator1(new QAction(this))
, mSaveWorldModelAction(new QAction(QIcon(":/icons/2d_save.png"), tr("Save world model..."), this))
, mLoadWorldModelAction(new QAction(QIcon(":/icons/2d_open.png"), tr("Load world model..."), this))
, mLoadWorldWithoutRobotAction(new QAction(QIcon(":/icons/2d_open.png")
, tr("Load world model without robot configuration..."), this))
, mSeparator2(new QAction(this))
, mDeleteAllAction(new QAction(AbstractItem::loadTextColorIcon(":/icons/2d_clear.png"), tr("Clear items"), this))
, mClearFloorAction(new QAction(AbstractItem::loadTextColorIcon(":/icons/2d_clear_floor.svg"), tr("Clear floor"), this))
, mDeleteAllAction(new QAction(AbstractItem::loadTextColorIcon(":/icons/2d_clear.png")
, tr("Clear items"), this))
, mClearFloorAction(new QAction(AbstractItem::loadTextColorIcon(":/icons/2d_clear_floor.svg")
, tr("Clear floor"), this))
{
mScrollHandModeAction->setCheckable(true);
mMultiSelectionModeAction->setCheckable(true);
Expand Down
2 changes: 1 addition & 1 deletion qrutils/graphicsUtils/abstractItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ QStringList AbstractItem::getBrushStyleList()
}

QIcon AbstractItem::loadThemedIcon(QString path, QColor color) {
QPixmap image(path);
QPixmap image(path);
QPainter pt(&image);
pt.setCompositionMode(QPainter::CompositionMode_SourceIn);
pt.fillRect(image.rect(), color);
Expand Down

0 comments on commit 76d3a87

Please sign in to comment.