Fixed MSVS build. Added plugin icons, improved UI.

This commit is contained in:
2016-03-03 15:03:51 +01:00
parent a1f92c9f40
commit c12a1231c0
37 changed files with 189 additions and 7 deletions
+5
View File
@@ -16,3 +16,8 @@ void Commodity::initServiceUi()
m_ui = grid;
((CommodityGrid *) m_ui)->setForm(form);
}
QIcon Commodity::pluginIcon()
{
return QIcon(":/icons/commodityPlugin.svg");
}
+4
View File
@@ -18,6 +18,10 @@ public:
protected:
void initServiceUi() Q_DECL_OVERRIDE;
// IPlugin interface
public:
virtual QIcon pluginIcon();
};
#endif // COMMODITY_H
+3
View File
@@ -66,3 +66,6 @@ OTHER_FILES += \
FORMS += \
commodityform.ui
RESOURCES += \
commodityrc.qrc
+5
View File
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>icons/commodityPlugin.svg</file>
</qresource>
</RCC>
+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" ?><svg clip-rule="evenodd" fill-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient gradientUnits="userSpaceOnUse" id="a" x1="149.127" x2="149.127" y1="197.032" y2="411.462"><stop offset="0" stop-color="#FCFCFD"/><stop offset="1" stop-color="#fff"/></linearGradient><linearGradient gradientUnits="userSpaceOnUse" id="b" x1="305.874" x2="305.874" y1="411.462" y2="197.032"><stop offset="0" stop-color="#FCFCFD"/><stop offset="1" stop-color="#fff"/></linearGradient></defs><g><polygon fill="#E5E5E6" points="268,126 80,163 30,88 218,50" stroke="#434242" stroke-linejoin="round" stroke-width="10"/><polygon fill="#E5E5E6" points="268,126 394,163 463,100 331,63" stroke="#434242" stroke-linejoin="round" stroke-width="10"/><polygon fill="url(#a)" points="80,163 218,201 218,445 80,408" stroke="#434242" stroke-linejoin="round" stroke-width="10"/><polygon fill="url(#b)" points="394,163 218,201 218,445 394,408" stroke="#434242" stroke-linejoin="round" stroke-width="10"/><rect fill="#008BFF" height="20.002" transform="matrix(1.254 -.24 0 1.254 243.174 376.347)" width="100"/><polygon fill="#E5E5E6" points="394,163 218,201 293,282 469,238" stroke="#434242" stroke-linejoin="round" stroke-width="10"/><polygon fill="#E5E5E6" points="80,163 218,201 193,301 55,251" stroke="#434242" stroke-linejoin="round" stroke-width="10"/><polygon fill="#4D4D4D" points="268,126 394,163 218,201 80,163" stroke="#434242" stroke-linejoin="round" stroke-width="10"/></g></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB