Skip to content

Commit cee4c0f

Browse files
author
timlinux
committed
First implementation of property lists for vector props dialog. Still needs icon for the property list and vertical resizing is currently not working as it should (on my todo list to fix).
git-svn-id: http://svn.osgeo.org/qgis/trunk@12106 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d5a4eca commit cee4c0f

File tree

2 files changed

+451
-400
lines changed

2 files changed

+451
-400
lines changed

src/app/qgsvectorlayerproperties.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,13 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
137137
for ( ; it != overlayPluginList.constEnd(); ++it )
138138
{
139139
QgsApplyDialog* d = ( *it )->dialog( lyr );
140-
position = tabWidget->addTab( d, ( *it )->name() );
141-
tabWidget->setCurrentIndex( position ); //ugly, but otherwise the properties dialog is a mess
140+
position = stackedWidget->insertWidget( stackedWidget->count(), qobject_cast<QDialog*>( d ) );
141+
stackedWidget->setCurrentIndex( position ); //ugly, but otherwise the properties dialog is a mess
142142
mOverlayDialogs.push_back( d );
143+
listWidget->insertItem( stackedWidget->count(), ( *it )->name() );
143144
}
144145

145-
tabWidget->setCurrentIndex( 0 );
146+
stackedWidget->setCurrentIndex( 0 );
146147
} // QgsVectorLayerProperties ctor
147148

148149
void QgsVectorLayerProperties::loadRows()

0 commit comments

Comments
 (0)