use a namespace instead of a class with only static functions

c++11
Marc Zinnschlag 10 years ago
parent b0aad9c8cb
commit e29d9bcc8e

@ -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

Loading…
Cancel
Save