mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
interfaces: drop templates selection feature
could be implemented with %{cursor} as begining and %{selection} as end but meh Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7cbc12ee04
commit
ae8fd38e1b
2 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,7 @@ using namespace KTextEditor;
|
|||
|
||||
bool TemplateInterface::insertTemplateText(const Cursor& insertPosition, const QString &templateString, const QMap<QString, QString> &initialValues)
|
||||
{
|
||||
// NOTE: THE IMPLEMENTATION WILL HANDLE cursor AND selection
|
||||
// NOTE: THE IMPLEMENTATION WILL HANDLE %{cursor}
|
||||
|
||||
QDateTime datetime = QDateTime::currentDateTime();
|
||||
QDate date = datetime.date();
|
||||
|
|
|
@ -71,7 +71,6 @@ class KTEXTEDITOR_EXPORT TemplateInterface //should be named AbstractTemplateInt
|
|||
* - month: current month
|
||||
* - day: current day
|
||||
* - hostname: hostname of the computer
|
||||
* - selection: The implementation should set this to the selected text, if any
|
||||
* - cursor: The implementation should set the cursor position there, if any.
|
||||
*
|
||||
* If the editor supports some kind of smart indentation, the inserted code
|
||||
|
|
Loading…
Add table
Reference in a new issue