Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 10228 → Rev 10229

/trunk/Scribus/scribus/guidesdelegate.cpp
11,7 → 11,8
 
 
GuidesDelegate::GuidesDelegate(QObject *parent)
: QItemDelegate(parent)
: QItemDelegate(parent),
m_docUnitDecimals(0)
{
}
 
21,6 → 22,7
{
QDoubleSpinBox *editor = new QDoubleSpinBox(parent);
editor->setRange(0, 1000);
editor->setDecimals(m_docUnitDecimals);
return editor;
}
 
48,3 → 50,8
{
editor->setGeometry(option.rect);
}
 
void GuidesDelegate::unitChange(int docUnitDecimals)
{
m_docUnitDecimals = docUnitDecimals;
}