various fixes
This commit is contained in:
@@ -29,12 +29,16 @@ ToolPanel::ToolPanel(QWidget *parent) :
|
||||
Toolbar* t = new Toolbar(this);
|
||||
|
||||
t->SetTool(olive::core.tool());
|
||||
t->SetSnapping(olive::core.snapping());
|
||||
|
||||
setWidget(t);
|
||||
|
||||
connect(t, SIGNAL(ToolChanged(const olive::tool::Tool&)), &olive::core, SLOT(SetTool(const olive::tool::Tool&)));
|
||||
connect(&olive::core, SIGNAL(ToolChanged(const olive::tool::Tool&)), t, SLOT(SetTool(const olive::tool::Tool&)));
|
||||
|
||||
connect(t, SIGNAL(SnappingChanged(const bool&)), &olive::core, SLOT(SetSnapping(const bool&)));
|
||||
connect(&olive::core, SIGNAL(SnappingChanged(const bool&)), t, SLOT(SetSnapping(const bool&)));
|
||||
|
||||
Retranslate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user