Skip to content
Permalink
Browse files

revive QSqlDatabase (followup c894357)

  • Loading branch information
jef-n committed Sep 30, 2015
1 parent c531b2d commit 2126011d31d97b35da5f9d7da10fad1ec090e75e
Showing with 1 addition and 2 deletions.
  1. +0 −2 python/core/auth/qgsauthmanager.sip
  2. +1 −0 python/core/core.sip
@@ -1,5 +1,3 @@
class QSqlDatabase;

class QgsAuthManager : QObject
{
%TypeHeaderCode
@@ -6,6 +6,7 @@
%Import QtGui/QtGuimod.sip
%Import QtXml/QtXmlmod.sip
%Import QtNetwork/QtNetworkmod.sip
%Import QtSql/QtSqlmod.sip

%Include conversions.sip
%Include qgsexception.sip

5 comments on commit 2126011

@dakcarto

This comment has been minimized.

Copy link
Member

@dakcarto dakcarto replied Sep 30, 2015

Hi @jef-n,

Can you give a little background on this? Was the QtSql module previously deprecated in favor of some custom Qgs* SQLite implementation.

Or, is this just a sip import that was previously dropped because it was unneeded in bindings?

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson replied Sep 30, 2015

@jef-n do you know what package provides QtSql python bindings on ubuntu/debian? I'm (also Travis) getting a "No module named QtSql" error on startup now, and can't work out how to satisfy this dependancy.

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson replied Sep 30, 2015

actually ignore that - it's python-qt4-sql

@jef-n

This comment has been minimized.

Copy link
Member Author

@jef-n jef-n replied Sep 30, 2015

@dakcarto QSqlDatabase was masked by this. Using QSqlDatabase.removeDatabase produced
AttributeError: type object 'QSqlDatabase' has no attribute 'removeDatabase'

@dakcarto

This comment has been minimized.

Copy link
Member

@dakcarto dakcarto replied Sep 30, 2015

Oh that makes sense. Thanks for the explanation.

Please sign in to comment.
You can’t perform that action at this time.