1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-31 14:36:39 +00:00

use a namespace instead of a class with only static functions

This commit is contained in:
Marc Zinnschlag 2015-06-24 17:29:47 +02:00
parent b0aad9c8cb
commit e29d9bcc8e

View file

@ -13,18 +13,17 @@ namespace CSMWorld
namespace CSVWorld namespace CSVWorld
{ {
class DragDropUtils namespace DragDropUtils
{ {
public: const CSMWorld::TableMimeData *getTableMimeData(const QDropEvent &event);
static const CSMWorld::TableMimeData *getTableMimeData(const QDropEvent &event);
static bool canAcceptData(const QDropEvent &event, CSMWorld::ColumnBase::Display type); bool canAcceptData(const QDropEvent &event, CSMWorld::ColumnBase::Display type);
///< Checks whether the \a event contains a valid CSMWorld::TableMimeData that holds the \a type ///< Checks whether the \a event contains a valid CSMWorld::TableMimeData that holds the \a type
static CSMWorld::UniversalId getAcceptedData(const QDropEvent &event, CSMWorld::ColumnBase::Display type); CSMWorld::UniversalId getAcceptedData(const QDropEvent &event, CSMWorld::ColumnBase::Display type);
///< Gets the accepted data from the \a event using the \a type ///< Gets the accepted data from the \a event using the \a type
///< \return Type_None if the \a event data doesn't holds the \a type ///< \return Type_None if the \a event data doesn't holds the \a type
}; }
} }
#endif #endif