Create label based on new label dialog.
This commit is contained in:
@@ -38,6 +38,25 @@ namespace glabels
|
||||
{
|
||||
NewLabelDialog newDialog( window );
|
||||
newDialog.exec();
|
||||
|
||||
const libglabels::Template* tmplate = newDialog.tmplate();
|
||||
if ( tmplate )
|
||||
{
|
||||
LabelModel* label = new LabelModel();
|
||||
label->setTmplate( tmplate );
|
||||
label->setRotate( newDialog.rotate() );
|
||||
|
||||
if ( window->isEmpty() )
|
||||
{
|
||||
window->setModel( label );
|
||||
}
|
||||
else
|
||||
{
|
||||
MainWindow *newWindow = new MainWindow();
|
||||
newWindow->setModel( label );
|
||||
newWindow->show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user