ServerWindow shows list of databases.

This commit is contained in:
eelke 2017-02-13 19:51:19 +01:00
parent e71ef2e6df
commit 612b524151
15 changed files with 307 additions and 172 deletions

View file

@ -1,4 +1,5 @@
#include "queryresultmodel.h"
#include "Pgsql_declare.h"
#include <QBrush>
#include <QColor>
@ -20,21 +21,6 @@ int QueryResultModel::columnCount(const QModelIndex &) const
return r;
}
//DisplayRole = 0,
//DecorationRole = 1,
//EditRole = 2,
//ToolTipRole = 3,
//StatusTipRole = 4,
//WhatsThisRole = 5,
//// Metadata
//FontRole = 6,
//TextAlignmentRole = 7,
//BackgroundColorRole = 8,
//BackgroundRole = 8,
//TextColorRole = 9,
//ForegroundRole = 9,
//CheckStateRole = 10,
QVariant QueryResultModel::data(const QModelIndex &index, int role) const
{
using namespace Pgsql;