Skip to content
Permalink
Browse files

more code clean up

  • Loading branch information
mbernasocchi authored and pka committed Dec 8, 2010
1 parent d4526de commit 2ced86cd99b84a360720e29cd3b414e27ccb811e
Showing with 14 additions and 2 deletions.
  1. +3 −0 src/plugins/globe/globe_plugin_dialog.cpp
  2. +11 −2 src/plugins/globe/globe_plugin_dialog_guibase.ui
@@ -219,12 +219,15 @@

void QgsGlobePluginDialog::readElevationDatasourcesFromSettings()
{
elevationDatasourcesWidget->clearContents();
settings.beginGroup("Plugin-Globe");
int size = settings.beginReadArray("ElevationsDatasources");
for (int i = 0; i < size; ++i) {
settings.setArrayIndex(i);
QTableWidgetItem *type = new QTableWidgetItem(settings.value("type").toString());
QTableWidgetItem *uri = new QTableWidgetItem(settings.value("uri").toString());
// uri->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled);
// type->setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled);
elevationDatasourcesWidget->setRowCount(1+i);
elevationDatasourcesWidget->setItem(i, 0, type);
elevationDatasourcesWidget->setItem(i, 1, uri);
@@ -181,20 +181,29 @@
</item>
<item>
<widget class="QTableWidget" name="elevationDatasourcesWidget">
<property name="acceptDrops">
<bool>true</bool>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="tabKeyNavigation">
<bool>false</bool>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="dragEnabled">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="dragDropOverwriteMode">
<bool>false</bool>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::NoDragDrop</enum>
</property>
<property name="defaultDropAction">
<enum>Qt::MoveAction</enum>
<enum>Qt::IgnoreAction</enum>
</property>
<property name="alternatingRowColors">
<bool>true</bool>

0 comments on commit 2ced86c

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