[Kst] kdeextragear-2/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Wed Aug 25 00:21:34 CEST 2004
CVS commit by rchern:
When setting the window caption, also set the tagName of the topLevelView
CCMAIL: 87978-done at bugs.kde.org
M +2 -0 ksttoplevelview.cpp 1.74
M +6 -1 kstviewwindow.cpp 1.37
M +1 -0 kstviewwindow.h 1.24
--- kdeextragear-2/kst/kst/ksttoplevelview.cpp #1.73:1.74
@@ -33,4 +33,5 @@ KstTopLevelView::KstTopLevelView(QWidget
: KstViewObject("KstTopLevelView"), _w(new KstViewWidget(this, parent, name, w)) {
_onGrid = true;
+ setTagName(name);
commonConstructor();
}
--- kdeextragear-2/kst/kst/kstviewwindow.cpp #1.36:1.37
@@ -34,5 +34,5 @@ KstViewWindow::KstViewWindow(QWidget *pa
: KMdiChildView(QString::null, parent, name) {
commonConstructor();
- _view = new KstTopLevelView(this);
+ _view = new KstTopLevelView(this, name);
}
@@ -250,4 +250,9 @@ KstTopLevelViewPtr KstViewWindow::view()
}
+void KstViewWindow::setCaption(const QString& szCaption) {
+ KMdiChildView::setCaption(szCaption);
+ _view->setTagName(szCaption);
+}
+
#include "kstviewwindow.moc"
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/kstviewwindow.h #1.23:1.24
@@ -45,4 +45,5 @@ class KstViewWindow : public KMdiChildVi
void save(QTextStream& ts);
KstTopLevelViewPtr view() const;
+ virtual void setCaption(const QString& szCaption);
protected:
More information about the Kst
mailing list