Hook open event to load_stl
This commit is contained in:
parent
9803286d26
commit
942d1bc4de
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ bool App::event(QEvent* e)
|
|||
{
|
||||
if (e->type() == QEvent::FileOpen)
|
||||
{
|
||||
qDebug() << static_cast<QFileOpenEvent*>(e)->file();
|
||||
window->load_stl(static_cast<QFileOpenEvent*>(e)->file());
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue