[Kst] [Bug 87002] File->Close does not work as expected,
and File->New Window is located strangely
Andrew Walker
arwalker at sumusltd.com
Tue Aug 17 18:28:40 CEST 2004
------- 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=87002
arwalker sumusltd com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From arwalker sumusltd com 2004-08-17 18:28 -------
CVS commit by arwalker:
Moved the File->New Window... menu item to Window->New... which is the more logical location for it. Fix for 87002.
CCMAIL: 87002-done bugs kde org
M +9 -2 kst.cpp 1.211
M +1 -0 kst.h 1.99
--- kdeextragear-2/kst/kst/kst.cpp #1.210:1.211
@ -208,7 +208,15 @ KstApp::KstApp(QWidget *parent, const ch
menuBar()->insertItem(i18n("&Window"), windowMenu());
}
+ QObject::connect( windowMenu(), SIGNAL(aboutToShow()), this, SLOT(addNewWindowMenu()) );
}
}
+
+void KstApp::addNewWindowMenu() {
+ int id = windowMenu()->insertItem(i18n("&New..."), this, SLOT(slotFileNewWindow()), 0, -1, 0);
+ windowMenu()->setWhatsThis(id, i18n("Create a new plot window."));
+}
+
+
void KstApp::checkFontPresent(const QString& font) {
QFont f(font);
@ -273,10 +281,9 @ KstApp::~KstApp() {
void KstApp::initActions() {
-
+#if 0
fileNewWindow = new KAction(i18n("New &Window..."), 0, 0,
this, SLOT(slotFileNewWindow()),
actionCollection(),"file_new_window");
-#if 0
fileOpenNew = KStdAction::openNew(this, SLOT(slotFileNew()), actionCollection());
fileOpenNew->setWhatsThis(i18n("Open Kst plot file."));
--- kdeextragear-2/kst/kst/kst.h #1.98:1.99
@ -170,4 +170,5 @ class KstApp : public KMdiMainFrm {
void slotSettingsChanged();
+ void addNewWindowMenu();
public slots:
More information about the Kst
mailing list