Преглед изворни кода

DataBase::database() static

Felix Turo пре 4 година
родитељ
комит
798c39626e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/experimental/DataBase.h

+ 1 - 1
src/experimental/DataBase.h

@@ -45,7 +45,7 @@ public:
      * \brief Can be used to access the database connection.
      * \return The QSqlDatabase object pertaining to the connection.
      */
-    QSqlDatabase database();
+    static QSqlDatabase database();
 
     /*!
      * \brief Checks if an entry exists in the database, based on position data