Skip to content
Permalink
Browse files

Turn off editing and dragging for current env vars table in System se…

…tting
  • Loading branch information
agiudiceandrea authored and nyalldawson committed May 18, 2020
1 parent cca23c6 commit 3fbbc01077f99a312599a50b2ba8a6e4a3fb8e45
Showing with 1 addition and 11 deletions.
  1. +1 −2 src/app/qgsoptions.cpp
  2. +0 −9 src/ui/qgsoptionsbase.ui
@@ -255,8 +255,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
for ( int i = 0; i < varStrItms.size(); ++i )
{
QTableWidgetItem *varNameItm = new QTableWidgetItem( varStrItms.at( i ) );
varNameItm->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable
| Qt::ItemIsEditable | Qt::ItemIsDragEnabled );
varNameItm->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable );
fItm = varNameItm->font();
if ( !sysVarVal.isEmpty() )
{
@@ -1481,15 +1481,6 @@
<height>120</height>
</size>
</property>
<property name="editTriggers">
<set>QAbstractItemView::AllEditTriggers</set>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::DragOnly</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
</property>

0 comments on commit 3fbbc01

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