diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kexi/main/startup/KexiStartup.cpp | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/main/startup/KexiStartup.cpp')
-rw-r--r-- | kexi/main/startup/KexiStartup.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kexi/main/startup/KexiStartup.cpp b/kexi/main/startup/KexiStartup.cpp index 13becfc8..61746d5c 100644 --- a/kexi/main/startup/KexiStartup.cpp +++ b/kexi/main/startup/KexiStartup.cpp @@ -134,9 +134,9 @@ void updateProgressBar(KProgressDialog *pd, char *buffer, int buflen) //--------------------------------- -KexiDBPasswordDialog::KexiDBPasswordDialog(TQWidget *tqparent, KexiDB::ConnectionData& cdata, bool showDetailsButton) +KexiDBPasswordDialog::KexiDBPasswordDialog(TQWidget *parent, KexiDB::ConnectionData& cdata, bool showDetailsButton) : KPasswordDialog( KPasswordDialog::Password, false/*keep*/, - showDetailsButton ? (int)KDialogBase::User1 : 0, tqparent ) + showDetailsButton ? (int)KDialogBase::User1 : 0, parent ) , m_cdata(&cdata) , m_showConnectionDetailsRequested(false) { @@ -739,7 +739,7 @@ tristate KexiStartupHandler::init(int /*argc*/, char ** /*argv*/) tristate KexiStartupHandler::detectActionForFile( KexiStartupData::Import& detectedImportAction, TQString& detectedDriverName, - const TQString& _suggestedDriverName, const TQString &dbFileName, TQWidget *tqparent, int options ) + const TQString& _suggestedDriverName, const TQString &dbFileName, TQWidget *parent, int options ) { detectedImportAction = KexiStartupData::Import(); //clear TQString suggestedDriverName(_suggestedDriverName); //safe @@ -747,7 +747,7 @@ tristate KexiStartupHandler::detectActionForFile( TQFileInfo finfo(dbFileName); if (dbFileName.isEmpty() || !finfo.isReadable()) { if (!(options & SkipMessages)) - KMessageBox::sorry(tqparent, i18n("<p>Could not open project.</p>") + KMessageBox::sorry(parent, i18n("<p>Could not open project.</p>") +i18n("<p>The file <nobr>\"%1\"</nobr> does not exist or is not readable.</p>") .tqarg(TQDir::convertSeparators(dbFileName)) +i18n("Check the file's permissions and whether it is already opened " @@ -779,7 +779,7 @@ tristate KexiStartupHandler::detectActionForFile( if (!f.open(IO_ReadOnly)) { // BTW: similar error msg is provided in SQLiteConnection::drv_useDatabase() if (!(options & SkipMessages)) - KMessageBox::sorry(tqparent, i18n("<p>Could not open project.</p>") + KMessageBox::sorry(parent, i18n("<p>Could not open project.</p>") +i18n("<p>The file <nobr>\"%1\"</nobr> is not readable.</p>") .tqarg(TQDir::convertSeparators(dbFileName)) +i18n("Check the file's permissions and whether it is already opened " @@ -802,7 +802,7 @@ tristate KexiStartupHandler::detectActionForFile( if (ptr.data()) { if (mimename=="application/x-msaccess") { if ((options & SkipMessages) || KMessageBox::Yes != KMessageBox::questionYesNo( - tqparent, i18n("\"%1\" is an external file of type:\n\"%2\".\n" + parent, i18n("\"%1\" is an external file of type:\n\"%2\".\n" "Do you want to import the file as a Kexi project?") .tqarg(TQDir::convertSeparators(dbFileName)).tqarg(ptr.data()->comment()), i18n("Open External File"), KGuiItem(i18n("Import...")), KStdGuiItem::cancel() ) ) @@ -826,7 +826,7 @@ tristate KexiStartupHandler::detectActionForFile( if (!useDetectedDriver) { int res = KMessageBox::Yes; if (!(options & SkipMessages)) - res = KMessageBox::warningYesNoCancel(tqparent, i18n( + res = KMessageBox::warningYesNoCancel(parent, i18n( "The project file \"%1\" is recognized as compatible with \"%2\" database driver, " "while you have asked for \"%3\" database driver to be used.\n" "Do you want to use \"%4\" database driver?") @@ -848,7 +848,7 @@ tristate KexiStartupHandler::detectActionForFile( const TQString newFileFormat = "SQLite3"; if (!(options & DontConvert || options & SkipMessages) && detectedDriverName.lower()=="sqlite2" && detectedDriverName.lower()!=suggestedDriverName.lower() - && KMessageBox::Yes == KMessageBox::questionYesNo(tqparent, i18n( + && KMessageBox::Yes == KMessageBox::questionYesNo(parent, i18n( "Previous version of database file format (\"%1\") is detected in the \"%2\" " "project file.\nDo you want to convert the project to a new \"%3\" format (recommended)?") .tqarg(detectedDriverName).tqarg(TQDir::convertSeparators(dbFileName)).tqarg(newFileFormat)) ) @@ -859,7 +859,7 @@ tristate KexiStartupHandler::detectActionForFile( // kdDebug() << "--- migr.run() END ---" <<endl; if (!res) { //TODO msg - KMessageBox::sorry(tqparent, i18n( + KMessageBox::sorry(parent, i18n( "Failed to convert project file \"%1\" to a new \"%2\" format.\n" "The file format remains unchanged.") .tqarg(TQDir::convertSeparators(dbFileName)).tqarg(newFileFormat) ); @@ -876,7 +876,7 @@ tristate KexiStartupHandler::detectActionForFile( possibleProblemsInfoMsg += TQString::tqfromLatin1("</p>"); } if (!(options & SkipMessages)) - KMessageBox::detailedSorry(tqparent, + KMessageBox::detailedSorry(parent, i18n( "The file \"%1\" is not recognized as being supported by Kexi.") .tqarg(TQDir::convertSeparators(dbFileName)), TQString::tqfromLatin1("<p>") @@ -892,7 +892,7 @@ tristate KexiStartupHandler::detectActionForFile( } KexiProjectData* -KexiStartupHandler::selectProject(KexiDB::ConnectionData *cdata, bool& cancelled, TQWidget *tqparent) +KexiStartupHandler::selectProject(KexiDB::ConnectionData *cdata, bool& cancelled, TQWidget *parent) { cleartqStatus(); cancelled = false; @@ -911,7 +911,7 @@ KexiStartupHandler::selectProject(KexiDB::ConnectionData *cdata, bool& cancelled } KexiProjectData* projectData = 0; //dialog for selecting a project - KexiProjectSelectorDialog prjdlg( tqparent, "prjdlg", cdata, true, false ); + KexiProjectSelectorDialog prjdlg( parent, "prjdlg", cdata, true, false ); if (!prjdlg.projectSet() || prjdlg.projectSet()->error()) { KexiGUIMessageHandler msgh; if (prjdlg.projectSet()) |