PrintView improvements (#250)

- Allow printer selection directly from PrintView
- Print button bypasses the system print dialog, since label printing is quite different from typical printing tasks
- Separate button to optionally use system print dialog, if needed
This commit is contained in:
Jaye Evins
2025-11-17 17:04:04 -05:00
committed by GitHub
parent b69ada13db
commit bcc6b3ec9d
7 changed files with 463 additions and 33 deletions
+11
View File
@@ -57,10 +57,21 @@ namespace glabels
// Slots
/////////////////////////////////
private slots:
void onAvailablePrintersChanged( const QStringList& printers );
void onModelChanged();
void updateView();
void onFormChanged();
void onPrintButtonClicked();
void onSystemDialogButtonClicked();
/////////////////////////////////
// Private methods
/////////////////////////////////
private:
void loadDestinations( const QStringList& printers );
QString defaultPdf();
void setDestination( const QString& printerName );
/////////////////////////////////