build fixes
# Conflicts: # pglablib/sqlast/SelectList.h
This commit is contained in:
parent
2ad5fa5e4e
commit
a7d4a5f13d
7 changed files with 11 additions and 9 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef SCOPEGUARD_H
|
||||
#define SCOPEGUARD_H
|
||||
|
||||
#include <utility>
|
||||
|
||||
/** \brief Template class for executing code at scope exit.
|
||||
*
|
||||
* By default the object will be an active mode and execute the function
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
<customwidget>
|
||||
<class>CodeEditor</class>
|
||||
<extends>QPlainTextEdit</extends>
|
||||
<header>CodeEditor.h</header>
|
||||
<header>codeeditor/CodeEditor.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<customwidget>
|
||||
<class>PgLabTableView</class>
|
||||
<extends>QTableView</extends>
|
||||
<header>PgLabTableView.h</header>
|
||||
<header>util/PgLabTableView.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ void ASyncDBConnectionThread::doStateCallback(ASyncDBConnection::State state)
|
|||
// if (m_stateCallback.m_func) {
|
||||
// m_stateCallback.m_func(state);
|
||||
// }
|
||||
emit asyncConnObject->onStateChanged(state);
|
||||
Q_EMIT asyncConnObject->onStateChanged(state);
|
||||
}
|
||||
|
||||
void ASyncDBConnectionThread::waitForAndSendCommand()
|
||||
|
|
@ -439,7 +439,7 @@ void ASyncDBConnectionThread::processNotice(const PGresult *result)
|
|||
// m_noticeCallback.m_func(details);
|
||||
// }
|
||||
Pgsql::ErrorDetails details = Pgsql::ErrorDetails::createErrorDetailsFromPGresult(result);
|
||||
emit asyncConnObject->onNotice(details);
|
||||
Q_EMIT asyncConnObject->onNotice(details);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -480,7 +480,7 @@ void ASyncDBConnection::doStateCallback(State state)
|
|||
m_connection.setNoticeReceiver(
|
||||
[this](const PGresult *result) { processNotice(result); });
|
||||
}
|
||||
emit onStateChanged(state);
|
||||
Q_EMIT onStateChanged(state);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -526,5 +526,5 @@ bool ASyncDBConnection::cancel()
|
|||
void ASyncDBConnection::processNotice(const PGresult *result)
|
||||
{
|
||||
Pgsql::ErrorDetails details = Pgsql::ErrorDetails::createErrorDetailsFromPGresult(result);
|
||||
emit onNotice(details);
|
||||
Q_EMIT onNotice(details);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ public:
|
|||
|
||||
bool cancel();
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void onStateChanged(ASyncDBConnection::State state);
|
||||
void onNotice(Pgsql::ErrorDetails notice);
|
||||
// void onQueryResult(std::shared_ptr<Pgsql::Result> result);
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ bool ParamListModel::setData(const QModelIndex &index, const QVariant &value, in
|
|||
break;
|
||||
}
|
||||
|
||||
emit dataChanged(index, index, QVector<int>() << role);
|
||||
Q_EMIT dataChanged(index, index, QVector<int>() << role);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ public:
|
|||
};
|
||||
using RefreshFlags = int;
|
||||
|
||||
signals:
|
||||
Q_SIGNALS:
|
||||
void refreshed(const PgDatabaseCatalog *catalog, RefreshFlags flags);
|
||||
private:
|
||||
QString m_serverVersionString;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue