diff options
Diffstat (limited to 'kdevdesigner/uilib/database.cpp')
-rw-r--r-- | kdevdesigner/uilib/database.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kdevdesigner/uilib/database.cpp b/kdevdesigner/uilib/database.cpp index 2b1956a9..325451d5 100644 --- a/kdevdesigner/uilib/database.cpp +++ b/kdevdesigner/uilib/database.cpp @@ -62,7 +62,7 @@ void DatabaseSupport::initPreview( const TQString &connection, const TQString &t con = TQSqlDatabase::database(); frm = new TQSqlForm( o, table.ascii() ); for ( TQMap<TQString, TQString>::Iterator it = dbControls.begin(); it != dbControls.end(); ++it ) { - TQObject *chld = parent->child( it.key().ascii(), TQWIDGET_OBJECT_NAME_STRING ); + TQObject *chld = parent->child( it.key().ascii(), "TQWidget" ); if ( !chld ) continue; frm->insert( (TQWidget*)chld, *it ); @@ -82,13 +82,13 @@ bool TQDesignerDataBrowser::event( TQEvent* e ) #endif if ( e->type() == TQEvent::Show ) { if ( con ) { - TQSqlCursor* cursor = new TQSqlCursor( tbl, TRUE, con ); - setSqlCursor( cursor, TRUE ); + TQSqlCursor* cursor = new TQSqlCursor( tbl, true, con ); + setSqlCursor( cursor, true ); setForm( frm ); refresh(); first(); } - return TRUE; + return true; } #if defined(DESIGNER) } @@ -110,7 +110,7 @@ bool TQDesignerDataView::event( TQEvent* e ) if ( e->type() == TQEvent::Show ) { setForm( frm ); readFields(); - return TRUE; + return true; } #if defined(DESIGNER) } |