mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Small optimisations to model/views
This commit is contained in:
parent
a20c3cf68a
commit
a2166bd042
@ -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();
|
||||
|
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>270</width>
|
||||
<width>300</width>
|
||||
<height>459</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -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>
|
||||
@ -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>
|
||||
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user