KTextEditor

katescripteditor.cpp
1 /*
2  SPDX-FileCopyrightText: 2017 Dominik Haumann <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "katescripteditor.h"
8 
9 #include "kateglobal.h"
10 
11 #include <QApplication>
12 #include <QClipboard>
13 #include <QJSEngine>
14 
16 
17 KateScriptEditor::KateScriptEditor(QJSEngine *engine, QObject *parent)
18  : QObject(parent)
19  , m_engine(engine)
20 {
21 }
22 
23 QString KateScriptEditor::clipboardText() const
24 {
25  return QApplication::clipboard()->text();
26 }
27 
28 QStringList KateScriptEditor::clipboardHistory() const
29 {
31 }
32 
33 void KateScriptEditor::setClipboardText(const QString &text)
34 {
36 }
QString text(QClipboard::Mode mode) const const
KTextEditor::EditorPrivate One instance of this class is hold alive during a kate part session...
Definition: kateglobal.h:64
static KTextEditor::EditorPrivate * self()
Kate Part Internal stuff ;)
Definition: kateglobal.cpp:343
void copyToClipboard(const QString &text)
Copy text to clipboard an remember it in the history.
Definition: kateglobal.cpp:422
const QStringList & clipboardHistory() const
Clipboard history, filled with text we ever copied to clipboard via copyToClipboard.
Definition: kateglobal.h:355
QClipboard * clipboard()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Dec 3 2020 22:58:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.