Less DropArea qobject_casts

This commit is contained in:
Sergio Martins
2019-07-17 22:05:12 +01:00
parent 98e47856f3
commit 24dfb34a6f
5 changed files with 7 additions and 33 deletions

View File

@@ -82,18 +82,8 @@ public:
LayoutSaver saver;
saver.restoreFromDisk();
});
/*connect(newAction, &QAction::triggered, this, [this] {
auto dropArea = qobject_cast<DropArea*>(centralWidget());
Q_ASSERT(dropArea);
//if (dropArea->indicatorStyle() == DropIndicatorOverlayInterface::TypeAnimated)
//dropArea->setIndicatorStyle(DropIndicatorOverlayInterface::TypeClassic);
//else
//dropArea->setIndicatorStyle(DropIndicatorOverlayInterface::TypeAnimated);
});*/
}
QMenu *toggleMenu;
};