Gui: add image icon resources
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
480
src/Gui/Icons/image-open.svg
Normal file
480
src/Gui/Icons/image-open.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 16 KiB |
557
src/Gui/Icons/image-plane.svg
Normal file
557
src/Gui/Icons/image-plane.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 20 KiB |
349
src/Gui/Icons/image-scaling.svg
Normal file
349
src/Gui/Icons/image-scaling.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 16 KiB |
@@ -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 -->
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -54,6 +54,8 @@ ViewProviderImagePlane::ViewProviderImagePlane()
|
||||
|
||||
pcCoords = new SoCoordinate3();
|
||||
pcCoords->ref();
|
||||
|
||||
sPixmap = "image-plane";
|
||||
}
|
||||
|
||||
ViewProviderImagePlane::~ViewProviderImagePlane()
|
||||
|
||||
Reference in New Issue
Block a user