38
38
QGroupBox *group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this );
40
40
// add width/height-input:
41
m_widthLabel = new QLabel( i18n( "Width:" ), group );
42
m_width = new KoUnitDoubleSpinBox( group, 0.0, 1000.0, 0.5, 100.0, KoUnit::U_MM );
43
m_heightLabel = new QLabel( i18n( "Height:" ), group );
44
m_height = new KoUnitDoubleSpinBox( group, 0.0, 1000.0, 0.5, 100.0, KoUnit::U_MM );
41
new QLabel( i18n( "Width:" ), group );
42
m_width = new KDoubleSpinBox( 0.0, 1000.0, 0.5, 10.0, 2, group );
43
//m_width = new KoBuggyUnitDoubleSpinBox( group, 0.0, 1000.0, 0.5, 100.0, KoUnit::U_MM );
44
new QLabel( i18n( "Height:" ), group );
45
m_height = new KDoubleSpinBox( 0.0, 1000.0, 0.5, 10.0, 2, group );
46
//m_height = new KoBuggyUnitDoubleSpinBox( group, 0.0, 1000.0, 0.5, 100.0, KoUnit::U_MM );
96
98
VSinusTool::VSinusOptionsWidget::refreshUnit ()
98
m_width->setUnit( m_part->unit() );
99
m_height->setUnit( m_part->unit() );
100
m_width->setSuffix( KoUnit::unitName( m_part->unit() ) );
101
m_height->setSuffix( KoUnit::unitName( m_part->unit() ) );
102
104
VSinusTool::VSinusTool( KarbonPart *part )
130
KoUnit::ptFromUnit( m_optionsWidget->width(), view()->part()->unit() ),
131
KoUnit::ptFromUnit( m_optionsWidget->height(), view()->part()->unit() ),
132
KoUnit::fromUserValue( m_optionsWidget->width(), view()->part()->unit() ),
133
KoUnit::fromUserValue( m_optionsWidget->height(), view()->part()->unit() ),
132
134
m_optionsWidget->periods() );