QSqlTableModel: let select() and selectRow() be slots
It's convenient to be able to connect a button to select() and signals that provide a row to selectRow(). Change-Id: I520d5564943f679ec9e68331878a211dd52b4a06 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
parent
7edaf253d5
commit
6cf3229105
@ -66,9 +66,6 @@ public:
|
|||||||
explicit QSqlTableModel(QObject *parent = 0, QSqlDatabase db = QSqlDatabase());
|
explicit QSqlTableModel(QObject *parent = 0, QSqlDatabase db = QSqlDatabase());
|
||||||
virtual ~QSqlTableModel();
|
virtual ~QSqlTableModel();
|
||||||
|
|
||||||
virtual bool select();
|
|
||||||
virtual bool selectRow(int row);
|
|
||||||
|
|
||||||
virtual void setTable(const QString &tableName);
|
virtual void setTable(const QString &tableName);
|
||||||
QString tableName() const;
|
QString tableName() const;
|
||||||
|
|
||||||
@ -111,6 +108,9 @@ public:
|
|||||||
virtual void revertRow(int row);
|
virtual void revertRow(int row);
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
virtual bool select();
|
||||||
|
virtual bool selectRow(int row);
|
||||||
|
|
||||||
bool submit();
|
bool submit();
|
||||||
void revert();
|
void revert();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user