Skip to content

Commit

Permalink
Fix column resize in fields grid, add sorting, reduce margins
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Apr 1, 2013
1 parent 5c028f8 commit 9b0c455
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsfieldsproperties.cpp
Expand Up @@ -318,8 +318,7 @@ void QgsFieldsProperties::loadRows()
mAttributesList->setHorizontalHeaderItem( attrWFSCol, new QTableWidgetItem( "WFS" ) );
mAttributesList->setHorizontalHeaderItem( attrAliasCol, new QTableWidgetItem( tr( "Alias" ) ) );

mAttributesList->horizontalHeader()->setResizeMode( 1, QHeaderView::Stretch );
mAttributesList->horizontalHeader()->setResizeMode( 7, QHeaderView::Stretch );
mAttributesList->setSortingEnabled( true );
mAttributesList->setSelectionBehavior( QAbstractItemView::SelectRows );
mAttributesList->setSelectionMode( QAbstractItemView::ExtendedSelection );
mAttributesList->verticalHeader()->hide();
Expand Down
16 changes: 10 additions & 6 deletions src/ui/qgsvectorlayerpropertiesbase.ui
Expand Up @@ -257,6 +257,9 @@
<string>Fields</string>
</attribute>
<layout class="QGridLayout" name="mFieldsGridLayout">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QFrame" name="mFieldsFrame">
<property name="frameShape">
Expand Down Expand Up @@ -297,8 +300,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>906</width>
<height>720</height>
<width>914</width>
<height>746</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_3">
Expand Down Expand Up @@ -796,8 +799,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>866</width>
<height>688</height>
<width>896</width>
<height>728</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down Expand Up @@ -908,8 +911,8 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
<width>866</width>
<height>688</height>
<width>896</width>
<height>728</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_17">
Expand Down Expand Up @@ -1017,6 +1020,7 @@ p, li { white-space: pre-wrap; }
</tabstops>
<resources>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
</resources>
<connections>
<connection>
Expand Down

0 comments on commit 9b0c455

Please sign in to comment.