mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-07 03:58:28 -06:00
Printing support #1525: print tables in Browse Data and Execute SQL tabs
Added contextual menu entry and keyboard shortcut for printing the browsed table with headers. If a region is selected, print those cells data. Otherwise, print the entire table. The HTML conversion used for clipboard is reused. Borders are added for better visual output.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
class QMenu;
|
||||
class QMimeData;
|
||||
class FilterTableHeader;
|
||||
namespace sqlb { class ObjectIdentifier; }
|
||||
|
||||
@@ -50,9 +51,11 @@ signals:
|
||||
void selectedRowsToBeDeleted();
|
||||
|
||||
private:
|
||||
void copyMimeData(const QModelIndexList& fromIndices, QMimeData* mimeData, const bool withHeaders, const bool inSQL);
|
||||
void copy(const bool withHeaders, const bool inSQL);
|
||||
void paste();
|
||||
QString escapeCopiedData(const QByteArray& data) const;
|
||||
void openPrintDialog();
|
||||
|
||||
void useAsFilter(const QString& filterOperator, bool binary = false);
|
||||
void duplicateUpperCell();
|
||||
|
||||
Reference in New Issue
Block a user