From kde-commits Thu Sep 30 22:42:40 2010 From: Nicolas Brisset Date: Thu, 30 Sep 2010 22:42:40 +0000 To: kde-commits Subject: branches/work/kst/portto4/kst/src/libkstapp Message-Id: <20100930224240.A38C5AC891 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128588659127921 SVN commit 1181406 by brisset: Show the "Contents" by default when opening the dialog. I'm not sure that's the best place to do it, though... Has te be checked when implementing the changes for the new plot dialog. CCBUG: 252289 M +5 -4 plotitemdialog.cpp --- branches/work/kst/portto4/kst/src/libkstapp/plotitemdialog.cpp #1181405:1181406 @@ -47,10 +47,10 @@ _contentTab = new ContentTab(this); connect(_contentTab, SIGNAL(apply()), this, SLOT(contentChanged())); - DialogPage *page = new DialogPage(this); - page->setPageTitle(tr("Contents")); - page->addDialogTab(_contentTab); - addDialogPage(page, true); + DialogPage *contentsPage = new DialogPage(this); + contentsPage->setPageTitle(tr("Contents")); + contentsPage->addDialogTab(_contentTab); + addDialogPage(contentsPage, true); _labelTab = new LabelTab(_plotItem, this); _topLabelTab = new OverrideLabelTab(tr("Top Font"), this); @@ -137,6 +137,7 @@ addMultipleEditOption(plot->plotName(), plot->descriptionTip(), plot->shortName()); } + selectDialogPage(contentsPage); _saveAsDefault->show(); connect(this, SIGNAL(editMultipleMode()), this, SLOT(editMultiple()));