summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@digia.com>2012-06-25 13:48:41 +0300
committerMichal Klocek <michal.klocek@digia.com>2012-06-26 14:44:35 +0300
commitd9bcc3bd9d82e9a6422a0a418a49c28de81aa316 (patch)
treef9028805d350b0378c5a58e1ce0c6c0eff391a39 /examples
parent94e7c38623e4543ae1d5e19c35ac56a44fa78c67 (diff)
Refactors layout managment
* adds chartlayout class * adds lagendlayout class * refactors handling to setGeometry instead of resize * implmements all TODOs from presenter and qchart * refactors layout handling in legend * adds QGraphicsLayoutItem sublcassing
Diffstat (limited to 'examples')
-rw-r--r--examples/legend/mainwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/legend/mainwidget.cpp b/examples/legend/mainwidget.cpp
index 52f8b9aa..cb2ddb5f 100644
--- a/examples/legend/mainwidget.cpp
+++ b/examples/legend/mainwidget.cpp
@@ -252,10 +252,10 @@ void MainWidget::fontSizeChanged()
void MainWidget::updateLegendLayout()
{
//![4]
- m_chart->legend()->setGeometry(m_legendPosX->value()
+ m_chart->legend()->setGeometry(QRectF(m_legendPosX->value()
,m_legendPosY->value()
,m_legendWidth->value()
- ,m_legendHeight->value());
+ ,m_legendHeight->value()));
m_chart->legend()->update();
//![4]
}