if (event.mimeData().hasFormat("application/x-nevernote-note")) {
event.accept();
return;
}
if (event.source() == this) {
event.mimeData().setData("application/x-nevernote-notebook", new QByteArray(currentItem().text(2)));
List<QTreeWidgetItem> selected = selectedItems();
for (int i=0; i<selected.size(); i++) {
if (selected.get(i).text(2).equalsIgnoreCase("STACK") ||
selected.get(i).text(2).equals("")) {
event.ignore();