Skip to content

Commit

Permalink
Merge pull request sqlitebrowser#320 from mafagafogigante/typo-fix
Browse files Browse the repository at this point in the history
Fixed a typo.
  • Loading branch information
MKleusberg committed May 20, 2015
2 parents 97b88fe + 8153df8 commit 8823cf8
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/CipherDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CipherDialog::CipherDialog(QWidget* parent, bool encrypt) :
{
ui->labelDialogDescription->setText(tr("Please set a key to encrypt the database.\nNote that if you change any of the other, optional, settings you'll need "
"to re-enter them as well every time you open the database file.\nLeave the password fields empty to disable the "
"encryption.\nThe encrpytion process might take some time and you should have a backup copy of you database! Unsaved "
"encryption.\nThe encryption process might take some time and you should have a backup copy of your database! Unsaved "
"changes are applied before modifying the encryption."));
} else {
ui->labelDialogDescription->setText(tr("Please enter the key used to encrypt the database.\nIf any of the other settings were altered for this database file "
Expand Down
2 changes: 1 addition & 1 deletion src/CipherDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CipherDialog : public QDialog
explicit CipherDialog(QWidget* parent, bool encrypt);
~CipherDialog();

// Allow read access tothe input fields
// Allow read access to the input fields
QString password() const;
int pageSize() const;

Expand Down
6 changes: 3 additions & 3 deletions src/EditTableDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void EditTableDialog::populateFields()
tbitem->setCheckState(kAutoIncrement, f->autoIncrement() ? Qt::Checked : Qt::Unchecked);
tbitem->setCheckState(kUnique, f->unique() ? Qt::Checked : Qt::Unchecked);

// For the default value check if it is surrounded by parantheses and if that's the case
// For the default value check if it is surrounded by parentheses and if that's the case
// add a '=' character before the entire string to match the input format we're expecting
// from the user when using functions in the default value field.
if(f->defaultValue().startsWith('(') && f->defaultValue().endsWith(')'))
Expand Down Expand Up @@ -548,14 +548,14 @@ void EditTableDialog::setWithoutRowid(bool without_rowid)
{
if(without_rowid)
{
// Before setting the without rowid flag, first perform a check to see if the table meets all thr required criteria for without rowid tables
// Before setting the without rowid flag, first perform a check to see if the table meets all the required criteria for without rowid tables
int pk = m_table.findPk();
if(pk == -1 || m_table.fields().at(pk)->autoIncrement())
{
QMessageBox::information(this, QApplication::applicationName(),
tr("Please add a field which meets the following criteria before setting the without rowid flag:\n"
" - Primary key flag set\n"
" - Auto incremenct disabled"));
" - Auto increment disabled"));
ui->checkWithoutRowid->setChecked(false);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ExportSqlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ExportSqlDialog::ExportSqlDialog(DBBrowserDB* db, QWidget* parent, const QString
}

// Sort list of tables and select the table specified in the
// selection parameter or all tables if table not specifed
// selection parameter or all tables if table not specified
ui->listTables->model()->sort(0);
if(selection.isEmpty())
{
Expand Down
2 changes: 1 addition & 1 deletion src/FilterTableHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void FilterTableHeader::adjustPositions()
// Loop through all widgets
for(int i=0;i < filterWidgets.size(); ++i)
{
// Get the current widget, move it and reisize it
// Get the current widget, move it and resize it
QWidget* w = filterWidgets.at(i);
w->move(sectionPosition(i) - offset(), filterWidgets.at(i)->sizeHint().height() + 2); // The two adds some extra space between the header label and the input widget
w->resize(sectionSize(i), filterWidgets.at(i)->sizeHint().height());
Expand Down
4 changes: 2 additions & 2 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void MainWindow::init()
#endif

#ifndef ENABLE_SQLCIPHER
// Only show encrpytion menu action when SQLCipher support is enabled
// Only show encryption menu action when SQLCipher support is enabled
ui->actionEncryption->setVisible(false);
#endif
}
Expand Down Expand Up @@ -1263,7 +1263,7 @@ void MainWindow::openSqlFile()
QFile f(file);
f.open(QIODevice::ReadOnly);

// Decide wether to open a new tab or take the current one
// Decide whether to open a new tab or take the current one
unsigned int index;
SqlExecutionArea* current_tab = qobject_cast<SqlExecutionArea*>(ui->tabSqlAreas->currentWidget());
if(current_tab->getSql().isEmpty() && current_tab->getModel()->rowCount() == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/SqlUiLexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const char* SqlUiLexer::keywords(int set) const

QStringList SqlUiLexer::autoCompletionWordSeparators() const
{
// The only word seperator for auto completion in SQL is "." as in "tablename.columnname".
// The only word separator for auto completion in SQL is "." as in "tablename.columnname".
// Because this isn't implemented in the default QScintilla SQL lexer for some reason we add it here.

QStringList wl;
Expand Down
3 changes: 1 addition & 2 deletions src/csvparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class QTextStream;
/*!
* \brief The CSVProgress class
*
* This is an abstract class you can provide overriden provde
* to the CSVParser to get progress updates.
* This is an abstract class, an implementation of which you can pass to the CSVParser to get progress updates.
*/
class CSVProgress
{
Expand Down
2 changes: 1 addition & 1 deletion src/sqlitedb.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class DBBrowserDB : public QObject
* @param name Name of the column to edit
* @param to The new field definition with changed name, type or the like. If Null-Pointer is given the column is dropped.
* @param move Set this to a value != 0 to move the new column to a different position
* @return true if renaming was successfull, false if not. In the latter case also lastErrorMessage is set
* @return true if renaming was successful, false if not. In the latter case also lastErrorMessage is set
*/
bool renameColumn(const QString& tablename, const QString& name, sqlb::FieldPtr to, int move = 0);

Expand Down
2 changes: 1 addition & 1 deletion src/sqlitetablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ QString removeComments(QString s)
// a 'simple' regular expression. I know there're better ways to do this...

// This function removes any single line comments (starting with '--') from a given string. It does
// so by going through the string character by character and trying to keep track of wether we currently
// so by going through the string character by character and trying to keep track of whether we currently
// are in a string or identifier and only removing those parts starting with '--' which are in neither.

QChar lastChar = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/sqlitetypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bool Field::isText() const
|| norm.startsWith("varchar")
|| norm.startsWith("varying character")
|| norm.startsWith("nchar")
|| norm.startsWith("native charactar")
|| norm.startsWith("native character")
|| norm.startsWith("nvarchar")
|| norm == "text"
|| norm == "clob";
Expand Down
2 changes: 1 addition & 1 deletion src/sqlitetypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Table
* @brief findField Finds a field and returns the index.
* @param sname
* @return The field index if the field was found.
* -1 if field coulnd't be found.
* -1 if field couldn't be found.
*/
int findField(const QString& sname);

Expand Down

0 comments on commit 8823cf8

Please sign in to comment.