fixed default network
This commit is contained in:
@@ -65,6 +65,9 @@ QVariant ButtonsModel::data(const QModelIndex &index, int role) const
|
||||
case SuccessTextRole: return feedback.value("successText").toString();
|
||||
case ErrorTextRole: return feedback.value("errorText").toString();
|
||||
case PendingTextRole: return feedback.value("pendingText").toString(QStringLiteral("..."));
|
||||
case ResponseCheckEnabledRole:
|
||||
return action.value(QStringLiteral("responseCheck")).toObject()
|
||||
.value(QStringLiteral("enabled")).toBool(false);
|
||||
case FadeMsRole: return feedback.value("fadeMs").toInt(5000);
|
||||
case StatusRole: return rt.status;
|
||||
case StatusTextRole: return rt.text;
|
||||
@@ -88,6 +91,7 @@ QHash<int, QByteArray> ButtonsModel::roleNames() const
|
||||
{SuccessTextRole, "successText"},
|
||||
{ErrorTextRole, "errorText"},
|
||||
{PendingTextRole, "pendingText"},
|
||||
{ResponseCheckEnabledRole, "responseCheckEnabled"},
|
||||
{FadeMsRole, "fadeMs"},
|
||||
{StatusRole, "status"},
|
||||
{StatusTextRole, "statusText"},
|
||||
|
||||
Reference in New Issue
Block a user