Gui: add image icon resources

This commit is contained in:
wmayer
2023-03-19 21:53:15 +01:00
parent d76e22702f
commit ea93a2f76d
7 changed files with 1394 additions and 1 deletions

View File

@@ -1984,7 +1984,7 @@ StdViewLoadImage::StdViewLoadImage()
sToolTipText= QT_TR_NOOP("Loads a image");
sWhatsThis = "Std_ViewLoadPicture";
sStatusTip = QT_TR_NOOP("Loads a image");
//sPixmap = "camera-photo";
sPixmap = "image-open";
eType = 0;
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -255,6 +255,9 @@
<file>Std_UserEditModeCutting.svg</file>
<file>Std_UserEditModeColor.svg</file>
<file>Warning.svg</file>
<file>image-open.svg</file>
<file>image-plane.svg</file>
<file>image-scaling.svg</file>
</qresource>
<!-- Demonstrating support for an embedded icon theme -->
<!-- See also http://permalink.gmane.org/gmane.comp.lib.qt.general/26374 -->

View File

@@ -43,6 +43,7 @@
#endif
#include "ImageView.h"
#include "BitmapFactory.h"
using namespace Gui;
@@ -62,6 +63,7 @@ ImageView::ImageView(QWidget* parent)
scrollArea->setVisible(false);
setCentralWidget(scrollArea);
setAcceptDrops(true);
setWindowIcon(Gui::BitmapFactory().pixmap("colors"));
}
bool ImageView::loadFile(const QString& fileName)

View File

@@ -54,6 +54,8 @@ ViewProviderImagePlane::ViewProviderImagePlane()
pcCoords = new SoCoordinate3();
pcCoords->ref();
sPixmap = "image-plane";
}
ViewProviderImagePlane::~ViewProviderImagePlane()