|
QtPass 2.0.0
Developer documentation
|
Implements StoreModel and the StoreDragItem stream operators; the drop validation lives in executeDropAction(). More...
#include "storemodel.h"#include "pass.h"#include "pathvalidator.h"#include "plainmessagebox.h"#include "qtpasslogging.h"#include "util.h"#include <QApplication>#include <QDebug>#include <QFileSystemModel>#include <QMessageBox>#include <QMimeData>#include <QRegularExpression>#include <QtGlobal>Go to the source code of this file.
Functions | |
| auto | operator<< (QDataStream &out, const StoreDragItem &item) -> QDataStream & |
| Serialize a StoreDragItem for the QtPass MIME type. | |
| auto | operator>> (QDataStream &in, StoreDragItem &item) -> QDataStream & |
| Deserialize a StoreDragItem from the QtPass MIME type. | |
Implements StoreModel and the StoreDragItem stream operators; the drop validation lives in executeDropAction().
Definition in file storemodel.cpp.
| auto operator<< | ( | QDataStream & | out, |
| const StoreDragItem & | info ) -> QDataStream & |
Serialize a StoreDragItem for the QtPass MIME type.
| out | Stream to write to. |
| info | Drag/drop info to serialize. |
Definition at line 22 of file storemodel.cpp.
| auto operator>> | ( | QDataStream & | in, |
| StoreDragItem & | info ) -> QDataStream & |
Deserialize a StoreDragItem from the QtPass MIME type.
Unrecognised kind bytes resolve to ItemKind::Unknown rather than being rejected, so a future protocol bump remains decode-safe.
| in | Stream to read from. |
| info | Drag/drop info to populate. |
Definition at line 27 of file storemodel.cpp.