Skip to content
Permalink
Browse files
Set minimum width for composition and item properties panels in composer
  • Loading branch information
dakcarto committed Mar 3, 2013
1 parent 511177c commit 48bd860b93ef14cedfbe3e20ed6d9d8e56cc3dba
@@ -281,12 +281,16 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
mComposition->setParent( mView );
mView->setComposition( mComposition );

int minDockWidth( 335 );

setTabPosition( Qt::AllDockWidgetAreas, QTabWidget::North );
mGeneralDock = new QDockWidget( tr( "Composition" ), this );
mGeneralDock->setObjectName( "CompositionDock" );
mGeneralDock->setMinimumWidth( minDockWidth );
mPanelMenu->addAction( mGeneralDock->toggleViewAction() );
mItemDock = new QDockWidget( tr( "Item Properties" ), this );
mItemDock->setObjectName( "ItemDock" );
mItemDock->setMinimumWidth( minDockWidth );
mPanelMenu->addAction( mItemDock->toggleViewAction() );
mUndoDock = new QDockWidget( tr( "Command history" ), this );
mUndoDock->setObjectName( "CommandDock" );
@@ -73,6 +73,9 @@ QgsComposerMapWidget::QgsComposerMapWidget( QgsComposerMap* composerMap ): QWidg
mFrameStyleComboBox->insertItem( 0, tr( "No frame" ) );
mFrameStyleComboBox->insertItem( 1, tr( "Zebra" ) );

connect( mGridCheckBox, SIGNAL( toggled( bool ) ),
mDrawAnnotationCheckableGroupBox, SLOT( setEnabled( bool ) ) );

if ( composerMap )
{
connect( composerMap, SIGNAL( itemChanged() ), this, SLOT( setGuiElementValues() ) );
@@ -54,9 +54,9 @@
<property name="geometry">
<rect>
<x>0</x>
<y>-215</y>
<width>440</width>
<height>1303</height>
<y>0</y>
<width>439</width>
<height>1277</height>
</rect>
</property>
<property name="sizePolicy">
@@ -446,7 +446,7 @@
<item row="7" column="0" colspan="2">
<widget class="QgsCollapsibleGroupBoxBasic" name="mDrawAnnotationCheckableGroupBox">
<property name="enabled">
<bool>true</bool>
<bool>false</bool>
</property>
<property name="title">
<string>Draw coordinates</string>
@@ -59,11 +59,8 @@
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
</widget>
</item>
@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>391</width>
<width>294</width>
<height>787</height>
</rect>
</property>
@@ -64,8 +64,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>389</width>
<height>765</height>
<width>292</width>
<height>764</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">

0 comments on commit 48bd860

Please sign in to comment.