Skip to content

Commit 3fbbc01

Browse files
agiudiceandreanyalldawson
authored andcommittedMay 19, 2020
Turn off editing and dragging for current env vars table in System setting
1 parent cca23c6 commit 3fbbc01

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed
 

‎src/app/qgsoptions.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
255255
for ( int i = 0; i < varStrItms.size(); ++i )
256256
{
257257
QTableWidgetItem *varNameItm = new QTableWidgetItem( varStrItms.at( i ) );
258-
varNameItm->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable
259-
| Qt::ItemIsEditable | Qt::ItemIsDragEnabled );
258+
varNameItm->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable );
260259
fItm = varNameItm->font();
261260
if ( !sysVarVal.isEmpty() )
262261
{

‎src/ui/qgsoptionsbase.ui

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,15 +1481,6 @@
14811481
<height>120</height>
14821482
</size>
14831483
</property>
1484-
<property name="editTriggers">
1485-
<set>QAbstractItemView::AllEditTriggers</set>
1486-
</property>
1487-
<property name="dragEnabled">
1488-
<bool>true</bool>
1489-
</property>
1490-
<property name="dragDropMode">
1491-
<enum>QAbstractItemView::DragOnly</enum>
1492-
</property>
14931484
<property name="selectionMode">
14941485
<enum>QAbstractItemView::SingleSelection</enum>
14951486
</property>

0 commit comments

Comments
 (0)
Please sign in to comment.