[Uml-devel] KDE/kdesdk/umbrello/umbrello/dialogs
Ralf Habacker
ralf.habacker at gmail.com
Sat Mar 24 10:04:25 UTC 2012
SVN commit 1286931 by habacker:
Collected uml scene related style settings in UMLViewDialog.
This follows the design pattern for writing back settings of
other UMLViewDialog pages.
Added note.
fixed
M +9 -0 umlviewdialog.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/umlviewdialog.cpp #1286930:1286931
@@ -180,6 +180,15 @@
{
uDebug() << "setting colors ";
m_pStylePage->updateUMLWidget();
+ /* FIXME: updateUMLWidget uses UMLScene::setOptions() to set back m_options
+ * into UMLScene (as also done for m_pageDisplayItem below) so theoretical
+ * the following code would be obsolate.
+ * The problems is that setOptions() do not signal UMLScene that options has
+ * been changed. There is a signal UMLscene::sigColorChanged(), but this signal
+ * is limited to color only changes. There is no common way to say UMLScene, that
+ * one or all options has been changed.
+ */
+ m_pView->umlScene()->setLineWidth( m_options.uiState.lineWidth );
m_pView->umlScene()->setUseFillColor( m_options.uiState.useFillColor );
m_pView->umlScene()->setLineColor( m_options.uiState.lineColor );
m_pView->umlScene()->setFillColor( m_options.uiState.fillColor );
More information about the umbrello-devel
mailing list