Pārlūkot izejas kodu

Temporarily use PNG icons over SVG

Issue #122:
SVG image reader is a plugin (not part of QtCore/QtGUI).
It needs to be included in the package of any application that needs to read SVG images.
Until this happens, we use the PNG version of the icons.
Julien Finet 13 gadi atpakaļ
vecāks
revīzija
45116a193b

+ 1 - 1
Libs/Widgets/Plugins/ctkSearchBoxPlugin.cpp

@@ -47,7 +47,7 @@ QString ctkSearchBoxPlugin::domXml() const
 // --------------------------------------------------------------------------
 QIcon ctkSearchBoxPlugin::icon() const
 {
-  return QIcon(":/Icons/search.svg");
+  return QIcon(":/Icons/search.png");
 }
 
 //-----------------------------------------------------------------------------

BIN
Libs/Widgets/Resources/Icons/clear.png


BIN
Libs/Widgets/Resources/Icons/search.png


+ 2 - 0
Libs/Widgets/Resources/ctkWidgets.qrc

@@ -6,6 +6,8 @@
     <file>Icons/expand-down.png</file>
     <file>Icons/expand-up.png</file>
     <file>Icons/search.svg</file>
+    <file>Icons/search.png</file>
     <file>Icons/clear.svg</file>
+    <file>Icons/clear.png</file>
   </qresource>
 </RCC>

+ 1 - 1
Libs/Widgets/ctkMenuComboBox.cpp

@@ -89,7 +89,7 @@ void ctkMenuComboBoxPrivate::init()
 
   // SearchButton
   this->SearchButton = new QToolButton();
-  this->SearchButton->setIcon(QIcon(":/Icons/search.svg"));
+  this->SearchButton->setIcon(QIcon(":/Icons/search.png"));
   this->SearchButton->setCheckable(true);
   this->SearchButton->setAutoRaise(true);
   this->SearchButton->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Ignored);

+ 2 - 2
Libs/Widgets/ctkSearchBox.cpp

@@ -61,8 +61,8 @@ public:
 ctkSearchBoxPrivate::ctkSearchBoxPrivate(ctkSearchBox &object)
   : q_ptr(&object)
 {
-  this->clearIcon = QIcon(":Icons/clear.svg");
-  this->searchIcon = QIcon(":Icons/search.svg");
+  this->clearIcon = QIcon(":Icons/clear.png");
+  this->searchIcon = QIcon(":Icons/search.png");
   this->clearIconMode = QIcon::Disabled;
   this->showSearchIcon = false;
   this->alwaysShowClearIcon = false;