1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

added some iostream garbage.

This commit is contained in:
Marek Kochanowicz 2014-02-12 13:12:58 +01:00
parent 8dfdd87a07
commit c00834a8de
2 changed files with 5 additions and 4 deletions

View File

@ -4,6 +4,7 @@
#include <ostream> #include <ostream>
#include <stdexcept> #include <stdexcept>
#include <sstream> #include <sstream>
#include <iostream>
namespace namespace
{ {
@ -186,7 +187,7 @@ CSMWorld::UniversalId::UniversalId (Type type, const std::string& id)
mClass = sIdArg[i].mClass; mClass = sIdArg[i].mClass;
return; return;
} }
std::cout<<type<<std::endl;
throw std::logic_error ("invalid ID argument UniversalId type"); throw std::logic_error ("invalid ID argument UniversalId type");
} }

View File

@ -448,7 +448,7 @@ void CSVWorld::Table::mouseMoveEvent (QMouseEvent* event)
drag->setMimeData (mime); drag->setMimeData (mime);
drag->setPixmap (QString::fromStdString (mime->getIcon())); drag->setPixmap (QString::fromStdString (mime->getIcon()));
drag->exec(); drag->exec();
std::cout << "startdrag"; std::cout << "startdrag\n";
} }
} }
@ -456,14 +456,14 @@ void CSVWorld::Table::mouseMoveEvent (QMouseEvent* event)
void CSVWorld::Table::dragEnterEvent(QDragEnterEvent *event) void CSVWorld::Table::dragEnterEvent(QDragEnterEvent *event)
{ {
//if (event->mimeData()->hasFormat("text/plain")) //if (event->mimeData()->hasFormat("text/plain"))
std::cout << "accept drag event"; std::cout << "accept drag event\n";
event->acceptProposedAction(); event->acceptProposedAction();
} }
void CSVWorld::Table::dropEvent(QDropEvent *event) void CSVWorld::Table::dropEvent(QDropEvent *event)
{ {
std::cout << "drop"; std::cout << "drop\n";
event->acceptProposedAction(); event->acceptProposedAction();
QModelIndex index = indexAt(event->pos()); QModelIndex index = indexAt(event->pos());
std::cout << index.row(); std::cout << index.row();