Added listing of triggers for selected table (not completely finished).
Used slightly different approach. This tab is fully build in source code using subclasses to adjust behaviour of widgets for reuse in the other tabs. Uses custom proxy model for filtering triggers for correct table and supporting out of the box sorting by QTableView. SqlCodePreview: QPlainTextEditor which sql highlighter and in readonly mode but allows copy.
This commit is contained in:
parent
446923ebaf
commit
2a75e86102
23 changed files with 697 additions and 67 deletions
|
|
@ -57,7 +57,7 @@ Value::operator int16_t() const
|
|||
|
||||
Value::operator int32_t() const
|
||||
{
|
||||
const int len = std::strlen(m_val);
|
||||
const size_t len = std::strlen(m_val);
|
||||
if (len > 0) {
|
||||
char *endptr = nullptr;
|
||||
long result = std::strtol(m_val, &endptr, 10);
|
||||
|
|
@ -100,6 +100,11 @@ Value::operator double() const
|
|||
return std::stod(m_val);
|
||||
}
|
||||
|
||||
Value::operator char() const
|
||||
{
|
||||
return m_val[0];
|
||||
}
|
||||
|
||||
|
||||
bool Value::isString() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue