* Creates a new view object and sets the appropriate signals.
* @param signals A flag indicating if the signals should be connected.
* @return The new view object.
*/
private QTreeView createNewView(boolean signals){
QTreeView newView = new QTreeView();
newView.setMouseTracking(true);
newView.setRootIsDecorated(false);
newView.setAlternatingRowColors(true);
if(signals){
newView.clicked.connect(this, "singleClick(QModelIndex)");
newView.entered.connect(this, "onHover(QModelIndex)");
}
newView.setEditTriggers(EditTrigger.NoEditTriggers);
return newView;
}