From 262612928d1cf2543596e20fd700931ca68ff6d7 Mon Sep 17 00:00:00 2001 From: mafagafogigante Date: Thu, 31 Jul 2014 04:15:52 -0300 Subject: [PATCH] some comments were corrected --- src/EditTableDialog.cpp | 2 +- src/MainWindow.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/EditTableDialog.cpp b/src/EditTableDialog.cpp index 267a4882..6666a841 100644 --- a/src/EditTableDialog.cpp +++ b/src/EditTableDialog.cpp @@ -356,7 +356,7 @@ void EditTableDialog::removeField() } else { // Editing an old one - // Ask user wether he really wants to delete that column + // Ask user whether he really wants to delete that column QString msg = tr("Are you sure you want to delete the field '%1'?\nAll data currently stored in this field will be lost.").arg(ui->treeWidget->currentItem()->text(0)); if(QMessageBox::warning(this, QApplication::applicationName(), msg, QMessageBox::Yes | QMessageBox::Default, QMessageBox::No | QMessageBox::Escape) == QMessageBox::Yes) { diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3d45232c..1ed9957a 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -352,7 +352,7 @@ void MainWindow::resetBrowser() objmap[i.value().getname()] = i.value();; } - // finaly fill the combobox in sorted order + // Finally fill the combobox in sorted order for(QMap::ConstIterator it=objmap.constBegin(); it!=objmap.constEnd(); ++it) @@ -646,7 +646,7 @@ void MainWindow::doubleClickTable(const QModelIndex& index) /* * I'm still not happy how the results are represented to the user * right now you only see the result of the last executed statement. - * A better experiance would be tabs on the bottom with query results + * A better experience would be tabs on the bottom with query results * for all the executed statements. * Or at least a some way the use could see results/status message * per executed statement. @@ -857,7 +857,7 @@ void MainWindow::importDatabaseFromSQL() if(!QFile::exists(fileName)) return; - // If there is already a database file opened ask the user wether to import into this one or a new one. If no DB is opened just ask for a DB name directly + // If there is already a database file opened ask the user whether to import into this one or a new one. If no DB is opened just ask for a DB name directly QString newDbFile; if((db.isOpen() && QMessageBox::question(this, QApplication::applicationName(), @@ -892,7 +892,7 @@ void MainWindow::importDatabaseFromSQL() f.close(); QApplication::restoreOverrideCursor(); - // Resfresh window when importing into an existing DB or - when creating a new file - just open it correctly + // Refresh window when importing into an existing DB or - when creating a new file - just open it correctly if(newDbFile.size()) { fileOpen(newDbFile); @@ -1412,7 +1412,7 @@ QVariant::Type guessdatatype(SqliteTableModel* model, int column) void MainWindow::updatePlot(SqliteTableModel *model, bool update) { - // add columns to x/y seleciton tree widget + // add columns to x/y selection tree widget if(update) { // disconnect treeplotcolumns item changed updates