Changeset View
Changeset View
Standalone View
Standalone View
kexi/widget/tableview/KexiDataTableView.cpp
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 102 | foreach (int width, columnWidths) { | |||
---|---|---|---|---|---|
105 | ++i; | 105 | ++i; | ||
106 | } | 106 | } | ||
107 | } | 107 | } | ||
108 | } | 108 | } | ||
109 | } | 109 | } | ||
110 | return true; | 110 | return true; | ||
111 | } | 111 | } | ||
112 | 112 | | |||
113 | void | 113 | bool KexiDataTableView::setWidgetData(KexiDB::Cursor *cursor) | ||
114 | KexiDataTableView::setData(KexiDB::Cursor *c) | | |||
115 | { | 114 | { | ||
116 | if (!dynamic_cast<KexiDataTableScrollArea*>(mainWidget())) | 115 | bool ok = dynamic_cast<KexiDataTableScrollArea*>(mainWidget()); | ||
117 | return; | 116 | if (!ok) { | ||
118 | dynamic_cast<KexiDataTableScrollArea*>(mainWidget())->setData(c); | 117 | return false; | ||
118 | } | ||||
119 | return dynamic_cast<KexiDataTableScrollArea*>(mainWidget())->setData(cursor); | ||||
119 | } | 120 | } | ||
120 | 121 | | |||
121 | void KexiDataTableView::filter() | 122 | void KexiDataTableView::filter() | ||
122 | { | 123 | { | ||
123 | } | 124 | } | ||
124 | 125 | | |||
125 | KexiTableScrollArea* KexiDataTableView::tableView() const | 126 | KexiTableScrollArea* KexiDataTableView::tableView() const | ||
126 | { | 127 | { | ||
Show All 36 Lines |