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
PIM
Kleopatra
Commits
3ad0b2a1
Unverified
Commit
3ad0b2a1
authored
Apr 22, 2017
by
Andre Heinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QTextEdit instead of custom Text Widget
This makes the text copy & pasteable for GnuPGProcessCommands.
parent
aee23f69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/commands/gnupgprocesscommand.cpp
src/commands/gnupgprocesscommand.cpp
+7
-6
No files found.
src/commands/gnupgprocesscommand.cpp
View file @
3ad0b2a1
...
...
@@ -36,8 +36,6 @@
#include "command_p.h"
#include <utils/kdlogtextwidget.h>
#include "kleopatra_debug.h"
#include <KLocalizedString>
#include <KWindowSystem>
...
...
@@ -45,6 +43,7 @@
#include <QString>
#include <QStringList>
#include <QByteArray>
#include <QTextEdit>
#include <QTimer>
#include <QDialog>
#include <QDialogButtonBox>
...
...
@@ -75,14 +74,15 @@ public:
KDAB_SET_OBJECT_NAME
(
logTextWidget
);
KDAB_SET_OBJECT_NAME
(
buttonBox
);
logTextWidget
.
setMinimumVisibleLines
(
20
);
logTextWidget
.
setMinimumVisibleColumns
(
80
);
logTextWidget
.
setReadOnly
(
true
);
vlay
.
addWidget
(
&
logTextWidget
,
1
);
vlay
.
addWidget
(
&
buttonBox
);
connect
(
closeButton
(),
&
QAbstractButton
::
clicked
,
this
,
&
QWidget
::
close
);
connect
(
cancelButton
(),
&
QAbstractButton
::
clicked
,
this
,
&
OutputDialog
::
slotCancelClicked
);
resize
(
600
,
500
);
}
Q_SIGNALS:
...
...
@@ -91,7 +91,8 @@ Q_SIGNALS:
public
Q_SLOTS
:
void
message
(
const
QString
&
s
)
{
logTextWidget
.
message
(
s
);
logTextWidget
.
append
(
s
);
logTextWidget
.
ensureCursorVisible
();
}
void
setComplete
(
bool
complete
)
{
...
...
@@ -117,7 +118,7 @@ private:
private:
QVBoxLayout
vlay
;
KDLogTextWidge
t
logTextWidget
;
QTextEdi
t
logTextWidget
;
QDialogButtonBox
buttonBox
;
};
...
...
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