[prev in list] [next in list] [prev in thread] [next in thread]
List: quanta-devel
Subject: [quanta-devel] [patch] fix KTextEditor::MarkInterfaceExtension setup
From: Panard <panard () inzenet ! org>
Date: 2005-05-22 0:30:58
Message-ID: 200505220231.07063.panard () inzenet ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Hi,
here is a small patch to prevent a crash at startup when the ktexteditor
doesn't implement the MarkInterfaceExtension (like kyzis ;), I've just
commited an empty MarkInterfaceExtension 10 min ago)
Regards,
Panard
--
HomePage: http://dev.inzenet.org/~panard/
Yzis : http://www.yzis.org
Qomics : http://dev.inzenet.org/~panard/qomics
Smileys : http://smileys.inzenet.org
["quanta-markinterfaceextension-load.h" (text/x-diff)]
Index: quanta/src/document.cpp
===================================================================
--- quanta/src/document.cpp (revision 416560)
+++ quanta/src/document.cpp (working copy)
@@ -176,11 +176,10 @@
iface->setPixmap(KTextEditor::MarkInterface::markType05, SmallIcon("debug_currentline"));
iface->setDescription(KTextEditor::MarkInterface::markType08, i18n("Annotation"));
iface->setPixmap(KTextEditor::MarkInterface::markType08, SmallIcon("stamp"));
+ // This is allows user to set breakpoints and bookmarks by clicking or rightclicking on the icon border.
+ iface->setMarksUserChangable(KTextEditor::MarkInterface::markType01 + KTextEditor::MarkInterface::markType02);
}
- // This is allows user to set breakpoints and bookmarks by clicking or rightclicking on the icon border.
- iface->setMarksUserChangable(KTextEditor::MarkInterface::markType01 + KTextEditor::MarkInterface::markType02);
-
tempFile = 0;
m_tempFileName = QString::null;
dtdName = Project::ref()->defaultDTD();
[Attachment #8 (application/pgp-signature)]
_______________________________________________
quanta-devel mailing list
quanta-devel@kde.org
https://mail.kde.org/mailman/listinfo/quanta-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic