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
  • Loading branch information
agiudiceandrea authored and nyalldawson committed May 19, 2020
1 parent cca23c6 commit 3fbbc01
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 @@ -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() )
{
Expand Down
9 changes: 0 additions & 9 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -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>
Expand Down

0 comments on commit 3fbbc01

Please sign in to comment.