0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-20 06:30:03 +03:00

Using variables in the connection describer has been extended

This commit is contained in:
Arin Alexander
2020-05-08 14:19:02 +03:00
parent 36b60319ce
commit ccf8134012
10 changed files with 77 additions and 23 deletions

View File

@@ -78,7 +78,7 @@ class ConnectionDesc : public QObject{
Q_PROPERTY(QString host READ host WRITE setHost)
Q_PROPERTY(bool autoconnect READ autoconnect WRITE setAutoconnect)
Q_PROPERTY(bool keepDBCredentials READ keepDBCredentials WRITE setKeepDBCredentials)
Q_PROPERTY(int port READ port WRITE setPort)
Q_PROPERTY(QString port READ port WRITE setPort)
public:
typedef QSharedPointer<ConnectionDesc> Ptr;
ConnectionDesc(QSqlDatabase db, QObject* parent=0);
@@ -103,8 +103,8 @@ public:
void setInternal(bool value) {m_internal = value;}
bool keepDBCredentials() const;
void setKeepDBCredentials(bool keepDBCredentials);
int port() const;
void setPort(int port);
QString port() const;
void setPort(QString port);
public:
static QString connectionNameForUser(const QString& connectionName);
static QString connectionNameForReport(const QString& connectionName);
@@ -117,7 +117,7 @@ private:
QString m_databaseName;
QString m_user;
QString m_password;
int m_port;
QString m_port;
bool m_autoconnect;
bool m_internal;
bool m_keepDBCredentials;