summaryrefslogtreecommitdiffstats
path: root/demos/sqlbrowser/browser.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-03-04 12:30:23 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-03-04 12:30:23 (GMT)
commit30dba6b22f907ba36ed8f71568ab2489536f8f43 (patch)
tree37b73324d4871aa41b53dadd4d270f1c2764d699 /demos/sqlbrowser/browser.cpp
parent352f9e629666b6a1743fafc42c16bb51a6ad3df9 (diff)
parentf1e39e7dea8634695263435f0bf912ce19c43195 (diff)
downloadQt-30dba6b22f907ba36ed8f71568ab2489536f8f43.zip
Qt-30dba6b22f907ba36ed8f71568ab2489536f8f43.tar.gz
Qt-30dba6b22f907ba36ed8f71568ab2489536f8f43.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Make tablet detection work with new wacom drivers Fixed an exit crash that could occur in the GL 2 engine under X11. Fix tst_QVariant::operator_eq_eq(UserType) SqlBrowser not respecting casings. Remove vgClearPath() change to OpenVG paint engine QVariant: Fix crash when comparing two variant with the same undefined type. Fix compositing when QWS background is completely transparent. Fixes wrong composition mode for cached backgrounds in Graphics View. Support keypad input with vnc driver
Diffstat (limited to 'demos/sqlbrowser/browser.cpp')
-rw-r--r--demos/sqlbrowser/browser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/sqlbrowser/browser.cpp b/demos/sqlbrowser/browser.cpp
index 6aed73a..1232428 100644
--- a/demos/sqlbrowser/browser.cpp
+++ b/demos/sqlbrowser/browser.cpp
@@ -146,7 +146,7 @@ void Browser::showTable(const QString &t)
{
QSqlTableModel *model = new QSqlTableModel(table, connectionWidget->currentDatabase());
model->setEditStrategy(QSqlTableModel::OnRowChange);
- model->setTable(t);
+ model->setTable(connectionWidget->currentDatabase().driver()->escapeIdentifier(t, QSqlDriver::TableName));
model->select();
if (model->lastError().type() != QSqlError::NoError)
emit statusMessage(model->lastError().text());