Merge lp:~larryprice/libertine/selectable-error-text into lp:libertine

Proposed by Larry Price
Status: Merged
Approved by: Christopher Townsend
Approved revision: 265
Merged at revision: 263
Proposed branch: lp:~larryprice/libertine/selectable-error-text
Merge into: lp:libertine
Diff against target: 32 lines (+17/-3)
1 file modified
libertine/qml/GenericErrorDialog.qml (+17/-3)
To merge this branch: bzr merge lp:~larryprice/libertine/selectable-error-text
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Libertine CI Bot continuous-integration Approve
Review via email: mp+299183@code.launchpad.net

Commit message

Make error details selectable and add clipboard button.

Description of the change

Make error details selectable and add clipboard button.

To post a comment you must log in.
Revision history for this message
Libertine CI Bot (libertine-ci-bot) wrote :

PASSED: Continuous integration, rev:264
https://jenkins.canonical.com/libertine/job/lp-libertine-ci/38/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/libertine/job/build/153
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=default/115
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=default/115
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=default/115
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=vivid+overlay,testname=default/115
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=xenial+overlay,testname=default/115
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=yakkety,testname=default/115
    None: https://jenkins.canonical.com/libertine/job/lp-generic-update-mp/123/console
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-0-fetch/156
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-1-sourcepkg/release=vivid+overlay/141
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-1-sourcepkg/release=xenial+overlay/141
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-1-sourcepkg/release=yakkety/141
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=vivid+overlay/134
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=vivid+overlay/134/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=xenial+overlay/134
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=xenial+overlay/134/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=yakkety/134
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=yakkety/134/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=vivid+overlay/134
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=vivid+overlay/134/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=xenial+overlay/134
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=xenial+overlay/134/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=yakkety/134
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=yakkety/134/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/libertine/job/lp-libertine-ci/38/rebuild

review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Works well. However, the lines in the popup are not wrapped, so it makes it hard to read as the line is outside the popup box.

review: Needs Fixing
265. By Larry Price

Adding word wrap to error dialog

Revision history for this message
Christopher Townsend (townsend) wrote :

Ok, works well, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libertine/qml/GenericErrorDialog.qml'
2--- libertine/qml/GenericErrorDialog.qml 2016-05-10 14:55:15 +0000
3+++ libertine/qml/GenericErrorDialog.qml 2016-07-06 13:42:24 +0000
4@@ -22,11 +22,25 @@
5
6 Dialog {
7 id: genericErrorDialog
8- property var short_description: null
9- property var details: null
10+ property string short_description: ""
11+ property string details: ""
12
13 title: short_description
14- text: details
15+
16+ TextEdit {
17+ color: UbuntuColors.darkGrey
18+ text: details
19+ readOnly: true
20+ selectByMouse: true
21+ wrapMode: TextEdit.WordWrap
22+ }
23+
24+ Button {
25+ text: i18n.tr("Copy to Clipboard")
26+ onClicked: {
27+ Clipboard.push(details)
28+ }
29+ }
30
31 Button {
32 text: i18n.tr("Dismiss")

Subscribers

People subscribed via source and target branches