Skip to content
Permalink
Browse files

GUI (Vector layer properties) QSplitter for fields properties tab

  • Loading branch information
m-kuhn committed May 13, 2013
1 parent e7f8326 commit 858a1fbb0d5fd6ef700195b558fdc124269c43a8
Showing with 253 additions and 237 deletions.
  1. +7 −0 src/app/qgsfieldsproperties.cpp
  2. +2 −0 src/app/qgsfieldsproperties.h
  3. +244 −237 src/ui/qgsfieldspropertiesbase.ui
@@ -166,6 +166,8 @@ QgsFieldsProperties::QgsFieldsProperties( QgsVectorLayer *layer, QWidget* parent
setupUi( this );
setupEditTypes();

mSplitter->restoreState( QSettings().value( "/Windows/VectorLayerProperties/FieldsProperties/SplitState" ).toByteArray() );

// Init as hidden by default, it will be enabled if project is set to
mAttributeEditorOptionsWidget->setVisible( false );

@@ -206,6 +208,11 @@ QgsFieldsProperties::QgsFieldsProperties( QgsVectorLayer *layer, QWidget* parent
updateButtons();
}

QgsFieldsProperties::~QgsFieldsProperties()
{
QSettings().setValue( "/Windows/VectorLayerProperties/FieldsProperties/SplitState", mSplitter->saveState() );
}

void QgsFieldsProperties::init()
{
loadRows();
@@ -63,6 +63,8 @@ class QgsFieldsProperties : public QWidget, private Ui_QgsFieldsPropertiesBase
public:
QgsFieldsProperties( QgsVectorLayer *layer, QWidget* parent = 0 );

~QgsFieldsProperties();

/**Adds an attribute to the table (but does not commit it yet)
@param field the field to add
@return false in case of a name conflict, true in case of success */

0 comments on commit 858a1fb

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