Skip to content
Permalink
Browse files

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

…tting

(cherry picked from commit 3fbbc01)
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jun 19, 2020
1 parent 3562d50 commit cfca49f6747d08e5fc8661772008838e482171a6
Showing with 1 addition and 11 deletions.
  1. +1 −2 src/app/qgsoptions.cpp
  2. +0 −9 src/ui/qgsoptionsbase.ui
@@ -251,8 +251,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() )
{
@@ -1437,15 +1437,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 cfca49f

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