Initial start of variables dialog
ClosedPublic

Authored by dhaumann on Sep 10 2019, 10:02 AM.

Details

Summary

This patch adds one public function to KTextEditor::Editor:

void addVariableExpansion(const QVector<QWidget*>& widgets,
                          const QStringList& variables = QStringList()) const;

Once called for QLineEdits (QTextEdit support still pending),
QLineEdits will get an action that opens an variable expansion
dialog that allows the user to insert variables from a list
view.

What is still missing:

  • add support for QTextEdits
  • use for backup prefix/suffix (bug 403583)
  • use in External Tools plugin (bug 299248)
Test Plan

make && make test

Diff Detail

Repository
R39 KTextEditor
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dhaumann created this revision.Sep 10 2019, 10:02 AM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptSep 10 2019, 10:02 AM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
dhaumann requested review of this revision.Sep 10 2019, 10:02 AM
This revision is now accepted and ready to land.Sep 10 2019, 10:05 AM
This revision was automatically updated to reflect the committed changes.

Upsa, file missing :P