diff options
Diffstat (limited to 'tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp')
-rw-r--r-- | tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp b/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp index 6a35ef7..b70f1b5 100644 --- a/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp +++ b/tqtinterface/qt4/src/sql/tqsqlmanager_p.cpp @@ -675,13 +675,13 @@ TQDataManager::~TQDataManager() information about the error. */ -void TQDataManager::handleError( TQWidget* tqparent, const TQSqlError& e ) +void TQDataManager::handleError( TQWidget* parent, const TQSqlError& e ) { #ifndef TQT_NO_MESSAGEBOX if (e.driverText().isEmpty() && e.databaseText().isEmpty()) { - TQMessageBox::warning ( tqparent, "Warning", "An error occurred while accessing the database"); + TQMessageBox::warning ( parent, "Warning", "An error occurred while accessing the database"); } else { - TQMessageBox::warning ( tqparent, "Warning", e.driverText() + "\n" + e.databaseText(), + TQMessageBox::warning ( parent, "Warning", e.driverText() + "\n" + e.databaseText(), 0, 0 ); } #endif // TQT_NO_MESSAGEBOX @@ -859,16 +859,16 @@ bool TQDataManager::confirmCancels() const m. Derived classes can reimplement this function and provide their own confirmation dialog. The default implementation uses a message box which prompts the user to confirm the edit action. The dialog - is centered over \a tqparent. + is centered over \a parent. */ -TQSql::Confirm TQDataManager::confirmEdit( TQWidget* tqparent, TQSql::Op m ) +TQSql::Confirm TQDataManager::confirmEdit( TQWidget* parent, TQSql::Op m ) { int ans = 2; if ( m == TQSql::Delete ) { #ifndef TQT_NO_MESSAGEBOX - ans = TQMessageBox::information( tqparent, + ans = TQMessageBox::information( parent, tqApp->translate( "TQSql", "Delete" ), tqApp->translate( "TQSql", "Delete this record?" ), tqApp->translate( "TQSql", "Yes" ), @@ -885,7 +885,7 @@ TQSql::Confirm TQDataManager::confirmEdit( TQWidget* tqparent, TQSql::Op m ) caption = tqApp->translate( "TQSql", "Update" ); } #ifndef TQT_NO_MESSAGEBOX - ans = TQMessageBox::information( tqparent, caption, + ans = TQMessageBox::information( parent, caption, tqApp->translate( "TQSql", "Save edits?" ), tqApp->translate( "TQSql", "Yes" ), tqApp->translate( "TQSql", "No" ), @@ -912,15 +912,15 @@ TQSql::Confirm TQDataManager::confirmEdit( TQWidget* tqparent, TQSql::Op m ) mode \a m. Derived classes can reimplement this function and provide their own confirmation dialog. The default implementation uses a message box which prompts the user to confirm the edit - action. The dialog is centered over \a tqparent. + action. The dialog is centered over \a parent. */ -TQSql::Confirm TQDataManager::confirmCancel( TQWidget* tqparent, TQSql::Op ) +TQSql::Confirm TQDataManager::confirmCancel( TQWidget* parent, TQSql::Op ) { #ifndef TQT_NO_MESSAGEBOX - switch ( TQMessageBox::information( tqparent, + switch ( TQMessageBox::information( parent, tqApp->translate( "TQSql", "Confirm" ), tqApp->translate( "TQSql", "Cancel your edits?" ), tqApp->translate( "TQSql", "Yes" ), |