Compare commits
No commits in common. "021785d16c7c3516793692f1b2e96f4c7cdb917d" and "5cbbacee81af785fd5ea16f9e9e3ad8f988c4355" have entirely different histories.
021785d16c
...
5cbbacee81
|
|
@ -1 +0,0 @@
|
||||||
build/
|
|
||||||
|
|
@ -21,7 +21,6 @@ public:
|
||||||
bool addModel(const QString&, Model&);
|
bool addModel(const QString&, Model&);
|
||||||
bool modelNameExistsInDB(const QString&, const QString&);
|
bool modelNameExistsInDB(const QString&, const QString&);
|
||||||
bool modelTypeExistsInDB(const QString&, const QString&);
|
bool modelTypeExistsInDB(const QString&, const QString&);
|
||||||
bool removeMode(const QString&, int);
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void errorOccurred(const QString& error);
|
void errorOccurred(const QString& error);
|
||||||
|
|
|
||||||
|
|
@ -93,20 +93,17 @@ const QString DBStructureView::curConnection()
|
||||||
|
|
||||||
void DBStructureView::itemDoubleClick(const QModelIndex& index)
|
void DBStructureView::itemDoubleClick(const QModelIndex& index)
|
||||||
{
|
{
|
||||||
DBStructureNode* node = static_cast<DBStructureNode*>(index.internalPointer());
|
if(!m_curConnection.isEmpty()) //先断掉当前链接
|
||||||
if(node->type() == ConnectionNode )
|
|
||||||
{
|
{
|
||||||
if(!m_curConnection.isEmpty()) //先断掉当前链接
|
disconnectToDB(m_curConnection);
|
||||||
{
|
m_curConnection = "";
|
||||||
disconnectToDB(m_curConnection);
|
}
|
||||||
m_curConnection = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(node->status() == Disconnect)
|
DBStructureNode* node = static_cast<DBStructureNode*>(index.internalPointer());
|
||||||
{
|
if(node->type() == ConnectionNode && node->status() == Disconnect)
|
||||||
connectToDB(node->name());
|
{
|
||||||
m_curConnection = node->name();
|
connectToDB(node->name());
|
||||||
}
|
m_curConnection = node->name();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,10 +169,7 @@ bool SqlQueryExecutor::modelTypeExistsInDB(const QString& connectionName, const
|
||||||
return exists;
|
return exists;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SqlQueryExecutor::removeMode(const QString& connectionName, int modelID)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
const QVector<AttributeGroup> SqlQueryExecutor::getAttributeGroup(const QString& strConnectionName)
|
const QVector<AttributeGroup> SqlQueryExecutor::getAttributeGroup(const QString& strConnectionName)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue