Peinthor Rene
004d9ec4c8
cmake: remove the gen_version.h generation
...
to have the git hash in the dev build didn't really bring any
advantage, but make the build scripts more complicated
2015-04-10 10:25:25 +02:00
Peinthor Rene
d8cdcbd572
add an option for the tabsize in the sql editor (default 4)
2015-04-10 09:21:01 +02:00
Peinthor Rene
cecf681620
edittabledialg: table without rowid don't have to be integer pk columns
2015-04-10 08:55:56 +02:00
Peinthor Rene
6231d3c4f3
sqlitetablemodel: fix a blank insert of row(s) if the actual insert statement failed
...
before really insert into the main internal data structure
store data in a temporary list and only insert into the table model
if no errors occurred
2015-04-10 08:55:07 +02:00
Peinthor Rene
1ca8ffb512
sqlitetablemode: typedef the m_data type
2015-04-10 08:53:26 +02:00
Peinthor Rene
8bdb4fb94c
Merge pull request #250 from schdub/master
...
fix exportsql issue 244
2015-04-10 06:08:16 +02:00
schdub
cc1f9f9574
fix exportsql issue 244
...
+Infinite and -Infinite Expression on Export Database to SQL file #244
https://github.com/sqlitebrowser/sqlitebrowser/issues/244
2015-04-10 02:41:32 +03:00
Justin Clift
e0d45b72e8
Merge pull request #235 from glawrence/master
...
Create an AppData file
2015-03-26 17:33:57 +00:00
Geoff Lawrence
95416457fd
Create an AppData file
2015-03-26 15:32:10 +00:00
Samir Aguiar
0ddf048626
databrowser: Let the view update the model when sorting
...
When the user clicks on a header, call the sort function from
QTableView and let it call the model's sort function. This allows
the model and the view to be in sync about the sorting direction
and we don't get upside-down arrows.
See issue #231 .
2015-03-22 21:04:18 +01:00
Samir Aguiar
50fab915ee
readme: Add one more link to BUILDING.md
2015-03-22 20:22:50 +01:00
Samir Aguiar
7259241062
editdialog: Don't add file filters on OS X
...
Due to a Qt bug (QTBUG-38427), changing filters in a QFileDialog
does not enable/disable files until the user changes directory.
See issue #230 .
2015-03-22 18:37:04 +01:00
Samir Aguiar
bf0517de8a
readme: Add link to BULDING.MD
2015-03-22 16:20:01 +01:00
Samir Aguiar
307261718c
mainwindow: Disable actions to save SQL when no file is open
...
See issue #233 .
2015-03-20 23:54:04 +01:00
Samir Aguiar
c8ea53bf4f
qhexedit: Fix initialization order in QHexEditPrivate
...
This prevents use of uninitialized values in conditional jumps
as reported by Valgrind. It's already fixed in QHexEdit repository.
2015-03-20 23:31:45 +01:00
Samir Aguiar
d959080f33
unittests: Adding qtestlib to CONFIG is deprecated in Qt5+
2015-03-20 23:27:22 +01:00
Samir Aguiar
c3c8f8ce56
sqlitetablemodel: Don't apply NULL fields colours to BLOB fields
2015-03-14 22:32:56 +01:00
Martin Kleusberg
7a6410c04f
When searching for a column by name make the search case insensitive
...
See issue #228 .
2015-03-14 01:39:53 +01:00
Martin Kleusberg
b266f6f547
grammar: Also parse foreign key clauses inside column definitions
...
Also parse foreign key clauses used inside column definitions as opposed
to just parsing those in the table constraints.
See issue #227 .
2015-03-14 00:56:08 +01:00
Samir Aguiar
50c034012f
editdialog: Set focus to text edit after clearing
2015-03-13 01:28:14 +01:00
Samir Aguiar
abc3ae11b3
preferencesdialog: Correctly send events on the frames to the parent
2015-03-13 01:09:29 +01:00
Samir Aguiar
332ed3faab
editdialog: Show type as "Null" for null fields
...
See issue #220 .
2015-03-13 01:04:46 +01:00
Samir Aguiar
9038968c88
editdialog: Differentiate NULL values from empty ones
...
In the edit dialog the clear button sets the data to
NULL, but because we check if the data has changed
before updating, we need to also check the NULL flag,
otherwise we can't tell NULL values from empty values.
See issue #220 .
2015-03-13 00:22:06 +01:00
Samir Aguiar
56bb728c4c
sqlitedb: Accept NULL values when updating through Edit Dialog
...
See issue #220 .
2015-03-13 00:22:06 +01:00
Samir Aguiar
0dfae63cee
sqlitetablemodel: Only return NULL text for display role and NULL fields
2015-03-13 00:22:06 +01:00
Samir Aguiar
c15235f15e
preferencesdialog: Center text in line edit
2015-03-11 22:43:31 +01:00
Samir Aguiar
6473ea6aa0
preferencesdialog: Move regex checkbox before tabWidget in tabstop list
2015-03-11 20:54:05 +01:00
Samir Aguiar
994d37f99d
preferencesdialog: Add NULL fields style options to Data Browser tab
...
This adds the ability to customize the text, font colour
and background colour of NULL fields.
2015-03-11 20:19:45 +01:00
Samir Aguiar
ede523269a
preferencesdialog: Remove color for NULL fields
2015-03-11 20:19:45 +01:00
Samir Aguiar
0a23dfe1a2
preferencesdialog: Add new "Data Browser" tab
2015-03-11 20:19:45 +01:00
Martin Kleusberg
fa1acf0a4b
Make version numbers in About Dialog selectable
...
See issue #222 .
2015-03-11 18:30:29 +01:00
Samir Aguiar
d4215052dd
unittests: Pass a safely modifiable arg to QCoreApplication
...
This also silents C++11 warning about deprecated conversion.
2015-03-10 10:18:56 +01:00
Samir Aguiar
9fa8e24bfd
exportcsvdialog: Use QString::toLatin1() to preserve Qt5 compatibility
2015-03-09 22:46:03 +01:00
Samir Aguiar
80edba2cae
exportcsvdialog: Escape especial characters in headers and values
...
When exporting to CSV, escape the chosen separator, the quote
character and the accepted line endings (CR, LF and CRLF).
See issue #219 .
2015-03-09 21:28:57 +01:00
Martin Kleusberg
6d1a874f80
Add implementation of the REGEXP operator
...
When not configured otherwise in the Preferences Dialog register a
SQLite function for performing the regular expression matching which
SQLite doesn't implement. This adds support for the REGEXP operator even
when no extension which implements this is loaded.
See issue #215 .
2015-03-06 12:52:47 +01:00
Samir Aguiar
befb60376c
dbbrowserdb: Correctly identify NULL values when returning row
...
Commit 9e4a6df changed the way fetchData() handles NULL values
so they could be seen by the user. However, the same change wasn't
added to DBBrowserDB::getRow().
Because both are called by the table model and we now add colors
to NULL fields, this caused a visible bug when adding a row with
not null column constraints.
See issue #214 .
2015-03-05 22:45:50 +01:00
Samir Aguiar
f1ac26e216
csvparser: Unit tests for old Mac line endings and empty strings
2015-03-04 21:29:03 +01:00
Samir Aguiar
ca38995013
csvparser: Add support for old Mac OS line endings
...
In order to detect the CR characters, the file
must be opened in binary mode, otherwise QFile just
removes them all.
See issue #212 .
2015-03-04 21:28:38 +01:00
Martin Kleusberg
808c771d4e
Minor improvement for error messages in DBBrowserDB
2015-03-03 14:49:28 +01:00
Martin Kleusberg
9dd5f99ef6
Remove redundant checks in DBBrowserDB
...
Remove several redundant checks for testing whether a database file is
opened.
2015-03-03 14:46:00 +01:00
Martin Kleusberg
b2b068f33c
Simplify code and improve error messages in DBBrowserDB
...
Make sure to include the problematic SQL statement in the error message
when an error occurs in DBBrowserDB::executeSQL().
Execute SQL statements via executeSQL() wherever possible instead of
manually invoking sqlite3_exec(). This simplifies the code a bit and
makes sure the improved error messages are used.
2015-03-03 14:41:39 +01:00
Martin Kleusberg
3c243978e7
importcsv: Improve error messages a bit
...
Slightly improve the error messages shown when there is a problem during
the CSV import.
See issue #213 .
2015-03-03 14:23:34 +01:00
Martin Kleusberg
6b2381015c
Add keyboard shortcut for language combobox in settings dialog
2015-03-03 00:57:47 +01:00
Martin Kleusberg
da6d8ba385
update: Add option to settings dialog to fully disable update checks
...
Add a new checkbox to the Preferences Dialog which allows the user to
fully disable automatic check for new versions instead of just ignoring
the last shown update message. This also prevents DB4S from performing
any HTTP requests.
See issues #173 and #208 .
2015-03-03 00:54:21 +01:00
Martin Kleusberg
2f46dbf117
update: Avoid unnecessary redirect and thus an extra HTTP request
2015-03-03 00:41:16 +01:00
Martin Kleusberg
0bcdb97572
Insert new row when pressing tab on the last cell in Browse Data tab
...
When browsing a table in the Browse Data tab of the main window you can
move the focus to the next cell by pressing the tab key. This commit
improves this behaviour by checking if the tab key has been while the
last cell of the last row is focused. If this is the case a new, empty row
is inserted automatically into the table.
See issue #209 .
2015-03-03 00:33:11 +01:00
Martin Kleusberg
2c25b7ecb5
update: Fix wrong variable usage in version check code
2015-03-03 00:32:40 +01:00
Chuong Vu
c129f1581e
Remove checkboxes for NULL
...
Checkboxes(bold, italic, underline) are not needed for NULL
See issue #163
2015-02-15 01:16:59 +01:00
Chuong Vu
74fd0793e3
Remove default NULL text for NULL value fields
...
See issue #163
2015-02-15 01:16:59 +01:00
Chuong Vu
eda00dcd81
Add setting to allow user to change the background color of NULL value fields
...
See issue #163
2015-02-15 01:16:59 +01:00