diff --git a/examples/piechartdrilldown/drilldownslice.cpp b/examples/piechartdrilldown/drilldownslice.cpp index 6b8168c..bd7bb7e 100644 --- a/examples/piechartdrilldown/drilldownslice.cpp +++ b/examples/piechartdrilldown/drilldownslice.cpp @@ -28,6 +28,7 @@ DrilldownSlice::DrilldownSlice(qreal value, QString prefix, QSeries* drilldownSe { setValue(value); updateLabel(); + setLabelFont(QFont("Arial", 8)); connect(this, SIGNAL(changed()), this, SLOT(updateLabel())); connect(this, SIGNAL(hoverEnter()), this, SLOT(showHighlight())); connect(this, SIGNAL(hoverLeave()), this, SLOT(hideHighlight())); diff --git a/examples/piechartdrilldown/main.cpp b/examples/piechartdrilldown/main.cpp index 0211dd9..c20e563 100644 --- a/examples/piechartdrilldown/main.cpp +++ b/examples/piechartdrilldown/main.cpp @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) QList months; months << "Jan" << "Feb" << "Mar" << "Apr" << "May" << "Jun" << "Jul" << "Aug" << "Sep" << "Oct" << "Nov" << "Dec"; QList names; - names << "Jane" << "John" << "Axel" << "Mary" << "Samantha" << "Bob"; + names << "Jane" << "John" << "Axel" << "Mary" << "Susan" << "Bob"; foreach (QString name, names) { QPieSeries* series = new QPieSeries(&window); @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) QChartView* chartView = new QChartView(chart); chartView->setRenderHint(QPainter::Antialiasing); window.setCentralWidget(chartView); - window.resize(800, 600); + window.resize(800, 500); window.show(); return a.exec();