Skip to content

Commit

Permalink
SQL/QSqlField: move deprecated functions decls to correct place
Browse files Browse the repository at this point in the history
Don't move them around during deprecation.

Pick-to: 6.8
Change-Id: I647fec5a440ea063463dc285def5d793726a9e61
Reviewed-by: Axel Spoerl <[email protected]>
  • Loading branch information
chehrlic committed Jun 13, 2024
1 parent 15674f4 commit 70475a6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/sql/kernel/qsqlfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,24 @@ 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);

RequiredStatus requiredStatus() const;
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
Expand Down

0 comments on commit 70475a6

Please sign in to comment.