diff --git a/src/sql/kernel/qsqlfield.h b/src/sql/kernel/qsqlfield.h index 96ace6a359f..6404253be62 100644 --- a/src/sql/kernel/qsqlfield.h +++ b/src/sql/kernel/qsqlfield.h @@ -82,6 +82,10 @@ class Q_SQL_EXPORT QSqlField void setLength(int fieldLength); void setPrecision(int precision); void setDefaultValue(const QVariant &value); +#if QT_DEPRECATED_SINCE(6, 8) + QT_DEPRECATED_VERSION_X_6_8("This internal value is no longer used.") + void setSqlType(int type); +#endif void setGenerated(bool gen); void setAutoValue(bool autoVal); @@ -89,15 +93,13 @@ class Q_SQL_EXPORT QSqlField int length() const; int precision() const; QVariant defaultValue() const; - bool isGenerated() const; - bool isValid() const; - #if QT_DEPRECATED_SINCE(6, 8) - QT_DEPRECATED_VERSION_X_6_8("This internal value is no longer used.") - void setSqlType(int type); QT_DEPRECATED_VERSION_X_6_8("This internal value is no longer used.") int typeID() const; #endif + bool isGenerated() const; + bool isValid() const; + private: void detach(); // ### Qt7: move to private class