mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Add icon
This commit is contained in:
parent
f3bfe62af6
commit
552baa3b15
@ -996,6 +996,7 @@
|
||||
<file>themes/default/mIconSelectUnlocked.svg</file>
|
||||
<file>themes/default/mIconSelectLocked.svg</file>
|
||||
<file>themes/default/mTemporalNavigationMovie.svg</file>
|
||||
<file>themes/default/mActionAddSensorThingsLayer.svg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/images/tips">
|
||||
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
|
||||
|
1
images/themes/default/mActionAddSensorThingsLayer.svg
Normal file
1
images/themes/default/mActionAddSensorThingsLayer.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><circle cx="12" cy="12" r="3" fill="#6d97c4" stroke="#415a75" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" style="paint-order:stroke fill markers"/><g fill="none" fill-opacity="0" stroke="#415a75"><path stroke-width="2" d="M5.04 4.68c-3.496 3.392-4.573 10.077 0 14.647"/><path d="M7.6 6.93c-2.81 2.878-2.82 7.114-.03 10.157"/><path stroke-width="2" d="M18.962 19.319c3.496-3.39 4.574-10.076 0-14.646"/><path d="M16.383 17.069c2.809-2.877 2.82-7.114.03-10.157"/></g><path fill="#bacee3" d="M12 15c-1.023-.327-1.512-1.668-1.5-3 .013-1.355.544-2.7 1.5-3-1.933.03-3.011 1.555-3 3 .01 1.409.987 2.923 3 3Z"/><g transform="matrix(.6923 0 0 .6923 1.846 1.846)"><rect width="13" height="13" x="19" y="19" fill="#5a8c5a" rx="2.615"/><g fill-rule="evenodd"><path fill="#fff" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.6" d="M21.6 25.5h7.8M25.5 29.4v-7.8"/><path fill="#fcffff" d="M20.3 25.5h10.4v-2.6c0-2.6-.65-2.6-5.2-2.6s-5.2 0-5.2 2.6z" opacity=".3"/></g></g></svg>
|
After Width: | Height: | Size: 1.0 KiB |
@ -46,7 +46,12 @@ QString QgsSensorThingsSourceSelectProvider::text() const
|
||||
|
||||
QIcon QgsSensorThingsSourceSelectProvider::icon() const
|
||||
{
|
||||
return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddXyzLayer.svg" ) );
|
||||
return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddSensorThingsLayer.svg" ) );
|
||||
}
|
||||
|
||||
int QgsSensorThingsSourceSelectProvider::ordering() const
|
||||
{
|
||||
return OrderRemoteProvider + 200;
|
||||
}
|
||||
|
||||
QgsAbstractDataSourceWidget *QgsSensorThingsSourceSelectProvider::createDataSourceWidget( QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode ) const
|
||||
|
@ -30,11 +30,11 @@ class QgsSensorThingsSourceSelectProvider : public QgsSourceSelectProvider
|
||||
{
|
||||
public:
|
||||
|
||||
QString providerKey() const override;
|
||||
QString text() const override;
|
||||
int ordering() const override { return QgsSourceSelectProvider::OrderRemoteProvider + 40; }
|
||||
QIcon icon() const override;
|
||||
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override;
|
||||
QString providerKey() const final;
|
||||
QString text() const final;
|
||||
QIcon icon() const final;
|
||||
int ordering() const final;
|
||||
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const final;
|
||||
};
|
||||
|
||||
class QgsSensorThingsSourceWidgetProvider : public QgsProviderSourceWidgetProvider
|
||||
|
Loading…
x
Reference in New Issue
Block a user