mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-11 20:16:47 +00:00
Removed warnings and little fixes
This commit is contained in:
parent
01e85da75f
commit
558b3911c8
@ -63,7 +63,7 @@ public:
|
||||
virtual void publicDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles = QVector<int>()) = 0;
|
||||
|
||||
/// @see QAbstractItemModel::createIndex
|
||||
virtual QModelIndex publicCreateIndex(int row, int column, void *data = 0) const = 0;
|
||||
virtual QModelIndex publicCreateIndex(int row, int column, void *data = nullptr) const = 0;
|
||||
|
||||
/// @see QAbstractItemModel::hasChildren
|
||||
virtual bool defaultHasChildren(const QModelIndex &parent) const = 0;
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
/// Expose hasIndex
|
||||
bool hasIndex(int row, int column, const QModelIndex &parent) const;
|
||||
bool hasIndex(int row, int column, const QModelIndex &parent) const override;
|
||||
|
||||
/// Expose the canFetchMore
|
||||
bool canFetchMore(const QModelIndex &parent) const override;
|
||||
|
@ -206,7 +206,7 @@ void dos_qpixmap_assign(DosPixmap *vptr, const DosPixmap *other)
|
||||
{
|
||||
if (vptr) {
|
||||
auto lhs = static_cast<QPixmap *>(vptr);
|
||||
auto rhs = static_cast<QPixmap *>(vptr);
|
||||
auto rhs = static_cast<const QPixmap *>(other);
|
||||
*lhs = rhs ? *rhs : QPixmap();
|
||||
}
|
||||
}
|
||||
@ -257,7 +257,7 @@ void dos_qquickview_set_source_url(::DosQQuickView *vptr, ::DosQUrl *url)
|
||||
void dos_qquickview_set_resize_mode(::DosQQuickView *vptr, int resizeMode)
|
||||
{
|
||||
auto view = static_cast<QQuickView *>(vptr);
|
||||
view->setResizeMode((QQuickView::ResizeMode) resizeMode);
|
||||
view->setResizeMode(static_cast<QQuickView::ResizeMode>(resizeMode));
|
||||
}
|
||||
|
||||
::DosQQmlContext *dos_qquickview_rootContext(::DosQQuickView *vptr)
|
||||
@ -514,7 +514,7 @@ bool dos_qobject_signal_connect(::DosQObject *senderVPtr,
|
||||
{
|
||||
auto sender = static_cast<QObject *>(senderVPtr);
|
||||
auto receiver = static_cast<QObject *>(receiverVPtr);
|
||||
return QObject::connect(sender, signal, receiver, method, (Qt::ConnectionType) type);
|
||||
return QObject::connect(sender, signal, receiver, method, static_cast<Qt::ConnectionType>(type));
|
||||
}
|
||||
|
||||
bool dos_qobject_signal_disconnect(::DosQObject *senderVPtr,
|
||||
@ -658,7 +658,7 @@ void dos_qresource_register(const char *filename)
|
||||
|
||||
::DosQUrl *dos_qurl_create(const char *url, int parsingMode)
|
||||
{
|
||||
return new QUrl(QString::fromUtf8(url), (QUrl::ParsingMode) parsingMode);
|
||||
return new QUrl(QString::fromUtf8(url), static_cast<QUrl::ParsingMode>(parsingMode));
|
||||
}
|
||||
|
||||
void dos_qurl_delete(::DosQUrl *vptr)
|
||||
@ -925,7 +925,7 @@ int dos_qabstractitemmodel_flags(DosQAbstractItemModel *vptr, DosQModelIndex *do
|
||||
auto object = static_cast<QObject *>(vptr);
|
||||
auto model = dynamic_cast<DOS::DosIQAbstractItemModelImpl *>(object);
|
||||
auto index = static_cast<QModelIndex *>(dosIndex);
|
||||
return model->defaultFlags(*index);
|
||||
return static_cast<int>(model->defaultFlags(*index));
|
||||
}
|
||||
|
||||
DosQVariant *dos_qabstractitemmodel_headerData(DosQAbstractItemModel *vptr, int section, int orientation, int role)
|
||||
|
Loading…
x
Reference in New Issue
Block a user