[Kst] [Bug 123579] Unable to create view objects
Andrew Walker
arwalker at sumusltd.com
Tue Mar 14 22:11:30 CET 2006
------- 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=123579
arwalker sumusltd com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From arwalker sumusltd com 2006-03-14 22:11 -------
SVN commit 518660 by arwalker:
BUG:123579 Ensure the _activeHandler is set for newly created windows so that view objects can be created.
M +6 -0 kst.cpp
M +2 -0 kst.h
M +1 -1 ksttoplevelview.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kst.cpp #518659:518660
@ -1898,6 +1898,7 @
}
_viewMode = mode;
+ _createType = createType;
}
@ -1906,6 +1907,11 @
}
+QString KstApp::currentCreateType() {
+ return _createType;
+}
+
+
KstApp::KstGraphicType KstApp::getGraphicType() {
return _graphicType;
}
--- trunk/extragear/graphics/kst/src/libkstapp/kst.h #518659:518660
@ -133,6 +133,7 @
KstGraphicType getGraphicType();
KstTopLevelView::ViewMode currentViewMode();
+ QString currentCreateType();
KstTopLevelViewPtr activeView();
Kst2DPlotMap* plotHolderWhileOpeningDocument();
@ -570,6 +571,7 @
KstGraphicType _graphicType;
KstTopLevelView::ViewMode _viewMode;
+ QString _createType;
QGuardedPtr<KstDebugNotifier> _debugNotifier;
QGuardedPtr<KstDataNotifier> _dataNotifier;
};
--- trunk/extragear/graphics/kst/src/libkstapp/ksttoplevelview.cpp #518659:518660
@ -73,7 +73,7 @
_mouseGrabbed = false;
_activeHandler = 0L;
_mode = Unknown;
- setViewMode(KstApp::inst()->currentViewMode());
+ setViewMode(KstApp::inst()->currentViewMode(), KstApp::inst()->currentCreateType());
}
More information about the Kst
mailing list