r19587 by jghali - #12684: TAB key doesn't record dropshadow inputs in PP
scribus-commit
scribus-commit at lists.scribus.net
Wed Oct 15 20:00:01 UTC 2014
Author: jghali
Date: Wed Oct 15 20:00:01 2014
New Revision: 19587
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19587
Log:
#12684: TAB key doesn't record dropshadow inputs in PP
Modified:
trunk/Scribus/scribus/ui/proptree.cpp
Modified: trunk/Scribus/scribus/ui/proptree.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19587&path=/trunk/Scribus/scribus/ui/proptree.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/proptree.cpp (original)
+++ trunk/Scribus/scribus/ui/proptree.cpp Wed Oct 15 20:00:01 2014
@@ -206,6 +206,7 @@
if (item->m_type == PropTreeItem::IntSpinBox)
{
ScrSpinBox *spinBox = static_cast<ScrSpinBox*>(editor);
+ spinBox->interpretText(); // #12684: interpretText() is explicitly called in Qt spinboxdelegate example
QString value = QString("%1 %2").arg(qRound(spinBox->value())).arg(unitGetSuffixFromIndex(item->m_unit));
int val = qRound(spinBox->value());
model->setData(index, val, Qt::UserRole);
@@ -214,6 +215,7 @@
else if (item->m_type == PropTreeItem::DoubleSpinBox)
{
ScrSpinBox *spinBox = static_cast<ScrSpinBox*>(editor);
+ spinBox->interpretText(); // #12684: interpretText() is explicitly called in Qt spinboxdelegate example
QString value = QString("%1 %2").arg(spinBox->value(), 0, 'f', item->m_decimals).arg(unitGetSuffixFromIndex(item->m_unit));
double val = spinBox->value();
model->setData(index, val, Qt::UserRole);
More information about the scribus-commit
mailing list