Skip to content

Commit

Permalink
[composer] Improved fix for tab order in item widgets
Browse files Browse the repository at this point in the history
Setting the focus policy to strong for QgsCollapsibleGroupBoxes
in Qt designer allows for the tab order to be correctly set.
  • Loading branch information
nyalldawson committed Oct 20, 2014
1 parent 9dff7ab commit 447ec0f
Show file tree
Hide file tree
Showing 14 changed files with 214 additions and 16 deletions.
12 changes: 11 additions & 1 deletion src/ui/qgsatlascompositionwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
</item>
<item row="1" column="0" colspan="3">
<widget class="QScrollArea" name="scrollArea">
<property name="focusPolicy">
<enum>Qt::WheelFocus</enum>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
Expand All @@ -103,6 +106,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Configuration</string>
</property>
Expand Down Expand Up @@ -185,6 +191,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Output</string>
</property>
Expand Down Expand Up @@ -300,12 +309,13 @@
</customwidgets>
<tabstops>
<tabstop>mUseAtlasCheckBox</tabstop>
<tabstop>scrollArea</tabstop>
<tabstop>mConfigurationGroup</tabstop>
<tabstop>mAtlasCoverageLayerComboBox</tabstop>
<tabstop>mAtlasHideCoverageCheckBox</tabstop>
<tabstop>mAtlasFeatureFilterCheckBox</tabstop>
<tabstop>mAtlasFeatureFilterEdit</tabstop>
<tabstop>mAtlasFeatureFilterButton</tabstop>
<tabstop>mOutputGroup</tabstop>
<tabstop>mAtlasFilenamePatternEdit</tabstop>
<tabstop>mAtlasFilenameExpressionButton</tabstop>
<tabstop>mAtlasSingleFileCheckBox</tabstop>
Expand Down
37 changes: 26 additions & 11 deletions src/ui/qgscomposerarrowwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,7 @@
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<property name="margin">
<number>0</number>
</property>
<item>
Expand Down Expand Up @@ -56,12 +47,15 @@
<x>0</x>
<y>0</y>
<width>332</width>
<height>364</height>
<height>360</height>
</rect>
</property>
<layout class="QVBoxLayout" name="mainLayout">
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Main properties</string>
</property>
Expand All @@ -84,6 +78,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="mArrowMarkersGroupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Arrow markers</string>
</property>
Expand Down Expand Up @@ -279,8 +276,26 @@
<class>QgsColorButtonV2</class>
<extends>QToolButton</extends>
<header>qgscolorbuttonv2.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>scrollArea</tabstop>
<tabstop>groupBox</tabstop>
<tabstop>mLineStyleButton</tabstop>
<tabstop>mArrowMarkersGroupBox</tabstop>
<tabstop>mDefaultMarkerRadioButton</tabstop>
<tabstop>mNoMarkerRadioButton</tabstop>
<tabstop>mSvgMarkerRadioButton</tabstop>
<tabstop>mArrowHeadOutlineColorButton</tabstop>
<tabstop>mArrowHeadFillColorButton</tabstop>
<tabstop>mOutlineWidthSpinBox</tabstop>
<tabstop>mArrowHeadWidthSpinBox</tabstop>
<tabstop>mStartMarkerLineEdit</tabstop>
<tabstop>mStartMarkerToolButton</tabstop>
<tabstop>mEndMarkerLineEdit</tabstop>
<tabstop>mEndMarkerToolButton</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>
24 changes: 24 additions & 0 deletions src/ui/qgscomposerattributetablewidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
<layout class="QVBoxLayout" name="mainLayout">
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Main properties</string>
</property>
Expand Down Expand Up @@ -122,6 +125,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox_5">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Feature filtering</string>
</property>
Expand Down Expand Up @@ -227,6 +233,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox_6">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Appearance</string>
</property>
Expand Down Expand Up @@ -358,6 +367,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="mShowGridGroupCheckBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Show grid</string>
</property>
Expand Down Expand Up @@ -439,6 +451,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox_3">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Fonts and text styling</string>
</property>
Expand Down Expand Up @@ -623,6 +638,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="frameGroupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Frames</string>
</property>
Expand Down Expand Up @@ -697,6 +715,7 @@
<class>QgsColorButtonV2</class>
<extends>QToolButton</extends>
<header>qgscolorbuttonv2.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsMapLayerComboBox</class>
Expand All @@ -706,11 +725,13 @@
</customwidgets>
<tabstops>
<tabstop>scrollArea</tabstop>
<tabstop>groupBox</tabstop>
<tabstop>mSourceComboBox</tabstop>
<tabstop>mLayerComboBox</tabstop>
<tabstop>mRelationsComboBox</tabstop>
<tabstop>mRefreshPushButton</tabstop>
<tabstop>mAttributesPushButton</tabstop>
<tabstop>groupBox_5</tabstop>
<tabstop>mMaximumRowsSpinBox</tabstop>
<tabstop>mUniqueOnlyCheckBox</tabstop>
<tabstop>mShowOnlyVisibleFeaturesCheckBox</tabstop>
Expand All @@ -719,6 +740,7 @@
<tabstop>mFeatureFilterCheckBox</tabstop>
<tabstop>mFeatureFilterEdit</tabstop>
<tabstop>mFeatureFilterButton</tabstop>
<tabstop>groupBox_6</tabstop>
<tabstop>mDrawEmptyCheckBox</tabstop>
<tabstop>mMarginSpinBox</tabstop>
<tabstop>mHeaderModeComboBox</tabstop>
Expand All @@ -728,11 +750,13 @@
<tabstop>mShowGridGroupCheckBox</tabstop>
<tabstop>mGridStrokeWidthSpinBox</tabstop>
<tabstop>mGridColorButton</tabstop>
<tabstop>groupBox_3</tabstop>
<tabstop>mHeaderFontPushButton</tabstop>
<tabstop>mHeaderFontColorButton</tabstop>
<tabstop>mHeaderHAlignmentComboBox</tabstop>
<tabstop>mContentFontPushButton</tabstop>
<tabstop>mContentFontColorButton</tabstop>
<tabstop>frameGroupBox</tabstop>
<tabstop>mResizeModeComboBox</tabstop>
<tabstop>mAddFramePushButton</tabstop>
<tabstop>mEmptyFrameCheckBox</tabstop>
Expand Down
8 changes: 8 additions & 0 deletions src/ui/qgscomposerhtmlwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
<layout class="QVBoxLayout" name="mainLayout">
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>HTML Source</string>
</property>
Expand Down Expand Up @@ -130,6 +133,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="frameGroupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Frames</string>
</property>
Expand Down Expand Up @@ -286,6 +292,7 @@
</customwidgets>
<tabstops>
<tabstop>scrollArea</tabstop>
<tabstop>groupBox</tabstop>
<tabstop>mRadioUrlSource</tabstop>
<tabstop>mUrlLineEdit</tabstop>
<tabstop>mFileToolButton</tabstop>
Expand All @@ -294,6 +301,7 @@
<tabstop>mInsertExpressionButton</tabstop>
<tabstop>mEvaluateExpressionsCheckbox</tabstop>
<tabstop>mReloadPushButton</tabstop>
<tabstop>frameGroupBox</tabstop>
<tabstop>mResizeModeComboBox</tabstop>
<tabstop>mAddFramePushButton</tabstop>
<tabstop>mEmptyFrameCheckBox</tabstop>
Expand Down
17 changes: 17 additions & 0 deletions src/ui/qgscomposeritemwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
</property>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="mGeneralOptionsGroupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Position and size</string>
</property>
Expand Down Expand Up @@ -308,6 +311,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="mTransformsGroupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Rotation</string>
</property>
Expand Down Expand Up @@ -537,6 +543,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Item ID</string>
</property>
Expand All @@ -562,6 +571,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="groupRendering">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Rendering</string>
</property>
Expand Down Expand Up @@ -683,6 +695,7 @@
<class>QgsColorButtonV2</class>
<extends>QToolButton</extends>
<header>qgscolorbuttonv2.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsPenJoinStyleComboBox</class>
Expand All @@ -696,6 +709,7 @@
</customwidget>
</customwidgets>
<tabstops>
<tabstop>mGeneralOptionsGroupBox</tabstop>
<tabstop>mPageSpinBox</tabstop>
<tabstop>mXPosSpin</tabstop>
<tabstop>mXPositionDDBtn</tabstop>
Expand All @@ -714,6 +728,7 @@
<tabstop>mLowerLeftCheckBox</tabstop>
<tabstop>mLowerMiddleCheckBox</tabstop>
<tabstop>mLowerRightCheckBox</tabstop>
<tabstop>mTransformsGroupBox</tabstop>
<tabstop>mItemRotationSpinBox</tabstop>
<tabstop>mItemRotationDDBtn</tabstop>
<tabstop>mFrameGroupBox</tabstop>
Expand All @@ -722,7 +737,9 @@
<tabstop>mFrameJoinStyleCombo</tabstop>
<tabstop>mBackgroundGroupBox</tabstop>
<tabstop>mBackgroundColorButton</tabstop>
<tabstop>groupBox</tabstop>
<tabstop>mItemIdLineEdit</tabstop>
<tabstop>groupRendering</tabstop>
<tabstop>mBlendModeCombo</tabstop>
<tabstop>mBlendModeDDBtn</tabstop>
<tabstop>mTransparencySlider</tabstop>
Expand Down
9 changes: 9 additions & 0 deletions src/ui/qgscomposerlabelwidgetbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<layout class="QVBoxLayout" name="mainLayout">
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="mTextGroupBox">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Main properties</string>
</property>
Expand Down Expand Up @@ -98,6 +101,9 @@
</item>
<item>
<widget class="QgsCollapsibleGroupBoxBasic" name="mAppearanceGroup">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
<property name="title">
<string>Appearance</string>
</property>
Expand Down Expand Up @@ -313,13 +319,16 @@
<class>QgsColorButtonV2</class>
<extends>QToolButton</extends>
<header>qgscolorbuttonv2.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>scrollArea</tabstop>
<tabstop>mTextGroupBox</tabstop>
<tabstop>mTextEdit</tabstop>
<tabstop>mHtmlCheckBox</tabstop>
<tabstop>mInsertExpressionButton</tabstop>
<tabstop>mAppearanceGroup</tabstop>
<tabstop>mFontButton</tabstop>
<tabstop>mFontColorButton</tabstop>
<tabstop>mMarginDoubleSpinBox</tabstop>
Expand Down
Loading

0 comments on commit 447ec0f

Please sign in to comment.