Skip to content
Permalink
Browse files

Disable drag and drop in symbol dialogs, fix for bug #1481

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11017 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 4, 2009
1 parent 4bd2f5f commit d5b84ed3dc2abbff6728f2e0ca9e343d37bd7d1a
@@ -265,6 +265,7 @@ int QgsComposerPictureWidget::addDirectoryToPreview( const QString& path )
}

QListWidgetItem * listItem = new QListWidgetItem( mPreviewListWidget );
listItem->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled );

if ( fileIsSvg )
{
@@ -75,6 +75,7 @@ QgsSingleSymbolDialog::QgsSingleSymbolDialog( QgsVectorLayer * layer, bool disab
mypItem->setText( "" );
//store the symbol offset in the UserData role for later retrieval
mypItem->setData( Qt::UserRole, *it );
mypItem->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled );
if ( layer->geometryType() != QGis::Point )
{
break;
@@ -36,7 +36,7 @@
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<property name="sizeHint" stdset="0" >
<size>
<width>101</width>
<height>20</height>
@@ -85,6 +85,12 @@
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QListWidget" name="mPreviewListWidget" >
<property name="showDropIndicator" stdset="0" >
<bool>false</bool>
</property>
<property name="dragDropMode" >
<enum>QAbstractItemView::NoDragDrop</enum>
</property>
<property name="movement" >
<enum>QListView::Free</enum>
</property>
@@ -116,16 +122,7 @@
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<property name="margin" >
<number>0</number>
</property>
<item>
@@ -78,8 +78,11 @@
<layout class="QGridLayout" >
<item row="0" column="0" colspan="3" >
<widget class="QListWidget" name="lstSymbols" >
<property name="showDropIndicator" stdset="0" >
<bool>false</bool>
</property>
<property name="dragDropMode" >
<enum>QAbstractItemView::DragDrop</enum>
<enum>QAbstractItemView::NoDragDrop</enum>
</property>
<property name="alternatingRowColors" >
<bool>false</bool>

0 comments on commit d5b84ed

Please sign in to comment.
You can’t perform that action at this time.