Skip to content

Commit

Permalink
QgsAttributeDialog: disabled editing of items containing attribute na…
Browse files Browse the repository at this point in the history
…mes, added shortcuts for ok and cancel

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5316 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 19, 2006
1 parent 53729cb commit d868a63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsattributedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ QgsAttributeDialog::QgsAttributeDialog(const std::vector<QgsFeatureAttribute>* a
for(std::vector<QgsFeatureAttribute>::const_iterator it=attributes->begin();it!=attributes->end();++it)
{
QTableWidgetItem * myFieldItem = new QTableWidgetItem((*it).fieldName());
myFieldItem->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
mTable->setItem(index, 0, myFieldItem);
QTableWidgetItem * myValueItem = new QTableWidgetItem((*it).fieldValue());
mTable->setItem(index, 1, myValueItem);
Expand Down
4 changes: 2 additions & 2 deletions src/ui/qgsattributedialogbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
<item row="1" column="1" >
<widget class="QPushButton" name="mOkButton" >
<property name="text" >
<string>OK</string>
<string>&amp;OK</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QPushButton" name="mCancelButton" >
<property name="text" >
<string>Cancel</string>
<string>&amp;Cancel</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit d868a63

Please sign in to comment.