/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; |
} |