[Kst] [Bug 94346] More descriptive automatic plot names
Andrew Walker
arwalker at sumusltd.com
Thu Mar 10 20:27:04 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=94346
arwalker sumusltd com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From arwalker sumusltd com 2005-03-10 20:27 -------
CVS commit by arwalker:
When run from the command line, if curves are created one per plot, then label the plots P<n>-<y> where <n> is some integer (as before) and <y> is the name of the y-vector in some simple curve. All other cases remain as before.
CCMAIL: 94346-done bugs kde org
M +4 -4 main.cpp 1.103
--- kdeextragear-2/kst/kst/main.cpp #1.102:1.103
@ -555,4 +555,5 @ int main(int argc, char *argv[]) {
if (in.sep_plots) {
+ plot->setTagName(plot->tagName() + QString("-") + yvector->tagName());
i_plot++;
if (i_plot < in.n_plots) {
@ -656,6 +657,5 @ int main(int argc, char *argv[]) {
hs = new KstHistogram(KST::suggestHistogramName(yvector->field()),
- KstVectorPtr(yvector), min, max, N,
- KST_HS_NUMBER);
+ KstVectorPtr(yvector), min, max, N, KST_HS_NUMBER);
KstVCurvePtr vc = new KstVCurve(KST::suggestCurveName(hs->tagName(), true),
hs->vX(), hs->vY(),
@ -743,5 +743,5 @ int main(int argc, char *argv[]) {
kst->showQuickStartDialog();
}
- for (int i=0; i<strErrors.size(); i++) {
+ for (size_t i=0; i<strErrors.size(); i++) {
KstDebug::self()->log(strErrors[i], KstDebug::Warning);
}
More information about the Kst
mailing list