I don't think this is ok. This would be better:
Qt Code:
void ConnectionQuery::disconnect(){ { database.close(); } cStatus = codec->toUnicode("Rozłączony z bazą danych"); }To copy to clipboard, switch view to plain text mode
But it all depends whether you're not having any member variables that operate on the database.
Bookmarks