Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small optimisations to model/views
  • Loading branch information
nyalldawson committed Oct 4, 2016
1 parent a20c3cf commit a2166bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/gui/symbology-ng/qgssvgselectorwidget.cpp
Expand Up @@ -133,7 +133,7 @@ void QgsSvgSelectorLoader::loadImages( const QString& path )

// we need to avoid spamming the model with notifications about new svgs, so foundSvgs
// is only emitted for blocks of SVGs (otherwise the view goes all flickery)
if ( mTimer.elapsed() > mTimerThreshold )
if ( mTimer.elapsed() > mTimerThreshold && !mQueuedSvgs.isEmpty() )
{
emit foundSvgs( mQueuedSvgs );
mQueuedSvgs.clear();
Expand Down
29 changes: 22 additions & 7 deletions src/ui/symbollayer/widget_svgfill.ui
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>270</width>
<width>300</width>
<height>459</height>
</rect>
</property>
Expand Down Expand Up @@ -280,12 +280,27 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="flow">
<enum>QListView::LeftToRight</enum>
</property>
<property name="resizeMode">
<enum>QListView::Adjust</enum>
</property>
<property name="layoutMode">
<enum>QListView::Batched</enum>
</property>
<property name="gridSize">
<size>
<width>36</width>
<height>36</height>
</size>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
Expand All @@ -306,12 +321,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsColorButton</class>
<extends>QToolButton</extends>
<header>qgscolorbutton.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsDataDefinedButton</class>
<extends>QToolButton</extends>
Expand All @@ -328,6 +337,12 @@
<header>qgsunitselectionwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsColorButton</class>
<extends>QToolButton</extends>
<header>qgscolorbutton.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mTextureWidthSpinBox</tabstop>
Expand Down

0 comments on commit a2166bd

Please sign in to comment.