Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KMuddy
Commits
825ab863
Commit
825ab863
authored
Jul 01, 2018
by
Tomas Mecir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make text copy work
parent
9f921639
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
libs/cconsole.cpp
libs/cconsole.cpp
+5
-2
No files found.
libs/cconsole.cpp
View file @
825ab863
...
...
@@ -22,6 +22,7 @@
#include "ctextchunk.h"
#include <QAbstractTextDocumentLayout>
#include <QApplication>
#include <QAction>
#include <QFontDatabase>
#include <QGraphicsItemGroup>
...
...
@@ -211,7 +212,6 @@ cConsole::~cConsole() {
delete
d
->
scrollText
;
delete
d
->
mainText
;
delete
d
->
text
;
// TODO
delete
d
;
}
...
...
@@ -364,7 +364,10 @@ void cConsole::expireNamedLinks (const QString &name) {
}
void
cConsole
::
addSelectionToClipboard
(
QClipboard
::
Mode
clipboardMode
)
{
// TODO
QString
selection
=
d
->
mainText
->
textCursor
().
selectedText
();
if
(
!
selection
.
size
())
return
;
selection
=
selection
.
replace
(
QChar
::
ParagraphSeparator
,
'\n'
);
QApplication
::
clipboard
()
->
setText
(
selection
,
clipboardMode
);
}
void
cConsole
::
lineUp
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment