[Bug 75340] Code snippets delimiter configuration has no effect
Jens Dagerbo
jens.dagerbo at swipnet.se
Fri May 14 23:34:02 UTC 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=75340
jens.dagerbo swipnet se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
------- Additional Comments From jens.dagerbo swipnet se 2004-05-14 23:33 -------
CVS commit by dagerbo:
Applied Robert Gruber's patch. Thanks!
CCMAIL: 75340-done bugs kde org
M +6 -6 snippet_widget.cpp 1.6
M +1 -1 snippet_widget.h 1.3
--- kdevelop/parts/snippet/snippet_widget.cpp #1.5:1.6
@ -148,5 +148,5 @ void SnippetWidget::slotEdit()
/*!
On a DoubleClick the clicked snippet gets inserted at the
- aktual cursor position of the active view
+ current cursor position of the active view
*/
void SnippetWidget::slotListDblClicked(QListViewItem * item, const QPoint &, int)
@ -167,6 +167,6 @ void SnippetWidget::slotListDblClicked(Q
//OK, now we've got the clicked snippet
- //process variables if any and then insert into the active view
- insertIntoActivView( parseText(pSnippet->getText()) );
+ //process variables if any, then insert into the active view
+ insertIntoActiveView( parseText(pSnippet->getText(), _SnippetConfig.getDelimiter()) );
}
@ -190,8 +190,8 @ SnippetItem * SnippetWidget::pFindByName
/*!
- \fn SnippetWidget::insertIntoActivView(QString text)
+ \fn SnippetWidget::insertIntoActiveView(QString text)
Inserts the parameter text into the activ view
*/
-void SnippetWidget::insertIntoActivView(QString text)
+void SnippetWidget::insertIntoActiveView(QString text)
{
//get the interfaces for the KTexteditor parts
@ -371,5 +371,5 @ void SnippetWidget::showPopupMenu( QList
-// fn SnippetWidget::parseText(QString text)
+// fn SnippetWidget::parseText(QString text, QString del)
/*!
This function is used to parse the given QString for variables. If found the user will be prompted
--- kdevelop/parts/snippet/snippet_widget.h #1.2:1.3
@ -59,5 +59,5 @ protected:
private:
- void insertIntoActivView(QString text);
+ void insertIntoActiveView(QString text);
QString parseText(QString text, QString del="$");
bool showMultiVarDialog(QMap<QString, QString> * map, QMap<QString, QString> * mapSave,
More information about the KDevelop-devel
mailing list