Skip to content

Commit

Permalink
Turn off editing and dragging for current env vars table in System se…
Browse files Browse the repository at this point in the history
…tting

(cherry picked from commit 3fbbc01)
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jun 19, 2020
1 parent 3562d50 commit cfca49f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsoptions.cpp
Expand Up @@ -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() )
{
Expand Down
9 changes: 0 additions & 9 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -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>
Expand Down

0 comments on commit cfca49f

Please sign in to comment.