[Spreadsheet] Enable zoom in Spreadsheet (#16130)
* [Spreadsheet] Enable zoom in Spreadsheet Closes #6094. This commit also fixes page tab order of Spreadsheet settings in Preferences. * Spreadsheet: apply clang-format --------- Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#include <QPrintPreviewDialog>
|
||||
#include <QPrinter>
|
||||
#include <QTextDocument>
|
||||
#include <cmath>
|
||||
#endif
|
||||
|
||||
#include <App/DocumentObject.h>
|
||||
@@ -47,6 +46,7 @@
|
||||
#include "LineEdit.h"
|
||||
#include "SpreadsheetDelegate.h"
|
||||
#include "SpreadsheetView.h"
|
||||
#include "ZoomableView.h"
|
||||
#include "qtcolorpicker.h"
|
||||
#include "ui_Sheet.h"
|
||||
|
||||
@@ -74,6 +74,8 @@ SheetView::SheetView(Gui::Document* pcDocument, App::DocumentObject* docObj, QWi
|
||||
ui->setupUi(w);
|
||||
setCentralWidget(w);
|
||||
|
||||
new ZoomableView(ui);
|
||||
|
||||
delegate = new SpreadsheetDelegate(sheet);
|
||||
ui->cells->setModel(model);
|
||||
ui->cells->setItemDelegate(delegate);
|
||||
|
||||
Reference in New Issue
Block a user