Initial implementation of glabels-batch.

Note: must currently use QGuiApplication instead of QCoreApplication to
support QFont.  Unfortunately, this means that glabels-batch must run
within a windowing system.  Ideally, it would not have this requirement.
This commit is contained in:
Jim Evins
2017-10-02 23:15:43 -04:00
parent 347bf35c79
commit a31484700c
13 changed files with 449 additions and 111 deletions
+4 -2
View File
@@ -20,6 +20,8 @@
#include "TemplatePickerItem.h"
#include "MiniPreviewPixmap.h"
#include <QHBoxLayout>
#include <QIcon>
#include <QListWidgetItem>
@@ -36,9 +38,9 @@ namespace glabels
{
mTmplate = tmplate;
setIcon( QIcon(tmplate->preview()) );
setIcon( QIcon( MiniPreviewPixmap( tmplate, SIZE, SIZE ) ) );
setText( tmplate->name() );
setFlags( Qt::ItemIsSelectable | Qt::ItemIsEnabled );
}