[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Fri Jun 24 20:04:44 CEST 2005
SVN commit 428621 by staikos:
cleanup, and dump size_boost for now. It's completely inconsistent in Kst
and doesn't make a whole lot of sense inside 2dplot. Needs to be
implemented differently.
M +5 -13 main.cpp
--- trunk/extragear/graphics/kst/kst/main.cpp #428620:428621
@@ -189,28 +189,20 @@
static void CreatePlots(InType &in, KstTopLevelViewPtr tlv) {
KstApp *kst = KstApp::inst();
QString creatingPlots = i18n("Creating plots");
- Kst2DPlotPtr plot;
- int i_plot;
- int size_boost;
- int count;
- int handled;
kst->slotUpdateProgress( 0, 0, creatingPlots );
- count = in.n_plots;
- handled = 0;
+ int count = in.n_plots;
+ int handled = 0;
- for (i_plot=0; i_plot < in.n_plots; i_plot++) {
- plot = new Kst2DPlot(KST::suggestPlotName());
- size_boost = (in.n_rows + in.n_cols)/2-1;
- size_boost = size_boost*12/2;
- plot->initFonts(QFont::QFont(), size_boost);
+ for (int i_plot = 0; i_plot < in.n_plots; ++i_plot) {
+ Kst2DPlotPtr plot = new Kst2DPlot(KST::suggestPlotName());
tlv->appendChild(plot.data());
plot->resizeFromAspect(double(i_plot%in.n_cols)/double(in.n_cols),
double(i_plot/in.n_cols)/double(in.n_rows),
1.0/double(in.n_cols), 1.0/double(in.n_rows));
- handled++;
+ ++handled;
kst->slotUpdateProgress( count, handled, creatingPlots );
}
More information about the Kst
mailing list