Skip to content

Commit abc432f

Browse files
author
Bernardo Sulzbach
committed
Fixed a few typos.
1 parent 641e182 commit abc432f

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

src/CipherDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CipherDialog::CipherDialog(QWidget* parent, bool encrypt) :
1414
{
1515
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 "
1616
"to re-enter them as well every time you open the database file.\nLeave the password fields empty to disable the "
17-
"encryption.\nThe encrpytion process might take some time and you should have a backup copy of you database! Unsaved "
17+
"encryption.\nThe encryption process might take some time and you should have a backup copy of your database! Unsaved "
1818
"changes are applied before modifying the encryption."));
1919
} else {
2020
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 "

src/CipherDialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class CipherDialog : public QDialog
1717
explicit CipherDialog(QWidget* parent, bool encrypt);
1818
~CipherDialog();
1919

20-
// Allow read access tothe input fields
20+
// Allow read access to the input fields
2121
QString password() const;
2222
int pageSize() const;
2323

src/EditTableDialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void EditTableDialog::populateFields()
106106
tbitem->setCheckState(kAutoIncrement, f->autoIncrement() ? Qt::Checked : Qt::Unchecked);
107107
tbitem->setCheckState(kUnique, f->unique() ? Qt::Checked : Qt::Unchecked);
108108

109-
// For the default value check if it is surrounded by parantheses and if that's the case
109+
// For the default value check if it is surrounded by parentheses and if that's the case
110110
// add a '=' character before the entire string to match the input format we're expecting
111111
// from the user when using functions in the default value field.
112112
if(f->defaultValue().startsWith('(') && f->defaultValue().endsWith(')'))
@@ -548,14 +548,14 @@ void EditTableDialog::setWithoutRowid(bool without_rowid)
548548
{
549549
if(without_rowid)
550550
{
551-
// Before setting the without rowid flag, first perform a check to see if the table meets all thr required criteria for without rowid tables
551+
// Before setting the without rowid flag, first perform a check to see if the table meets all the required criteria for without rowid tables
552552
int pk = m_table.findPk();
553553
if(pk == -1 || m_table.fields().at(pk)->autoIncrement())
554554
{
555555
QMessageBox::information(this, QApplication::applicationName(),
556556
tr("Please add a field which meets the following criteria before setting the without rowid flag:\n"
557557
" - Primary key flag set\n"
558-
" - Auto incremenct disabled"));
558+
" - Auto increment disabled"));
559559
ui->checkWithoutRowid->setChecked(false);
560560
return;
561561
}

src/ExportSqlDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ExportSqlDialog::ExportSqlDialog(DBBrowserDB* db, QWidget* parent, const QString
3434
}
3535

3636
// Sort list of tables and select the table specified in the
37-
// selection parameter or all tables if table not specifed
37+
// selection parameter or all tables if table not specified
3838
ui->listTables->model()->sort(0);
3939
if(selection.isEmpty())
4040
{

src/FilterTableHeader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void FilterTableHeader::adjustPositions()
111111
// Loop through all widgets
112112
for(int i=0;i < filterWidgets.size(); ++i)
113113
{
114-
// Get the current widget, move it and reisize it
114+
// Get the current widget, move it and resize it
115115
QWidget* w = filterWidgets.at(i);
116116
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
117117
w->resize(sectionSize(i), filterWidgets.at(i)->sizeHint().height());

src/MainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void MainWindow::init()
188188
#endif
189189

190190
#ifndef ENABLE_SQLCIPHER
191-
// Only show encrpytion menu action when SQLCipher support is enabled
191+
// Only show encryption menu action when SQLCipher support is enabled
192192
ui->actionEncryption->setVisible(false);
193193
#endif
194194
}
@@ -1259,7 +1259,7 @@ void MainWindow::openSqlFile()
12591259
QFile f(file);
12601260
f.open(QIODevice::ReadOnly);
12611261

1262-
// Decide wether to open a new tab or take the current one
1262+
// Decide whether to open a new tab or take the current one
12631263
unsigned int index;
12641264
SqlExecutionArea* current_tab = qobject_cast<SqlExecutionArea*>(ui->tabSqlAreas->currentWidget());
12651265
if(current_tab->getSql().isEmpty() && current_tab->getModel()->rowCount() == 0)

src/SqlUiLexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const char* SqlUiLexer::keywords(int set) const
167167

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

173173
QStringList wl;

src/sqlitedb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class DBBrowserDB : public QObject
9898
* @param name Name of the column to edit
9999
* @param to The new field definition with changed name, type or the like. If Null-Pointer is given the column is dropped.
100100
* @param move Set this to a value != 0 to move the new column to a different position
101-
* @return true if renaming was successfull, false if not. In the latter case also lastErrorMessage is set
101+
* @return true if renaming was successful, false if not. In the latter case also lastErrorMessage is set
102102
*/
103103
bool renameColumn(const QString& tablename, const QString& name, sqlb::FieldPtr to, int move = 0);
104104

src/sqlitetablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ QString removeComments(QString s)
8989
// a 'simple' regular expression. I know there're better ways to do this...
9090

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

9595
QChar lastChar = 0;

src/sqlitetypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bool Field::isText() const
3333
|| norm.startsWith("varchar")
3434
|| norm.startsWith("varying character")
3535
|| norm.startsWith("nchar")
36-
|| norm.startsWith("native charactar")
36+
|| norm.startsWith("native character")
3737
|| norm.startsWith("nvarchar")
3838
|| norm == "text"
3939
|| norm == "clob";

0 commit comments

Comments
 (0)