Esempio n. 1
0
QgsLayoutComboBox::QgsLayoutComboBox( QWidget *parent, QgsLayoutManager *manager )
  : QComboBox( parent )
{
  setLayoutManager( manager );

  connect( this, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, &QgsLayoutComboBox::indexChanged );
}
/*-------------------------------------------------------------------------*\
 -  private                                                                 -
\*-------------------------------------------------------------------------*/
void TextDomArea::onCreate(const TextDomArea *source)
{
	if(source == NULL) return;
		
    FixedHeightLayoutManagerRefPtr Manager= FixedHeightLayoutManager::create();
	setLayoutManager(Manager);
	getLayoutManager()->calculateLineHeight();
}