Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Commits
de620594
Commit
de620594
authored
1 year ago
by
Peter Albrecht
Browse files
Options
Downloads
Patches
Plain Diff
Remove icon finder utility
parent
b7bde1de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!406
Refactor skill memory GUI
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/RobotAPI/libraries/skills_gui/gui_utils.cpp
+0
-20
0 additions, 20 deletions
source/RobotAPI/libraries/skills_gui/gui_utils.cpp
source/RobotAPI/libraries/skills_gui/gui_utils.h
+0
-11
0 additions, 11 deletions
source/RobotAPI/libraries/skills_gui/gui_utils.h
with
0 additions
and
31 deletions
source/RobotAPI/libraries/skills_gui/gui_utils.cpp
+
0
−
20
View file @
de620594
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
#include
<QWidget>
#include
<QWidget>
#include
<ArmarXCore/core/exceptions/local/ExpressionException.h>
#include
<ArmarXCore/core/exceptions/local/ExpressionException.h>
#include
<ArmarXCore/core/system/ArmarXDataPath.h>
void
void
armarx
::
gui
::
clearLayout
(
QLayout
*
layout
)
armarx
::
gui
::
clearLayout
(
QLayout
*
layout
)
...
@@ -110,22 +109,3 @@ armarx::gui::clearSplitter(QSplitter* splitter)
...
@@ -110,22 +109,3 @@ armarx::gui::clearSplitter(QSplitter* splitter)
splitter
->
widget
(
i
)
->
deleteLater
();
splitter
->
widget
(
i
)
->
deleteLater
();
}
}
}
}
QIcon
armarx
::
gui
::
getIcon
(
std
::
string
name
)
{
// is the path already found?
if
(
armarXGuiPath
.
empty
())
{
std
::
scoped_lock
l
(
m_armarXGuiPath
);
armarXGuiPath
=
"$ARMARX_WORKSPACE/armarx/ArmarXGui/source/ArmarXGui/libraries/ArmarXGuiBase/icons/"
;
ArmarXDataPath
::
ReplaceEnvVars
(
armarXGuiPath
);
}
// now we can use the path!
// we don't check the QIcon for validity, since an invalid icon can be safely used in the gui
QPixmap
pix
(
QString
::
fromStdString
(
armarXGuiPath
+
name
));
return
QIcon
(
pix
);
}
This diff is collapsed.
Click to expand it.
source/RobotAPI/libraries/skills_gui/gui_utils.h
+
0
−
11
View file @
de620594
...
@@ -13,17 +13,6 @@
...
@@ -13,17 +13,6 @@
namespace
armarx
::
gui
namespace
armarx
::
gui
{
{
// we only need to fetch the path once => fetch once, use many times
static
std
::
string
armarXGuiPath
=
""
;
static
std
::
mutex
m_armarXGuiPath
;
/**
* @brief Get an icon in ArmarXGuiBase.
* @param name The name of the icon.
* @return The icon. Empty icon if not found.
*/
QIcon
getIcon
(
std
::
string
name
);
/**
/**
* @brief Clear a layout.
* @brief Clear a layout.
*
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment