Skip to content
Browse files
Share internal copy-paste buffer between different table views
Use a shared internal copy-paste buffer for all table views in the
application instead of having one buffer per view. This is not only less
confusing because it more closely resembles the behaviour of the system
clipboard but it also allows copying BLOB data from a Execute SQL result
view to a Browse Data table.
  • Loading branch information
MKleusberg committed Dec 4, 2017
1 parent 9db70e0 commit 47b07490de85b1d354a92a468ccadcb2cea0dffe
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/ExtendedTableWidget.cpp
  2. +1 −1 src/ExtendedTableWidget.h
@@ -15,6 +15,8 @@
#include <QBuffer>
#include <QMenu>

QList<QByteArrayList> ExtendedTableWidget::m_buffer;


@@ -39,7 +39,7 @@ public slots:
void useAsFilter();

typedef QList<QByteArray> QByteArrayList;
QList<QByteArrayList> m_buffer; // TODO: Shouldn't this be static?
static QList<QByteArrayList> m_buffer;

private slots:
void vscrollbarChanged(int value);

0 comments on commit 47b0749

Please sign in to comment.